English 中文(简体)
EJBs
原标题:tomcat JNDI loking up remote EJBs

I have a jboss and a tomcat installed in the same machine (with jboss 6 having port 8080 and tomcat 7 having port 8090) and I am trying to use JNDI lookup from tomcat to obtain the ejb lookups in JBoss. I have checked my EJB beans using the jmx console to make sure they are available. I have denoted them to be @Remote and in JMX console these EJBs are avilable as aaaServiceRemote/remote bbbServiceRemote/remote etc

I my tomcat, I have put my application war which consists a Service locator and when the application starts the service locator tries to find the EJBs and fails. I have put jnp-client and jboss-all-client jar files copied from jboss/client to tomcat/lib folder I have put a jndi.properties file inside the webapp directory of tomcat consisting of the following entries.

www.un.org/Depts/DGACM/index_spanish.htm

java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory
java.naming.provider.url=localhost:1099
java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces

看来,在日本移民与发展协会的环境下,似乎试图找到EJBs,而不是偏远的jbos JNDI。

如果能够帮助进行这一远程调查,请提供任何帮助。

最佳回答

it looks like your jndi.properties file is not read properly. Have you tried to see whether these properties are passed to the InitialContext object when you create a first JNDI lookup?

de弄的是什么?

问题回答

暂无回答




相关问题
Tomcat´s server.xml dynamic configuration

My web application uses the same database configuration as the application XYZ. I have a resource declaration for a context in server.xml, so I have a duplicated configuration (once for web ...

session transfer issue from Tomcat to ASP.Net

I am using Tomcat to host JSP and using IIS 7.0 to host aspx (C# + .Net 3.5 + VSTS 2008), and I have some session transfer issue from JSP page to ASPX page. JSP page is in one domain and all other ...

JSP exception - class not found (tomcat)

I m setting up an existing application on a new Tomcat 5.5 server connecting to a Postgres database (running on Debian Lenny). When I access it I get a series of stack traces with the following root ...

热门标签