"bambooh" wrote :
|
| | Accesso accessoBean =
(Accesso)context.lookup("java:comp/env/RivalseEar/AccessoBean/local");
| |
| |
| |
anonymous wrote :
|
| Global JNDI Namespace
| +- TopicConnectionFactory (class: org.jboss.naming.LinkRefPair)
| +- jmx (class: org.jnp.interfaces.NamingContext)
| | +- invoker (class: org.jnp.interfaces.NamingContext)
| | | +- RMIAdaptor (proxy: $Proxy47 implements interface
org.jboss.jmx.adaptor.rmi.RMIAdaptor,i
| nterface org.jboss.jmx.adaptor.rmi.RMIAdaptorExt)
| | +- rmi (class: org.jnp.interfaces.NamingContext)
| | | +- RMIAdaptor[link -> jmx/invoker/RMIAdaptor] (class:
javax.naming.LinkRef)
| +- RivalseEar (class: org.jnp.interfaces.NamingContext)
| | +- EjbSynchronizations (class: org.jnp.interfaces.NamingContext)
| | | +- localStatefulProxyFactory (class:
org.jboss.ejb3.stateful.StatefulLocalProxyFactory)
| | | +- local (class: java.lang.Object)
| | +- TimerServiceDispatcher (class: org.jnp.interfaces.NamingContext)
| | | +- local (proxy: $Proxy89 implements interface
org.jboss.seam.async.LocalTimerServiceDispa
| tcher,interface org.jboss.ejb3.JBossProxy)
| | +- AccessoBean (class: org.jnp.interfaces.NamingContext)
| | | +- local (proxy: $Proxy82 implements interface
it.inail.rivalse.session.security.Accesso,i
| nterface org.jboss.ejb3.JBossProxy)
bambooh, as you can see from the JNDIView, the bean is bound in "Global JNDI
namespace". In your lookup code, you are using the java:comp/env namespace for doing
the lookup. Hence the lookup fails.
Change the lookup to:
| Accesso accessoBean =
(Accesso)context.lookup("RivalseEar/AccessoBean/local");
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4143040#...
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&a...