I just installed Java EE SDK, which was bundled with Glassfish. The website wasn’t clear, but it seemed these had to be downloaded together. I’m just trying to figure out where EE is actually installed in my system. All I see is C:\glassfishv3 and the directories underneath it.
Isn’t Glassfish just a web server that is independent of EE? I just want to write Servlets using classes found in EE. Kind of annoyed that Oracle is pushing their server with the API extension.
So my questions are:
-
Can I remove Glassfish from my system and still build programs with EE?
-
Where is EE installed?
Thanks a lot for your help.
Glassfish is a EE-compliant server. This means, it can host non-EE applications as well, but also brings the necessary libraries with it to host EE applications.
EE is a standard for container management of objects, database integration and several other concerns. There are a number of servers out there, implementing different versions of the EE standard. Glassfish is the “official” implementation from Sun/Oracle. Others include IBM Websphere, JBoss, Oracle Weblogic
You can program enterprise java without a Glassfish server. You will need a different implementation though, like JBoss.
The actual “EE installation” consists of a bunch of .jars in the /libs folder (I’m not sure about the exact name as I don’t have Glassfish installed). The most important one is the
javaee.jar, [note: found in C:\glassfishv3\glassfish\lib]