----- Original Message -----
From: "Rickard �berg" <[EMAIL PROTECTED]>
To: "jBoss" <[EMAIL PROTECTED]>
Sent: Wednesday, June 21, 2000 11:57 PM
Subject: Re: [jBoss-User] Integration with Tomcat
If you use Tomcat in the same JVM as jBoss there would be no need for
dynamic downloading; you would have the classes "by-default". In the
case of 2 JVM's there are the usual rules of dynamic classloading; in
particular you need a security manager set, and I'm not sure Tomcat uses
one.
But I'm not the expert on this. Sylvain, any further comments on this?
Well, the problem is that jBoss and Tomcat both have their own CL.
Currently, I commited modifications to jBoss, which allows to automatically
start Tomcat if it is present.
The servlets and JavaBeans run by Tomcat are able to access EJBs in jBoss,
but without any optimization.
So, it works but isn't as fast as it might be.
To be able to turn the optimization on, we have two possibilities :
Either use the same ClassLoader for both jBoss and Tomcat. It would be a big
CL which has the same features as the ACL of Tomcat and the one of jBoss. We
might use one instance of this CL for each EAR. Thus, there's work to be
done because we need to have a deployer which takes an EAR, instantiate the
CL, and then asks jBoss and Tomcat to deploy each JAR and WAR of the EAR
with the specified CL.
The other way around would be to enhance the proxy thing so that class cast
exception are avoided. But I really don't know whether it's technically
possible..
Sylvain
PS : please reply to jBoss-dev only :-))