Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Which Java version for JBoss and how to 'deploy' a standard website ?

Status
Not open for further replies.

frag

Programmer
Dec 7, 2000
321
GB
Hi everybody,

I have a question regarding the Java version that should be used for running JBoss. I read in the manual that you should use Java SDK 1.3 or later for running JBoss 3.2.x. But for the application I have to develop I will have to juse J2EE in version 1.4.

My question is: Does it make sense to just install J2EE and let JBoss run with this instead of the "normal" SDK or will this bring me into trouble?

The next problem is the deployment of the first "web application" which is in fact just a website consisting of some jsp-files and a few java-classes which runs at a standalone version of tomcat at the moment. This application has to be moved to the JBoss's tomcat-implementation. Will I really have to deploy it or can I just setup it up like I did with the standalone tomcat?

As always: Any help is greatly appreciated...

cheers

frag




patrick.metz@epost.de
 
Remember, J2EE is just a an API. JBoss is an implementation of the J2EE specification. When you install JBoss, you've installed J2EE implementation. You will always need an at least the JRE for just the application server, or if you plan to use a web container you will need the SDK in the production environment to compile the JSP code. I strongly recommend that you use Java 1.4.2 with JBoss, since they have done a lot to optimize JBoss with the new 1.4 features.

You do NOT want to run a standalone Tomcat version when running JBoss. JBoss and Tomcat share classloaders, and are therefore much more efficient. Just deploy your war file in JBoss, and Tomcat will be able to serve it up. This of course assumes you've installed the JBoss with Tomcat version.

 
Hi JoelNaten,

thank you for answer. I was never involved in this J2EE stuff until now and I was always thinking that there were two different SDKs, the normal one and the J2EE one. I thought that the J2EE version just would have some more features but now I start to understand this whole philosophy behind J2EE.

I am already running a JBoss with Java 1.4.2 and I do NOT want to run tomcat as standalone. I want to migrate a quite simple webappliaction to the JBoss. My question is: Do I HAVE TO deploy a war-file or can I solve this in a different way? I want the index.jsp of the application to be the startsite of the whole domain (so I think the application has to be copied into the ROOT directory of the tomcat implementation).

Btw: Can anyone please post his/her hsql-ds.xml file for the example appliaction "Duke's Bank"? I am not able to start the Database Manager for hypersonic database. :-(

Cheers

frag

patrick.metz@epost.de
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top