specifying the CLASSPATH within an EAR application

G

graf.laszlo

Hi all,

I have a JAR file called myejb.jar, a WAR file called mywar.war and
they are packaged into
an EAR file called myear.ear. How should I specify the Class-Path
attribute in the WAR's MANIFEST.MF to can use my EJBs from myejb.jar?

Thank you,

Laszlo.
 
D

Dave f

If this is all running in the same container (JBoss, WebLogic,
WebSphere, etc.), you should be able to do a local JNDI lookup based on
the JNDI name of the EJBs. There's really no need to specify a
classpath.

In the Servlet or JSP from the WAR file, do a
context.lookup("jndi/path/here");
 
D

Dave f

If this is all running in the same container (JBoss, WebLogic,
WebSphere, etc.), you should be able to do a local JNDI lookup based on
the JNDI name of the EJBs. There's really no need to specify a
classpath.

In the Servlet or JSP from the WAR file, do a
context.lookup("jndi/path/here");
 
D

Dave f

If this is all running in the same container (JBoss, WebLogic,
WebSphere, etc.), you should be able to do a local JNDI lookup based on
the JNDI name of the EJBs. There's really no need to specify a
classpath.

In the Servlet or JSP from the WAR file, do a
context.lookup("jndi/path/here");
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,020
Latest member
GenesisGai

Latest Threads

Top