Please Remove me from the e-mail list.
Thank You
Robin

-----Original Message-----
From: Romain Manni-Bucau [mailto:rmannibu...@gmail.com] 
Sent: Friday, June 15, 2012 4:38 AM
To: users@openejb.apache.org
Subject: Re: simple db-jpa-ejb-servlet

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 <s.wojciechow...@gmail.com>

> 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.opene
> jb.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-tp465559
> 6p4655626.html Sent from the OpenEJB User mailing list archive at 
> Nabble.com.
>

Reply via email to