[jboss-as7-dev] Is there a way for a core module to load a class from a war

Michael Musgrove mmusgrov at redhat.com
Mon Jul 4 11:17:51 EDT 2011


The transactions module (org.jboss.jts) includes a flexible mechanism 
for recovering transaction participants. Third party software can hook 
into the recovery system by registering an object of type 
java.lang.Class whose instances are capable of recovering particular 
types of log record.

The registration is done by calling a static method defined in the jts 
transactions module.

However this mechanism fails with the module class loading used in AS7 
since the transactions module tries to instantiate an instance of a 
class that belongs to another module (in my case it is a war deployed 
into the deployment directory).

We use this mechanism in our REST API in order to support recovery.

My question is: is there a way of enabling the transactions module to 
instantiate a class belonging to a war's class loader?

Mike

-- 
Michael Musgrove
mmusgrov at redhat.com

JBoss, by Red Hat
Registered in England and Wales under Company Registration No. 03798903
Directors: Michael Cunningham (USA), Brendan Lane (Ireland), Matt Parson
(USA), Charlie Peters (USA)



More information about the jboss-as7-dev mailing list