Note that there are some explanatory texts on larger screens.

plurals
  1. POTomcat 7 accessing EJB on glassfish 3
    primarykey
    data
    text
    <p>I've seen very many post, and i googled a lot but i'm not able to get out of this problem.</p> <p>I have an EJB module deployed on a glassfish v 3.1.2, and i want to access it by a tomcat v 7. There seems to be no problem when the servers runs on the same host, but when they are on different hosts(namely different machines) raises very many problems. Even with two glassfish servers.</p> <p>I followed <a href="http://technology.amis.nl/2006/10/20/connecting-to-an-ejb-30-remote-sessionbean-from-tomcat/" rel="nofollow">http://technology.amis.nl/2006/10/20/connecting-to-an-ejb-30-remote-sessionbean-from-tomcat/</a></p> <p>and a lot of other similar link that can be found also here in the stackexchange, that i will not report here because they all suggest the same thing, that is:</p> <p>put this lines of codes in your code, ie a servlet:</p> <p>Properties props = new Properties(); props.put("java.naming.factory.initial","com.sun.enterprise.naming.SerialInitContextFactory"); props.put("java.naming.factory.url.pkgs","com.sun.enterprise.naming"); props.put("java.naming.factory.state","com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl"); props.setProperty("org.omg.CORBA.ORBInitialHost", "10.23.2.150"); props.setProperty("org.omg.CORBA.ORBInitialPort", "3700"); </p> <p>And also many of you suggest to include in the path the:</p> <ul> <li>gf-client of glassfish (do you evermind that on tomcat i may not be able to refer to the glassfish libraries)</li> <li>or all the libraries which refers to the gf-client (close to 10 mega of files)</li> </ul> <p>but the does't work..</p> <p>I still get the initialcontext directory not found problem..</p> <p>May you suggest me any solution? may you suggest me any step by step "tutorial" to follow in order to make everything work out?</p> <p>if you need any piece of the code or the complete error just answer me please, is almost 1 week i'm trying to resolve this problem..</p> <p>thank you very much indeed</p>
    singulars
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    plurals
    1. This table or related slice is empty.
    1. This table or related slice is empty.
    1. This table or related slice is empty.
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload