This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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:
// 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");