[jboss-user] [Persistence, JBoss/CMP, Hibernate, Database] - If I put @PersistenceContext(unitName=
Renegade_xx
do-not-reply at jboss.com
Wed Aug 9 05:12:39 EDT 2006
Hi!
I have a simple question.
I have an EJB3.0 Session bean (RegisterUserBean). If I try to configure an EntityManager in a following way:
| @PersistenceContext(unitName="rubis")
| protected EntityManager em;
|
I can't lookup with the following:
| InitialContext ctx = new InitialContext();
| cal = (RegisterUser) ctx.lookup("RubisBeanEAR/RegisterUserBean/remote");
|
becouse I get the next error msg:
| 10:50:54,421 ERROR [STDERR] javax.naming.NameNotFoundException: remote not bound
| 10:50:54,421 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(NamingServer.java:529)
| 10:50:54,421 ERROR [STDERR] at org.jnp.server.NamingServer.getBinding(NamingServer.java:537)
| 10:50:54,421 ERROR [STDERR] at org.jnp.server.NamingServer.getObject(NamingServer.java:543)
| 10:50:54,421 ERROR [STDERR] at org.jnp.server.NamingServer.lookup(NamingServer.java:296)
| 10:50:54,421 ERROR [STDERR] at org.jnp.server.NamingServer.lookup(NamingServer.java:270)
| ...
|
Tools:
jboss-4.0.4RC1
jre1.5.0_06
MySql Server 5.0
If I don't use te annotation, ther is no error.
Please, help me.
Thank you very much
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3963992#3963992
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3963992
More information about the jboss-user
mailing list