[Design of EJB 3.0] - Re: jndi name issues
by wolfc
I'll only cover @EJB on class level, because method and field just add beanInterface and name to the mix.
@EJB(name="ejb1", mappedName="refs/client/EJB1")
Should create java:comp/env/ejb1 -> refs/client/EJB1.
@EJB(name="ejb1")
Is illegal.
@EJB(name="ejb1", beanInterface=IFace1.class)
Should first look in the current deployment unit for a bean implementing IFace1, then sibling deployments, then parent sibling deployments (who should look into child deployments) recursively. By spec this stops at JavaEE application level.
@EJB(name="ejb1", beanName="Ejb2Bean")
Should first look in the current deployment unit for a bean named "Ejb2Bean", then sibling deployments, then parent sibling deployments (who should look into child deployments) recursively. By spec this stops at JavaEE application level.
@EJB(name="ejb1", beanName="../myjar.jar#Ejb3Bean")
Looks in sibling deployment "myjar.jar" for a bean named "Ejb3Bean".
By now the reference should be resolved and the bean.mappedName should be inserted in the ejb.mappedName. If not, loud warning or exception.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147720#4147720
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147720
16 years, 8 months
[Design the new POJO MicroContainer] - Re: Alternative vfs jar implementation
by scott.stark@jboss.org
Just pulling the branch down and running mvn package on it shows a number of failures. Are those expected at this point?
| Running org.jboss.test.virtual.test.JAREntryTestCase
| Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.136 sec
| [INFO] Building jar: /tmp/surefirebooter129.jar
| Running org.jboss.test.virtual.test.CopyFileVFSUnitTestCase
| Tests run: 42, Failures: 0, Errors: 11, Skipped: 0, Time elapsed: 0.692 sec <<< FAILURE!
| [INFO] Building jar: /tmp/surefirebooter132.jar
| Running org.jboss.test.virtual.test.VirtualFileUnitTestCase
| Tests run: 82, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.236 sec
| [INFO] Building jar: /tmp/surefirebooter135.jar
| Running org.jboss.test.virtual.test.JARVirtualFileHandlerUnitTestCase
| Tests run: 44, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.22 sec
| [INFO] Building jar: /tmp/surefirebooter138.jar
| Running org.jboss.test.virtual.test.VFSUnitTestCase
| Tests run: 84, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.213 sec
| [INFO] Building jar: /tmp/surefirebooter141.jar
| Running org.jboss.test.virtual.test.JARSerializationUnitTestCase
| Tests run: 4, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.182 sec <<< FAILURE!
| [INFO] Building jar: /tmp/surefirebooter144.jar
| Running org.jboss.test.virtual.test.SundryVFSUnitTestCase
| Tests run: 3, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.105 sec
| [INFO] Building jar: /tmp/surefirebooter147.jar
| Running org.jboss.test.virtual.test.VisitorUnitTestCase
| Tests run: 14, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.14 sec
| [INFO] Building jar: /tmp/surefirebooter150.jar
| Running org.jboss.test.virtual.test.CopyJAREntryTestCase
| Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.082 sec
| [INFO] Building jar: /tmp/surefirebooter153.jar
| Running org.jboss.test.virtual.test.FileVirtualFileHandlerUnitTestCase
| Tests run: 44, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.681 sec
| [INFO] Building jar: /tmp/surefirebooter156.jar
| Running org.jboss.test.virtual.test.ZipEntryHandlerUnitTestCase
| Tests run: 44, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: 0.19 sec <<< FAILURE!
| [INFO] Building jar: /tmp/surefirebooter159.jar
| Running org.jboss.test.virtual.test.ZipEntryVFSContextUnitTestCase
| Tests run: 23, Failures: 0, Errors: 2, Skipped: 0, Time elapsed: 0.166 sec <<< FAILURE!
| [INFO] Building jar: /tmp/surefirebooter162.jar
| Running org.jboss.test.virtual.test.UnpackTestCase
| Tests run: 5, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.133 sec <<< FAILURE!
| [INFO] Building jar: /tmp/surefirebooter165.jar
| Running org.jboss.test.virtual.test.FileVFSUnitTestCase
| Tests run: 42, Failures: 0, Errors: 5, Skipped: 0, Time elapsed: 0.499 sec <<< FAILURE!
| [INFO] Building jar: /tmp/surefirebooter168.jar
| Running org.jboss.test.virtual.test.PathQueryTestCase
| Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.084 sec
| [INFO] Building jar: /tmp/surefirebooter171.jar
| Running org.jboss.test.virtual.test.URLConnectionUnitTestCase
| Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.046 sec
| [INFO] Building jar: /tmp/surefirebooter174.jar
| Running org.jboss.test.virtual.test.CopyJARCacheUnitTestCase
| Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.08 sec
| [INFO] Building jar: /tmp/surefirebooter177.jar
| Running org.jboss.test.virtual.test.FileVFSContextUnitTestCase
| Tests run: 21, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.139 sec
| [INFO] Building jar: /tmp/surefirebooter180.jar
| Running org.jboss.test.virtual.test.URLResolutionUnitTestCase
| Tests run: 4, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.05 sec
| [INFO] Building jar: /tmp/surefirebooter183.jar
| Running org.jboss.test.virtual.test.MemoryTestCase
| Tests run: 8, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.181 sec
| [INFO] Building jar: /tmp/surefirebooter186.jar
| Running org.jboss.test.virtual.test.AssembledContextTestCase
| Tests run: 5, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.247 sec
| [INFO] Building jar: /tmp/surefirebooter189.jar
| Running org.jboss.test.virtual.test.JARVFSContextUnitTestCase
| Tests run: 23, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.195 sec
| [INFO] Building jar: /tmp/surefirebooter192.jar
| Running org.jboss.test.virtual.test.CopyJARSerializationUnitTestCase
| Tests run: 4, Failures: 0, Errors: 3, Skipped: 0, Time elapsed: 0.17 sec <<< FAILURE!
| [INFO] Building jar: /tmp/surefirebooter195.jar
| Running org.jboss.test.virtual.test.JARCacheUnitTestCase
| Tests run: 1, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.123 sec
| [INFO] Building jar: /tmp/surefirebooter198.jar
| Running org.jboss.test.virtual.test.URLExistsUnitTestCase
| Tests run: 2, Failures: 0, Errors: 0, Skipped: 0, Time elapsed: 0.069 sec
|
| Results :
|
| Tests in error:
|
| Tests run: 504, Failures: 0, Errors: 28, Skipped: 0
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4147675#4147675
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4147675
16 years, 8 months