Hi,
is it reasonable to try to test a singleton session bean configured via ejb-jar.xml using arquillian?
I am trying to configure a singleton session bean in AS7 with a value from an ejb-jar file, without success - basically the setter method on the class under test does not get called.
The class under test, the test class, the ejb-jar.xml file and the console output are attached.
In the test report I can see the "toString(true)" on the test archive, which looks like the files are present in the expected locations:
test.war:
/WEB-INF/
/WEB-INF/ejb-jar.xml
/WEB-INF/jboss-deployment-structure.xml
/WEB-INF/classes/
/WEB-INF/classes/net/
/WEB-INF/classes/net/sf/
/WEB-INF/classes/net/sf/moksha/
/WEB-INF/classes/net/sf/moksha/jbpm/
/WEB-INF/classes/net/sf/moksha/jbpm/engine/
/WEB-INF/classes/net/sf/moksha/jbpm/engine/ejb3/
/WEB-INF/classes/net/sf/moksha/jbpm/engine/ejb3/JbpmSessionFactory.class
I think at least part of the configuration is working because I'm using a jboss-deployment-structure.xml file to enable log4j logging and that output is visible in the console.
Cheers, Andy
Arquillian injection of values from ejb-jar.xml into singleton session beans works fine
On the other hand, my code leaves much to be desired (I missed an @Resource on the injection target).
Cheers, Andy