aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes ejb lookup problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "ejb lookup problem" Watch "ejb lookup problem" New topic
Author

ejb lookup problem

Racine Ivan
Greenhorn

Joined: Sep 29, 2008
Posts: 1
there is a problem when connecting the ejb server, it throws the following exception on console:

Caused by: java.net.ConnectException: Connection refused: connect
at sun.nio.ch.Net.connect(Native Method)
at sun.nio.ch.SocketChannelImpl.connect(SocketChannelImpl.java:507)
at com.sun.corba.ee.impl.orbutil.ORBUtility.openSocketChannel(ORBUtility.java:105)
at com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketFactory.java:332)
... 22 more


it enters a loop and after several attepmts , it finish, what i want is
that only ONE attempt is executed when there is no conection, i already looked up on properties in my ejb locator like this:

java.util.Properties props = new java.util.Properties();

props.setProperty("java.naming.factory.initial",
"com.sun.enterprise.naming.SerialInitContextFactory");
props.setProperty("java.naming.factory.url.pkgs",
"com.sun.enterprise.naming");
props.setProperty("java.naming.factory.state",
"com.sun.corba.ee.impl.presentation.rmi.JNDIStateFactoryImpl");


// optional. Defaults to localhost. Only needed if web server is running
// on a different host than the appserver
//props.setProperty("org.omg.CORBA.ORBInitialHost", "192.168.1.235");
props.setProperty("org.omg.CORBA.ORBInitialHost", "127.0.0.1");

// optional. Defaults to 3700. Only needed if target orb port is not 3700.
props.setProperty("org.omg.CORBA.ORBInitialPort", "3700");

return new javax.naming.InitialContext(props);


WHAT PROPERTIE IS THAT I NEED TO CONFIGURE FOR ONLY ONE ATTEMPT IS EXECUTED?



greetings!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: ejb lookup problem