|
Oh, i should have put a message from jboss console
when trying to do the lookup. Code looks like this:
Object obj = new
InitialContext().lookup("java:comp/env/ejb/CheckoutRegister");
System.out.println(obj); And msg in jboss console is this:
[UniqueKey] Activated bean UniqueKey with id =
se.benefit.util.UniqueKeyPK@4fc7a
011 [UniqueKey] Failed to lookup checkoutregister:ejipt: not bound [UniqueKey] TRANSACTION ROLLBACK EXCEPTION:null; nested exception is: javax.ejb.EJBException [UniqueKey] javax.naming.NameNotFoundException: ejipt: not bound [UniqueKey] at org.jnp.server.NamingServer.getBinding(NamingServer.java:474) [UniqueKey] at
org.jnp.server.NamingServer.getBinding(NamingServer.java:482)
[UniqueKey] at
org.jnp.server.NamingServer.getObject(NamingServer.java:488)
[UniqueKey] at org.jnp.server.NamingServer.lookup(NamingServer.java:254) [UniqueKey] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:29 5) [UniqueKey] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:27 9) [UniqueKey] at javax.naming.InitialContext.lookup(Unknown Source) [UniqueKey] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:36 7) [UniqueKey] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:40 3) [UniqueKey] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:27 9) [UniqueKey] at javax.naming.InitialContext.lookup(Unknown Source) [UniqueKey] at se.benefit.util.UniqueKeyBean.getNextKey(UniqueKeyBean.java:2 12) [UniqueKey] at se.benefit.util.UniqueKeyBean.getNextKey(UniqueKeyBean.java:1 75) [UniqueKey] at se.benefit.util.UniqueKeyBean.getNextKey(UniqueKeyBean.java:1 61) [UniqueKey] at java.lang.reflect.Method.invoke(Native Method) [UniqueKey] at org.jboss.ejb.EntityContainer$ContainerInterceptor.invoke(Ent ityContainer.java:722) [UniqueKey] at org.jboss.ejb.plugins.EntitySynchronizationInterceptor.invoke (EntitySynchronizationInterceptor.java:208) [UniqueKey] at org.jboss.ejb.plugins.EntityInstanceInterceptor.invoke(Entity InstanceInterceptor.java:186) [UniqueKey] at org.jboss.ejb.plugins.TxInterceptorCMT.invokeNext(TxIntercept orCMT.java:133) [UniqueKey] at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(Tx InterceptorCMT.java:378) [UniqueKey] at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCM T.java:99) [UniqueKey] at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInte rceptor.java:137) [UniqueKey] at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.ja va:195) [UniqueKey] at org.jboss.ejb.EntityContainer.invoke(EntityContainer.java:323 ) [UniqueKey] at org.jboss.ejb.plugins.jrmp.server.JRMPContainerInvoker.invoke (JRMPContainerInvoker.java:381) [UniqueKey] at java.lang.reflect.Method.invoke(Native Method) [UniqueKey] at sun.rmi.server.UnicastServerRef.dispatch(Unknown Source) [UniqueKey] at sun.rmi.transport.Transport$1.run(Unknown Source) [UniqueKey] at java.security.AccessController.doPrivileged(Native Method) [UniqueKey] at sun.rmi.transport.Transport.serviceCall(Unknown Source) [UniqueKey] at sun.rmi.transport.tcp.TCPTransport.handleMessages(Unknown Sou rce) [UniqueKey] at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run(Unkn own Source) [UniqueKey] at java.lang.Thread.run(Unknown Source) /Lennart
|
- Re: [jBoss-User] SV: Ref to external ejb - deployd in no... Lennart Petersson
- Re: [jBoss-User] SV: Ref to external ejb - deployd ... Scott M Stark
- SV: [jBoss-User] SV: Ref to external ejb - depl... Lennart Petersson
- [jBoss-User] SV: Ref to external ejb - deployd in n... Lennart Petersson
