On Tue, 7 Nov 2000 17:36:12 +0000, Catherine Jung
<[EMAIL PROTECTED]> wrote:
>> We have also done tests that shows that if you run jBoss and Tomcat in
>> the same JVM, then servlets calling EJB's can take as little as 0.4 ms
>^^^^^^^^^^^^^^^^^
>
>How can you get both Tomcat and jBoss running under the same JVM? It's
>something I've been wanting to do, but haven't figured out how....
>
>Do you point Tomcat towards the JRE that jBoss is running from? Or
>something more obscure?
<vendor>
It is very simple really. The Tomcat engine has been implemented so that one
can run it in embedded mode by executing and accessing it through an API.
So, since jBoss uses JMX as the kernel we simply made a standard JMX MBean
wrapper which runs Tomcat inside the jBoss JVM. Note that even our own EJB
container system is integrated as a JMX MBean. We make no difference between
"our stuff" and "others stuff". This makes it very clean and very simple to
integrate other packages such as Tomcat.
The integration we have done so far are the following: our J2EE deployment
facility can break up an .ear file and send the .war files to Tomcat and
.jar files to our EJB container. We then let Tomcats classloader have an
application classloader as parent, which is also the parent to the EJB
classloader. Why? Because this allows objects to move between Tomcat and the
EJB container without getting classcast exceptions. So, in this mode you can
also turn off parameter copying and get really speedy servlet->EJB calls. I
mean *really speedy*. Then we are also working on providing the java:comp
namespace to Tomcat servlets so that they can reference EJB's through the
standard component namespace (as defined in the specs). (In fact this might
already be done. I need to check that).
We are working on similar integration with the other popular servlet
engines, i.e. Resin, Jetty and Enhydra.
</vendor>
If you have any more Q's on this please ask me off-list. There's been enough
jBoss spam for one day already ;-)
/Rickard
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff EJB-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".