Re: the listening port in client and cross firewall

"??" <dujuan-Lg/[email protected]> Fri, 2 Jun 2006 12:23:31 +0800
Newsgroups gmane.comp.java.openjms.user
Message-ID <[email protected]>
 hi Tim
   i took your device about removing other connector configuration.
   but i got fellow exception:(openjms , tomcat ,client in one computer)
    
     javax.naming.CommunicationException: Failed to get registry service for URL: http://127.0.0.1:8080 [Root exception is java.rmi.ConnectIOException: Failed to create connection; nested exception is: 
	org.exolab.jms.net.connector.ConnectException: Failed to connect to URI=http://127.0.0.1:8080/openjms-tunnel/tunnel]

	at org.exolab.jms.jndi.InitialContextFactory.getInitialContext(InitialContextFactory.java:145)

	at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)

	at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)

	at javax.naming.InitialContext.init(InitialContext.java:223)

	at javax.naming.InitialContext.<init>(InitialContext.java:197)
     
     
      the httpConfiguration in openjms.xml is "<HttpConfiguration host="127.0.0.1" 	webServerPort="8080" port="3030" servlet="/openjms-tunnel/tunnel" />"
    and i put openjms-tunnel.war in the webapp directory of tomcat. 
      i don't know how to resolve it.

   
    
	


>Send openjms-user mailing list submissions to
>	[email protected]
>
>To subscribe or unsubscribe via the World Wide Web, visit
>	https://lists.sourceforge.net/lists/listinfo/openjms-user
>or, via email, send a message with subject or body 'help' to
>	openjms-user-request-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>
>You can reach the person managing the list at
>	openjms-user-admin-5NWGOfrQmneRv+LV9MX5uipxlwaOVQ5f@public.gmane.org
>
>When replying, please edit your Subject line so it is more specific
>than "Re: Contents of openjms-user digest..."
>
>
>Today's Topics:
>
>   1. RE: Serialization error (Tim Anderson)
>   2. RE: the listening port in client and cross firewall (Tim Anderson)
>
>--__--__--
>
>Message: 1
>From: "Tim Anderson" <[email protected]>
>To: <[email protected]>
>Subject: RE: [openjms-user] Serialization error
>Date: Thu, 1 Jun 2006 22:15:34 +1000
>Reply-To: [email protected]
>
>Its most likely a classloader issue.
>Search back through the archives for related posts:
>http://search.gmane.org/search.php?group=gmane.comp.java.openjms.user&query=
>MessageFormatException 
>
>> From: Andrea Cerisara
>> 
>> Hi. I'm using ObjectMessage wrapping a custom value object.
>> The object implements Serializable interface and, in my 
>> development systems (OSX and Windows with Java 1.5), all works good.
>> I'm trying now to setup a test environment based on Linux and 
>> the latest Sun JVM, but OpenJMS throws an exception 
>> (MessageFormatException) when I get back the value object 
>> from the ObjectMessage (getObject()).
>> It's seems that the JVM don't find the class (the related 
>> exception of MessageFormatException is 
>> ClassNotFoundException) but the value object is serialized by 
>> another thread of the same application.
>> Any suggestion?
>> 
>> Thanks,
>> Andrea.
>
>
>--__--__--
>
>Message: 2
>From: "Tim Anderson" <[email protected]>
>To: <[email protected]>
>Subject: RE: [openjms-user] the listening port in client and cross firewall
>Date: Thu, 1 Jun 2006 22:28:11 +1000
>Reply-To: [email protected]
>
>Is the connection factory you are using configured for the http connector or
>rmi?
>It sounds like you've connected to the server using http but are attempting
>to use a connection factory configured for rmi.
>In 0.7.7, the http connector client never listens on a port.
>
>To avoid confusion remove unecessary factories from openjms.xml,
>leaving:
>  <Connectors>
>    <Connector scheme="http">
>      <ConnectionFactories>
>        <ConnectionFactory name="ConnectionFactory" />
>      </ConnectionFactories>
>    </Connector>
>  </Connectors>
>
>> 
>> hi all
>>   i have some trouble in cross the firewall using http tunnel 
>>  (i use openjms 0.7.7-alpha-1 and tomcat 5.0)
>>   when a firewall before the client ,the method onMessage() 
>> can't recevie any message.And i find the client have a 
>> listening port(TCP) which is random.i remeber the http 
>> connector is implemented using polling in openjms 
>> 0.7.7-alpha-1 ,so there should not have listening port in client.
>>   some one can give me  advices? thank you! 
>> 
>>         
>>         dujuan-Lg/[email protected]
>
>
>
>--__--__--
>
>_______________________________________________
>openjms-user mailing list
>[email protected]
>https://lists.sourceforge.net/lists/listinfo/openjms-user
>
>
>End of openjms-user Digest
>


        dujuan-Lg/[email protected]
          2006-06-02