Suspect multicast doesn't work by default with http transport for ejbd but
should work if you use direct ejbd. You can test it using in
conf/system.properties:

openejb.service.manager.class =
org.apache.openejb.server.SimpleServiceManager



Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
<http://www.tomitribe.com> | JavaEE Factory
<https://javaeefactory-rmannibucau.rhcloud.com>

2016-05-18 15:25 GMT+02:00 Dignesh <[email protected]>:

> artesia.ear
> <http://tomee-openejb.979440.n4.nabble.com/file/n4678505/artesia.ear>
>
> I have attached the ear file that is present in the apps folder. I am using
> apache-tomee-7.0.0-M1-plus.
> Below is my simple client program that does the ejb look up.
>
> import java.util.Properties;
>
> import javax.enterprise.context.spi.Context;
> import javax.naming.InitialContext;
>
> import dignesh.learning.tomee.StockServiceRemote;
>
>
> public class RemoteEjbClientExample {
>
>         public static void main(String args[]) throws Exception
>         {
>
>                 Properties p = new Properties();
>                 p.put(javax.naming.Context.INITIAL_CONTEXT_FACTORY,
> "org.apache.openejb.client.RemoteInitialContextFactory");
>                 p.put(javax.naming.Context.PROVIDER_URL,
> "multicast://239.255.2.3:6142?group=default");
>
>
>                 InitialContext ctx = new InitialContext(p);
>                 StockServiceRemote stockServiceRemote =
> (StockServiceRemote)
>
> ctx.lookup("global/artesia/artesia-ejb/StockBean!dignesh.learning.tomee.StockServiceRemote");
>                 stockServiceRemote.viewStockDetails();
>                 stockServiceRemote.modifyStockDetails();
>                 stockServiceRemote.viewStockDetails();
>         }
>
>
> }
>
>
>
>
> --
> View this message in context:
> http://tomee-openejb.979440.n4.nabble.com/Unable-to-find-a-public-ejb-server-via-the-multicast-URI-during-remote-ejb-look-up-tp4678491p4678505.html
> Sent from the TomEE Dev mailing list archive at Nabble.com.
>

Reply via email to