[EJB 3.0] - Testing MDBs
by jharting
Hello,
I am writting a test that verifies that my MDB is instantiated properly. I need the container to create a new instance in a normal way (including execution of @PostConstruct callback) The most intuitive way of testing this is to set up a queue, subscribe the MDB to it and send a message to the queue - letting the container to do the instantation, however:
1) I need the test to be able to run on various containers. Therefore, I cannot depend on vendor specific ways of JMS configuration etc.
2) The test should be as little complex as possible.
So to summarize, I need to make the container instantiate my MDB in a fully EE5 compatible way.
Any ideas will be appreciated.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247599#4247599
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247599
16 years, 8 months
[Microcontainer] - Re: Info required about jboss-classloading.xml
by djordjevs
Hi,
Thanks for the prompt response.
The deploy is an ear file that contains an ejb jar, a war file and a sar file. All three files and the ear file contain only metadata - xml files (ejb.xml, web.xml etc. in the correct places) and no code at all. The application code is deployed in a jar and placed to ...../default/lib where are also all the third party libraries. This is how it's been done for years with no issues, up until upgrade to V5 (currently running on 4.0.2).
The traditional ear deploy with java2parentDelegation does work as well as exploded deploy that I might use as a workaround, though I would prefer using jboss-classloading.xml.
On that note, jboss-classloading.xml is still a mystery, the links provided really don't help much. A short document explaining at minimum the following would be highly appreciated.
1. The xml structure - tags.
2. What values should be put in the tags.
3. Where the jboss-classloading.xml should be placed.
Conclusion:
1. I've got a workaround for the problem.
2. It would be nice if at least some minimal documentation is provided for the new metadata files.
Thanks again
SDJ
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4247598#4247598
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4247598
16 years, 8 months