- This topic has 2 replies, 2 voices, and was last updated 21 years, 5 months ago by Scott Anderson.
-
AuthorPosts
-
gilesparnellMemberHi there
This is a follow on from this article: http://www.myeclipseide.com/index.php? name=PNphpBB2&file=viewtopic&t=184
I’ve installed Tomcat and have gone through the tutorial of debugging jsps with myEclipse. All very very nice – works like a treat.
Now I’m currently using Orion2.02 as my webserver aswell as my app server…. but now i want to use the good stuff of being able to debug my jsps. (but only possible through Tomcat, weblogic blaa). So my question is really how do i separate my web app layer from orion and use tomcat to service this layer?
Is it going to be possible for me to:
A) Use Tomcat as my webserver ?
(i’ve checked the Atlassian and Orion forms – most folks seem to be tring to go the other way …. Tomcat to Orion)
B) And hopefully, once spearated i assume i can debug (using tomcat)I’m using struts and my actions only make calls to one session facade (with a remote interface)
gilesparnellMember(bugger) …sorry submitted before i had finished (damn tabs)
The last point was just ‘wonderings’ on how the jndi lookup would happen?
I suppose one has to ask.. are the likes of orion etc moving towards JSR-045 compatibility at any stage soon ?
Hope this all makes some sort of sense.
Cheers
PS: Not being nosey -> but are you the same Scott from Atlasian (if it is indeed scott replying) ??? 😀
Scott AndersonParticipantGiles,
Good set of questions.
I’ve installed Tomcat and have gone through the tutorial of debugging jsps with myEclipse. All very very nice – works like a treat.
Great to hear.
Now I’m currently using Orion2.02 as my webserver aswell as my app server…. but now i want to use the good stuff of being able to debug my jsps.
Unfortunately, Orion 2.02 doesn’t support JSR-045 debugging yet so there’s not much we can do about that one.
So my question is really how do i separate my web app layer from orion and use tomcat to service this layer?
Unfortunately, there’s more to it than that. Orion would actually have to be using Tomcat, internally, to handle its JSP pages. This would be similar to the way you can download the integrated JBoss/Tomcat bundle. The JBoss guys do a direct integration, run in the same VM and share class loaders. Unfortunately, they don’t integrate with Tomcat 5 yet.
Thinking about it further, you should be able to set up a standalone web project and deploy it to Tomcat 5. Then take your EJB project, and deploy it to Orion. Like I said, that should work and give you JSP debugging on Tomcat 5 while running the rest of your app on Orion.
I’m using struts and my actions only make calls to one session facade (with a remote interface)
That’s a nice clean separation so it will be relatively straightforward. Naturally, you’ll have to package the “shared” classes into both projects since without an EAR structure you can’t take advantage of the normal classloader hierarchies. And the EJB interfaces, of course.
The last point was just ‘wonderings’ on how the jndi lookup would happen?
Instead of using ‘new InitialContext()’ you’ll use new InitialContext(properties)’. The properties item will tell where to locate the naming factory, among other things. Those settings are appserver dependent and I’ve forgotten what they are for Orion at the moment. I always seem to be able to find it on either orionserver.com or orionsupport.com.
I suppose one has to ask.. are the likes of orion etc moving towards JSR-045 compatibility at any stage soon ?
That’s a good question for Atlasian. The don’t mention it on their website, as far as I’ve determined.
PS: Not being nosey -> but are you the same Scott from Atlasian
Nope. Simply a naming collision caused by unimaginative parents. 😉
–Scott
MyEclipse Support -
AuthorPosts