Hi there,
If your EJBs are being started you will see it in your logs, something similar
to what I've got here:
| DEBUG 03-01 15:00:33,895 (Ejb3AnnotationHandler.java:getContainers:158)
-found EJB3: ejbName=LookupActionBean, class=LookupActionBean, type=STATELESS
| DEBUG 03-01 15:00:33,906
(ProxyDeployer.java:initializeRemoteBindingMetadata:131) -no declared remote
bindings for : LookupActionBean
| DEBUG 03-01 15:00:33,925
(Ejb3DescriptorHandler.java:addClassAnnotation:1686) -adding class annotation
org.jboss.annotation.internal.DefaultInterceptorMarker to LookupServiceBean
[EMAIL PROTECTED]
| DEBUG 03-01 15:00:33,926
(Ejb3DescriptorHandler.java:addClassAnnotation:1688) -adding class annotation
org.jboss.annotation.internal.DefaultInterceptorMarker to LookupServiceBean
[EMAIL PROTECTED]
| DEBUG 03-01 15:00:33,928
(Ejb3DescriptorHandler.java:addClassAnnotation:1686) -adding class annotation
javax.annotation.security.DeclareRoles to LookupServiceBean [EMAIL PROTECTED]
| DEBUG 03-01 15:00:33,928
(Ejb3DescriptorHandler.java:addClassAnnotation:1688) -adding class annotation
javax.annotation.security.DeclareRoles to LookupServiceBean [EMAIL PROTECTED]
|
When I have the above bean, I can look it up from a unit test as:
| bean = (LookupAction) ctx.lookup("LookupActionBean/local");
|
Check that your unit tests run with the following jndi.properties in the
classpath, or specified when you get your initial context:
| java.naming.factory.initial=org.jnp.interfaces.LocalOnlyContextFactory
| java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces
|
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3997815#3997815
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3997815
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user