hmm,
i tested this way:
1) added tomee plugin to your pom:
<plugin>
<groupId>org.apache.openejb.maven</groupId>
<artifactId>tomee-maven-plugin</artifactId>
<version>1.0.0-SNAPSHOT</version> <!-- needs apache snapshot
plugin repo -->
</plugin>
2) ran
final Properties p = new Properties();
p.setProperty(Context.INITIAL_CONTEXT_FACTORY,
RemoteInitialContextFactory.class.getName());
p.setProperty(Context.PROVIDER_URL, "http://localhost:8080/tomee/ejb
");
System.out.println(new InitialContext(p).lookup("OsakaImpRemote"));
and it works out of the box
- Romain
2012/6/14 slawek <[email protected]>
> INFO: Jndi(name=OsakaImpRemote) --> Ejb(deployment-id=OsakaImp)
> 2012-06-14 22:51:42 org.apache.openejb.assembler.classic.JndiBuilder bind
> INFO:
>
> Jndi(name=global/localhost/test_ejb_jpa_servlet/OsakaImp!pl.test.openejb.ejb.Osaka)
> --> Ejb(deployment-id=OsakaImp)
> 2012-06-14 22:51:42 org.apache.openejb.assembler.classic.JndiBuilder bind
> INFO: Jndi(name=global/localhost/test_ejb_jpa_servlet/OsakaImp) -->
> Ejb(deployment-id=OsakaImp)
>
> Regards
> sw
>
> --
> View this message in context:
> http://openejb.979440.n4.nabble.com/simple-db-jpa-ejb-servlet-tp4655596p4655626.html
> Sent from the OpenEJB User mailing list archive at Nabble.com.
>