Sounds like what the ServiceLoader stuff is supposed to accomplish.
Bob
--
Sent from my iPhone
On Jul 4, 2011, at 11:14 AM, Michael Musgrove <mmusgrov(a)redhat.com> wrote:
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(a)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)
_______________________________________________
jboss-as7-dev mailing list
jboss-as7-dev(a)lists.jboss.org
https://lists.jboss.org/mailman/listinfo/jboss-as7-dev