message driven bean - Wrong Spring AppContext found in EAR -
i have ear multiple mdbs in it. each mdb jar has own application context. when message arrives can see logging appropriate mdb initialises, obtains application context different mdb!
i thought each ejb should have it's own classloader. seems doesn't. how can enforce each mdb load own app context?
i using websphere 7.
my project structure is:
meta-inf/ meta-inf/manifest.mf topicreader-ejb-mdb01.jar topicreader-ejb-mdb02.jar lib/ lib/3rdpartylib01.jar lib/3rdpartylib02.jar ... etc the content of mdb jars is:
applicationcontext.xml com/mycompany/ ... (classes) meta-inf/ejb-jar.xml meta-inf/manifest.mf
in can change classloader order wars!!, hope can same jars. normaly class loader order "parent first". try "parent last".
Comments
Post a Comment