[jboss-dev-forums] [Design of POJO Server] - Re: Testing Bootstrap Dependencies
istudens@redhat.com
do-not-reply at jboss.com
Tue Sep 23 04:29:32 EDT 2008
"bstansberry at jboss.com" wrote : You shouldn't add the Ejb3Deployer
| tag. The fact that the deployers are deployed before anything in deploy/ is one of the things being tested.
|
| Have a look at the tests in the testsuite module org.jboss.test.deployers package, e.g. org.jboss.test.deployers.ear.test.EARDeploymentUnitTestCase. Those tests work by deploying something into a running AS and then using some utilities to remotely invoke on the MainDeployer and check the status of the deployments. Yours could do much the same thing, except you ensure the deployment is already there before the AS even starts.
|
| Note that I *think* Adrian Brock wants the way those org.jboss.test.deployers unit tests work changed though. I don't recall the specifics; just recall a comment along those lines.
|
| Also, as you confirm failures, please open separate JIRA issues for each; if its an EJB3 failure, in EJB3 project, otherwise in JBAS.
When I remove the Ejb3Deployer tag the deployment of the SAR fails with
dependency on TransactionManager, see:
2008-09-23 09:50:10,733 DEBUG [org.jboss.ejb3.deployers.Ejb3Deployer] (main) ********* Ejb3Deployer Begin Unit: Aaabootstrapdependency-jbas5349-ejb3.sar jar:
| Aaabootstrapdependency-jbas5349-ejb3.sar
| 2008-09-23 09:50:10,820 DEBUG [org.jboss.ejb3.interceptors.metadata.InterceptorMetaDataBridge] (main) ======> Creating interceptor metadata bridge
| 2008-09-23 09:50:11,088 DEBUG [org.jboss.ejb3.security.AuthenticationInterceptorFactory] (main) Creating interceptor with authentication manager 'null'
| 2008-09-23 09:50:11,100 DEBUG [org.jboss.tm.TransactionManagerLocator] (main) Unable to lookup: java:/TransactionManager
| javax.naming.NameNotFoundException: TransactionManager not bound
|
So there is a question if this is an expected result of the test or if the SAR should contain a 'depends' tag with 'jboss:service=TransactionManager'. I am not sure.
Of course I will refactor the test to use utilities from org.jboss.test.deployers.AbstractDeploymentTest to check the status of the deployment and run it inside profileservice AS config.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4178214#4178214
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4178214
More information about the jboss-dev-forums
mailing list