Re: httptunneling/callback

Daniel Otero <[email protected]>
Newsgroups gmane.comp.java.openjms.user
Message-ID <[email protected]>
Hi saf, what you need to do (if you are using the 0.7.7-dev version) is 
(if you can wait a few days things will be simplified a bit):

On the server side:

1) place the .war in the webapps/ directory.

  2) define the https connector and it's configuration like this (in the 
openjms.xml):

   <Connectors>
     <Connector scheme="https">
       <ConnectionFactories>
         <TopicConnectionFactory name="TopicConnectionFactory" />
         <QueueConnectionFactory name="QueueConnectionFactory" />
       </ConnectionFactories>
     </Connector>
   </Connectors>

   <HttpsConfiguration webServerHost="your.webserver.com"
                      webServerPort="9999"
                      port="3030"
                      servlet="/openjms-tunnel/tunnel"
   />

Note: in the next few days the TopicConnectionFactory and 
QueueConnectionFactory will be replaced by a single entry like so - and 
the examples should be modified accordingly:

         <ConnectionFactory name="ConnectionFactory" />

On the cliet side...

1) You need to set up your keystore and run your java client with the 
usual parameters (-Djavax.net.ssl.trustStore="$TSTORE" 
-Djavax.net.ssl.keyStore="$KSTORE" -Djavax.net.ssl.keyStoreType="jks" 
-Djavax.net.ssl.keyStorePassword="$KPASS" )

I believe the plan is to make these part of the jndi.properties file  
(i.e. look in examples/basic and see 2) below). But that  won't happen 
for a few days...

2) The good news is that if you need to use a proxy-server to get 
through the corporate firewall the properties to do this can already be 
specified in the jndi.properties file like so (much like the ssl ones 
will probably end up):

org.exolab.jms.net.https.proxyHost=local.proxy.com
org.exolab.jms.net.https.proxyPort=3128

if user authentication is required you can also use the following:

org.exolab.jms.net.https.proxyUser=user
org.exolab.jms.net.https.proxyPassword=password

On Apr 7, 2005, at 11:07 AM, Laszlo Schaffer personal wrote:

> Hello!
>
>  
>
> It is possible to use MessageListener…onMessage() behind a client 
> firewall?
>
>  I have read something about this TunnelServlet but I do not know how 
> can I use this?
>
>  What I need a configuration where a client there is behind a firewall 
> (the jms server server also) and the connection is being made using 
> https
>
>  Recently have download and compiled the 0.7.7-dev version but how can 
> I use this Tunneling feature?
>
>  
>
> Thanks
>
> saf
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.