Hi!

Sylvain Laurent wrote:
> So, it's nice to be able to serve servlets and JSPs from the same server as
> jBoss, but it would be better to have your servlets talking directly to
> jBoss, without going thru RMI....
> 
> Well there are many class loaders issues in which I have to take look...
> So for now, don't expect to have tomcat beeing able to invoke EJBs within
> the same VM. Of course, you can still have two different VMs, one with jBoss
> alone, the other with tomcat alone...

I will take a closer look at the classloader issue. This needs to be
solved better than now.

Essentially we need this chain of loaders:
* VM loader - the default one; loads JDK classes + JMX classes
is parent to
* server loader - a classloader that is used to load all interface
classes (JDBC 2.0 ext, JTA, JNDI)
is parent to
* JMX loader(s) - these (plural) are used to load JMX MBean
implementations. Each loader can load one or more MBeans. By doing this
we can upgrade each MBean separately at runtime. By using the dependency
chain described in earler post we make sure that any dependent MBeans
are stopped prior to upgrade and started after upgrade.
is parent to
* Any MBean internal loaders - e.g. EJB container creates loader for
EJB's. Lots of freedom here.

The main trick is between server loader and JMX loader. By letting the
server loader handle all interface classes the components can talk to
each other through these. Should work well.

I think it's mainly the bootstrap class that needs to be changed in
order to support the above. 

Now, take a moment to think about what I just wrote. We will.. be able
to.. upgrade.. *parts*.. of the server.. *at runtime*... without taking
the whole thing down... whoooa.... 8-)

Now, picture that in a clustered environment. 

Voice recognition enabled. 

"Management console up". "Download latest 'JDBC drivers' from 'Oracle'",
"Upgrade 'JDBC drivers' from 'Oracle' in 'Alpha' cluster". 

...

(computer voice) "'Alpha' cluster 'JDBC drivers' upgraded"

8-)

You aint seen nothing yet...

/Rickard

-- 
Rickard �berg

@home: +46 13 177937
Email: [EMAIL PROTECTED]
http://www.telkel.com
http://www.jboss.org
http://www.dreambean.com

Reply via email to