Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

What's the point of J2EE, JBOSS, WebLogic...?  RSS feed

 
Kurt Milligan
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all...newbie here.
I'm sure this question has been asked before, but the 'search' didn't seem to work...
I'm learning Java (long time PHP hacker), and I hear lots of talk about J2EE and application servers like JBOSS and BEA WebLogic...but I'm not clear on what the point of these things are. Can someone give a basic example of what/why one would use these (as opposed to just running your servlets/JSP's on Tomcat/Jakarta)??
Also, and maybe this is a question for a different forum, but how does Java deal with session management in a distributed environment?
I checked out some code examples, but it seems a bit 'magical'. If you have multiple webservers in a load balanced system, what is the preferred method? In the past, I've used a central database (Oracle, PostgreSQL, etc) to deal with persistant session data from multiple servers...I assume the examples I was looking at were using a temp file based system, NG obviously if you have multiple servers...is there something in J2EE that deals with this?
TIA, and sorry for my ignorance.
-Kurt
 
Simon Brown
sharp shooter, and author
Ranch Hand
Posts: 1913
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Kurt,
We have a naming policy here at JavaRanch where all publicly displayed names take the form, "Firstname Surname". Could you please edit your profile to bring it into line?
Thanks in advance and we hope that you enjoy your stay at the ranch!
With regards to J2EE, have you taken a look at the J2EE home pages at Sun?
Cheers
Simon
 
John Fontana
Ranch Hand
Posts: 235
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Euler:
Hi all...newbie here.
I'm sure this question has been asked before, but the 'search' didn't seem to work...
I'm learning Java (long time PHP hacker), and I hear lots of talk about J2EE and application servers like JBOSS and BEA WebLogic...but I'm not clear on what the point of these things are. Can someone give a basic example of what/why one would use these (as opposed to just running your servlets/JSP's on Tomcat/Jakarta)??
Also, and maybe this is a question for a different forum, but how does Java deal with session management in a distributed environment?
I checked out some code examples, but it seems a bit 'magical'. If you have multiple webservers in a load balanced system, what is the preferred method? In the past, I've used a central database (Oracle, PostgreSQL, etc) to deal with persistant session data from multiple servers...I assume the examples I was looking at were using a temp file based system, NG obviously if you have multiple servers...is there something in J2EE that deals with this?
TIA, and sorry for my ignorance.
-Kurt

Tomcat is for Servlets/JSP's, and cannot handle the traffic of a large commercial website. It is ideal for learning and development. Also, it does not have an EJB container.
Java can handle sessions using session and servlet context event listener interfaces. You can also use a database, or EJB's.
A great place to start is "Core Servlets and Java Server Pages" and "More servlets and Java Server Pages".
EJB's are pretty rough to break into on your own, but you would do well to get Wiley's "Mastering Enterprise Java Beans". There's a large bridge to cross between servlets/jsp's to EJB's, but don't let that discourage you from trying!
 
Rufus BugleWeed
Ranch Hand
Posts: 1551
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
This won't take you too long.
jGuru EJB Short Course
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!