anonymous wrote : but now I lookup failed with: | | | javax.naming.NameNotFoundException: authors not bound | | at org.jnp.server.NamingServer.getBinding(NamingServer.java:514) | | at org.jnp.server.NamingServer.getBinding(NamingServer.java:522) | | at org.jnp.server.NamingServer.getObject(NamingServer.java:528) | | at org.jnp.server.NamingServer.lookup(NamingServer.java:281) | | at sun.reflect.GeneratedMethodAccessor74.invoke(Unknown Source) | | at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) | |
Did you solve it? I have the same problem, too. There are no examples on how to find (lookup) deployed EJB from VM other then EJB containers. When I look in JNDI tree in JMX console, and compare it to what InitialContext contains, I see that it does not search through java namespace, but only through global JNDI namespace. Here is the code: InitialContext ctx; | try { | ctx = new InitialContext(); | Enumeration ctxList = ctx.list(""); | int i = 0; | while (ctxList.hasMoreElements()) { | i++; | NameClassPair element = (NameClassPair) ctxList.nextElement(); | System.out.println("element "+i+" : "+element); | } | } catch (NamingException e) { | e.printStackTrace(); | } | View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3917094#3917094 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3917094 ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://ads.osdn.com/?ad_id=7637&alloc_id=16865&op=click _______________________________________________ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user