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.