I have previously successfully accomplished messaging from my PC to a network
server as detailed in The Java EE 5 Tutorial Chapter 31 (see my post JMS -
Netbeans - Glassfish at this writing last updated December 20, 2007 - thanks
Siva for your help).
My next task is to build upon the JMS Producer (PC - GlassFish v2) and
SynchConsumer (network AppServer 9.1) to make my PC a standalone client
(ProducerAppClient) to the network server (as noted). I am using the Sun
Java System Application Server 9.1 Developer's Guide (319-3672) Chapter 11
(Developing Java Clients -> To Access a JMS Resource From an Application
Client) along with the Java EE 5 Tutorial. The first step I have
accomplished as stated in the preceding paragraph. The next steps are
somewhat confusing. This may be primarily because my PC is my development
machine and the network server (with AppServer9.1 on it) is the main server.
What I need help with is:
1) Please confirm that the configuration of the JMS resource on the
Application Server is what I need to do on my network server.
2) In both the application-client.xml and sun-application-client.xml files
should the standalone="yes"?
3) I used the package-appclient script to create my appclient.jar file.
Then according to the Sun Java Application Server 9.1 Reference Manual for
use of the package-appclient I unjarred the appclient.jar in a C:\AppTest
directory on my PC. I did not start up GlassFish v2 on my PC since the
whole point is for this to be a standalone application. When I attempt to
run this as the next step indicates I get the following:
C:\AppTest\appclient\bin>appclient -client
c:\source\projects\JMS\ProducerAppClient\dist\ProducerAppClient.jar queue 3
Dec 31, 2007 10:31:14 AM
com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl <init>
WARNING: "IOP00410201: (COMM_FAILURE) Connection failure: socketType:
IIOP_CLEAR_TEXT; hostname: programmer1; port: 3700"
org.omg.CORBA.COMM_FAILURE: vmcid: SUN minor code: 201 completed: No
at
com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2690)
at
com.sun.corba.ee.impl.logging.ORBUtilSystemException.connectFailure(ORBUtilSystemException.java:2711)
at
com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:261)
at
com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:274)
at
com.sun.corba.ee.impl.transport.SocketOrChannelContactInfoImpl.createConnection(SocketOrChannelContactInfoImpl.java:130)
at
com.sun.corba.ee.impl.protocol.CorbaClientRequestDispatcherImpl.beginRequest(CorbaClientRequestDispatcherImpl.java:192)
at
com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.request(CorbaClientDelegateImpl.java:181)
at
com.sun.corba.ee.impl.protocol.CorbaClientDelegateImpl.is_a(CorbaClientDelegateImpl.java:325)
at org.omg.CORBA.portable.ObjectImpl._is_a(ObjectImpl.java:112)
at
org.omg.CosNaming.NamingContextHelper.narrow(NamingContextHelper.java:69)
at
com.sun.enterprise.naming.SerialContext.narrowProvider(SerialContext.java:127)
at
com.sun.enterprise.naming.SerialContext.getProvider(SerialContext.java:182)
at
com.sun.enterprise.naming.SerialContext.lookup(SerialContext.java:339)
at javax.naming.InitialContext.lookup(InitialContext.java:392)
at com.sun.enterprise.util.Utility.lookupObject(Utility.java:145)
at
com.sun.enterprise.ServerConfiguration.<init>(ServerConfiguration.java:96)
at
com.sun.enterprise.ServerConfiguration.getConfiguration(ServerConfiguration.java:80)
at
com.sun.enterprise.distributedtx.J2EETransactionManagerImpl.createTransactionManager(J2EETransactionManagerImpl.java:294)
at
com.sun.enterprise.appclient.AppContainer.initializeNaming(AppContainer.java:204)
at
com.sun.enterprise.appclient.MainWithModuleSupport.<init>(MainWithModuleSupport.java:364)
at
com.sun.enterprise.appclient.MainWithModuleSupport.<init>(MainWithModuleSupport.java:259)
at com.sun.enterprise.appclient.Main.main(Main.java:200)
Caused by: java.lang.RuntimeException: java.net.ConnectException: Connection
refused: connect
at
com.sun.enterprise.iiop.IIOPSSLSocketFactory.createSocket(IIOPSSLSocketFactory.java:347)
at
com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl.<init>(SocketOrChannelConnectionImpl.java:244)
... 19 more
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)
... 20 more
Dec 31, 2007 10:31:16 AM
com.sun.corba.ee.impl.transport.SocketOrChannelConnectionImpl <init>
Am I missing instructions in my steps? Obviously I have tried to follow the
three or four documents I have referenced. What do I need to do from here?
Thank you
--
View this message in context: http://www.nabble.com/Accessing-a-JMS-Resource-on-A-Remote-Server-tp14559721p14559721.html
Sent from the java.net - glassfish dev mailing list archive at Nabble.com.