[jboss-dev-forums] [Design of POJO Server] - Re: Register dynamic class loading with a domain

adrian@jboss.org do-not-reply at jboss.com
Tue Jun 10 11:36:10 EDT 2008


"sguilhen at redhat.com" wrote : 
  | As Adrian said, we can always include the stub classes in the vehicles war deployments to have the tests passing, but it would be good to have a more general solution in place.

Another solution would be to write a new stub deployer that either

* Takes a list of interfaces to generate stubs for
(could be the interfaces defined on the ejb-refs in the ejb-jar/web.xml)
* Scans the deployment for Remote classes and generates them automatically.

The generated bytecode could then be placed in the in memory vfs that is available
for each classloader used by aop.
http://viewvc.jboss.org/cgi-bin/viewvc.cgi/jbossas/projects/jboss-deployers/trunk/deployers-vfs/src/main/org/jboss/deployers/vfs/plugins/classloader/InMemoryClassesDeployer.java?revision=72346&view=markup

This doesn't require any change to the classloader, such as the complicated
multiple pass, and the resource does exist in the in-memory vfs context.

View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4157074#4157074

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4157074



More information about the jboss-dev-forums mailing list