![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ||||||||||||||||||||||||||||||||||
![]() | ![]() | ![]() | ![]() | ||||||||||||||||||||||||||||||||||||
![]() | ![]() | ![]() | ![]() | ![]() | ![]() | ||||||||||||||||||||||||||||||||||
![]() | ![]()
![]() ![]() |
Introduction Accessing EJBs locally from Tomcat Accessing EJBs remotely from Tomcat OpenEJB-Tomcat FAQ ![]() ![]() IntroductionServlets can access beans from OpenEJB using either the Local (IntraVM) Server or the default Remote Server This document is a starting point for using OpenEJB in Tomcat and will evolve based on user contributions. If you wish to contribute to this document, please email the text to the OpenEJB User list. Accessing EJBs locally from TomcatLocal Server access: Or simply Now keep in mind, that is not J2EE spec compliant. Also keep in mind that we provide it as a convenience, so if there is something you don't like or think should be changed, send code. Accessing EJBs remotely from TomcatServlets can access beans from OpenEJB using either the Local (IntraVM) Server or the default Remote Server Remote Server access: The java.naming.security.principal and java.naming.security.credentials parameters are not used at the moment, but it is a good idea to use them as it will reduce the amount of patching you need to do when they are activated. OpenEJB-Tomcat FAQHow does the Local (IntraVM) Server work?When OpenEJB runs in the same VM as Tomcat and Servlets are accessing OpenEJB, you're really using OpenEJB as an embedded EJB Server inside Tomcat. This is identical to using embedded database servers like InstantDB and Cloudscape inside Tomcat. OpenEJB is the only EJB server that I know of that you can run as an embedded library, so the fact that you can even do it is a real feather in our cap. If anyone knows of another, please tell me. In fact, anyone already using InstantDB or Cloudscape as embedded database servers in Tomcat could just as easily use OpenEJB as an embedded EJB Server and add instant EJB support as well. OpenEJB can easily play with InstantDB or Cloudscape. What Security Service to I get?A special adapter needs to be written so that OpenEJB can use the Security capabilities of Tomcat and get the security credintials from calls by servlets. If yo are interesting in writing this, send mail to the OpenEJB development list. | ![]() | ||||||||||||||||||||||||||||||||||||
![]() | ![]() | ||||||||||||||||||||||||||||||||||||||
![]() | ![]() | ||||||||||||||||||||||||||||||||||||||
![]() |