[prev in list] [next in list] [prev in thread] [next in thread] 

List:       openjms-user
Subject:    RE: [openjms-user] httptunneling/callback
From:       "Tim Anderson" <tma () netspace ! net ! au>
Date:       2005-04-30 13:36:35
Message-ID: 000801c54d89$a1ed29e0$337ffddc () xerces
[Download RAW message or body]

You also need to specify the tunnel in the JNDI provider URL:
 
String url = "https://safhome:8443/openjms-tunnel/tunnel";

props.put(Context.PROVIDER_URL, url);

 

-----Original Message-----
From: openjms-user-admin@lists.sourceforge.net
[mailto:openjms-user-admin@lists.sourceforge.net] On Behalf Of Tim Anderson
Sent: Saturday, 30 April 2005 11:25 PM
To: openjms-user@lists.sourceforge.net
Subject: RE: [openjms-user] httptunneling/callback


How have you deployed the tunnel?
 

Given your configuration, the WAR needs to be copied to: 
  <TOMCAT_HOME>/webapps/openjms-tunnel.war
 
 
 -----Original Message-----
From: openjms-user-admin@lists.sourceforge.net
[mailto:openjms-user-admin@lists.sourceforge.net] On Behalf Of Laszlo
Schaffer personal
Sent: Friday, 29 April 2005 5:43 PM
To: openjms-user@lists.sourceforge.net
Subject: RE: [openjms-user] httptunneling/callback



Hello!

 

I have tried the https/tunneling feature.

The Tomcat5 and JMS Server have been configured as you have suggested. 

They are working fine (with jms admin I can connect to the server)

But from my test app I could not connect to the server

Here is the code 

 

props.put(Context.INITIAL_CONTEXT_FACTORY,
"org.exolab.jms.jndi.InitialContextFactory");

//URL=https://safhome:8443

props.put(Context.PROVIDER_URL, url);

 

context = new InitialContext(props); // drop exception

 

factory = (QueueConnectionFactory) context.lookup("QueueConnectionFactory");

 

connection = factory.createQueueConnection();

connection.start();

…

 

EXCEPTION

2005-04-29 09:24:56,921 ERROR TestViewController - connect:



javax.naming.CommunicationException: Failed to get registry service for URL:
https://safhome:8443 [Root exception is java.rmi.ConnectIOException: Failed
to create connection; nested exception is: 

            org.exolab.jms.net.connector.ConnectException: Failed to connect
to URI=https://safhome:8443/]

            at
org.exolab.jms.jndi.InitialContextFactory.getInitialContext(InitialContextFa
ctory.java:109)

            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)



 

And here is my jmsconfig

 

<HttpsConfiguration webServerHost="safhome"

            webServerPort="8443"

            port="3030"

            servlet="/openjms-tunnel/tunnel"  />

 

 

   <Connectors>

      <Connector scheme="https">

         <ConnectionFactories>

             <TopicConnectionFactory name="TopicConnectionFactory" />

             <QueueConnectionFactory name="QueueConnectionFactory" />

        </ConnectionFactories>

     </Connector>

   </Connectors>

 

Any suggestion?

 

Thanks

Laszlo Schaffer

 

-----Original Message-----
From: openjms-user-admin@lists.sourceforge.net
[mailto:openjms-user-admin@lists.sourceforge.net] On Behalf Of Daniel Otero
Sent: 2005. április 8. 0:04
To: openjms-user@lists.sourceforge.net
Subject: Re: [openjms-user] httptunneling/callback

 

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


[Attachment #3 (text/html)]

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<TITLE>Message</TITLE>

<META content="MSHTML 6.00.2800.1491" name=GENERATOR>
<STYLE>@font-face {
	font-family: Tahoma;
}
@page Section1 {size: 8.5in 11.0in; margin: 1.0in 1.25in 1.0in 1.25in; }
P.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
LI.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
DIV.MsoNormal {
	FONT-SIZE: 12pt; MARGIN: 0in 0in 0pt; FONT-FAMILY: "Times New Roman"
}
A:link {
	COLOR: blue; TEXT-DECORATION: underline
}
SPAN.MsoHyperlink {
	COLOR: blue; TEXT-DECORATION: underline
}
A:visited {
	COLOR: purple; TEXT-DECORATION: underline
}
SPAN.MsoHyperlinkFollowed {
	COLOR: purple; TEXT-DECORATION: underline
}
SPAN.EmailStyle17 {
	COLOR: navy; FONT-FAMILY: Arial
}
DIV.Section1 {
	page: Section1
}
</STYLE>
</HEAD>
<BODY lang=EN-US vLink=purple link=blue>
<DIV><SPAN class=269483413-30042005><FONT face=Arial color=#0000ff size=2>You 
also need to specify the tunnel in the JNDI provider URL:</FONT></SPAN></DIV>
<DIV><SPAN class=269483413-30042005><FONT face=Arial color=#0000ff size=2><FONT 
face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial"></SPAN></FONT></FONT></SPAN>&nbsp;</DIV> <DIV><SPAN \
class=269483413-30042005><FONT face=Arial color=#0000ff size=2><FONT  face=Arial \
color=navy size=2><SPAN  style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial">String url =  \
"https://safhome:8443/openjms-tunnel/tunnel";</SPAN></FONT></DIV> <DIV>
<P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial">props.put(Context.PROVIDER_URL,  url);</SPAN></FONT></P></FONT></SPAN></DIV>
<DIV><SPAN class=269483413-30042005><FONT face=Arial color=#0000ff 
size=2></FONT></SPAN>&nbsp;</DIV>
<BLOCKQUOTE dir=ltr 
style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; \
MARGIN-RIGHT: 0px">  <DIV></DIV>
  <DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT 
  face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> 
  openjms-user-admin@lists.sourceforge.net 
  [mailto:openjms-user-admin@lists.sourceforge.net] <B>On Behalf Of </B>Tim 
  Anderson<BR><B>Sent:</B> Saturday, 30 April 2005 11:25 PM<BR><B>To:</B> 
  openjms-user@lists.sourceforge.net<BR><B>Subject:</B> RE: [openjms-user] 
  httptunneling/callback<BR><BR></FONT></DIV>
  <DIV><SPAN class=649372213-30042005><FONT face=Arial color=#0000ff size=2>How 
  have you deployed the tunnel?</FONT></SPAN></DIV>
  <DIV><SPAN class=649372213-30042005><FONT face=Arial color=#0000ff 
  size=2></FONT></SPAN>&nbsp;</DIV><SPAN class=649372213-30042005></SPAN><SPAN 
  class=649372213-30042005><FONT face=Arial color=#0000ff size=2></FONT></SPAN>
  <DIV></DIV>
  <DIV><FONT face=Tahoma><FONT size=2><SPAN class=649372213-30042005><FONT 
  face=Arial color=#0000ff>Given your configuration, the&nbsp;WAR needs to be 
  copied to:&nbsp;</FONT></SPAN></FONT></FONT></DIV>
  <DIV><FONT face=Tahoma><FONT size=2><SPAN class=649372213-30042005><FONT 
  face=Arial color=#0000ff>&nbsp; 
  &lt;TOMCAT_HOME&gt;/webapps/openjms-tunnel.war</FONT></SPAN></FONT></FONT></DIV>
  <DIV><FONT face=Tahoma><FONT face=Arial color=#0000ff size=2><SPAN 
  class=649372213-30042005></SPAN></FONT></FONT>&nbsp;</DIV>
  <DIV><FONT face=Tahoma><FONT face=Arial color=#0000ff size=2><SPAN 
  class=649372213-30042005></SPAN></FONT></FONT><FONT face=Tahoma><FONT 
  face=Arial color=#0000ff size=2><SPAN 
  class=649372213-30042005></SPAN></FONT></FONT>&nbsp;</DIV>
  <DIV><FONT face=Tahoma><FONT size=2><SPAN 
  class=649372213-30042005>&nbsp;</SPAN>-----Original 
  Message-----<BR><B>From:</B> openjms-user-admin@lists.sourceforge.net 
  [mailto:openjms-user-admin@lists.sourceforge.net] <B>On Behalf Of </B>Laszlo 
  Schaffer personal<BR><B>Sent:</B> Friday, 29 April 2005 5:43 PM<BR><B>To:</B> 
  openjms-user@lists.sourceforge.net<BR><B>Subject:</B> RE: [openjms-user] 
  httptunneling/callback<BR><BR></DIV></FONT></FONT>
  <BLOCKQUOTE dir=ltr 
  style="PADDING-LEFT: 5px; MARGIN-LEFT: 5px; BORDER-LEFT: #0000ff 2px solid; \
MARGIN-RIGHT: 0px">  <DIV class=Section1>
    <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
    style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Hello!</SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
    style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
    <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
    style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">I have tried the 
    https/tunneling feature.</SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
    style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">The Tomcat5 and JMS 
    Server have been configured as you have suggested. </SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
    style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">They are working 
    fine (with jms admin I can connect to the server)</SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
    style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">But from my test 
    app I could not connect to the server</SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
    style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Here is the code 
    </SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
    style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
    <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
    style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial">props.put(Context.INITIAL_CONTEXT_FACTORY,   \
"org.exolab.jms.jndi.InitialContextFactory");</SPAN></FONT></P>  <P \
class=MsoNormal><FONT face=Arial color=navy size=2><SPAN   style="FONT-SIZE: 10pt; \
COLOR: navy; FONT-FAMILY: Arial">//URL=https://safhome:8443</SPAN></FONT></P>  <P \
class=MsoNormal><FONT face=Arial color=navy size=2><SPAN   style="FONT-SIZE: 10pt; \
COLOR: navy; FONT-FAMILY: Arial">props.put(Context.PROVIDER_URL,   \
url);</SPAN></FONT></P>  <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
    style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
    <P class=MsoNormal><FONT face=Arial color=#993300 size=2><SPAN 
    style="FONT-SIZE: 10pt; COLOR: #993300; FONT-FAMILY: Arial">context = new 
    InitialContext(props); // drop exception</SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial color=#993300 size=2><SPAN 
    style="FONT-SIZE: 10pt; COLOR: #993300; FONT-FAMILY: \
Arial"></SPAN></FONT>&nbsp;</P>  <P class=MsoNormal><FONT face=Arial color=navy \
size=2><SPAN   style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">factory = 
    (QueueConnectionFactory) 
    context.lookup("QueueConnectionFactory");</SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
    style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
    <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
    style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">connection = 
    factory.createQueueConnection();</SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
    style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial">connection.start();</SPAN></FONT></P>  <P class=MsoNormal><FONT face=Arial \
color=navy size=2><SPAN   style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial">&#8230;</SPAN></FONT></P>  <P class=MsoNormal><FONT face=Arial color=navy \
size=2><SPAN   style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial"></SPAN></FONT>&nbsp;</P>  <P class=MsoNormal><FONT face=Arial color=navy \
size=2><SPAN   style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial">EXCEPTION</SPAN></FONT></P>  <P class=MsoNormal><FONT face=Arial color=#993300 \
size=2><SPAN   style="FONT-SIZE: 10pt; COLOR: #993300; FONT-FAMILY: Arial">2005-04-29 \
  09:24:56,921 ERROR TestViewController - connect:</SPAN></FONT></P>
    <P class=MsoNormal></P>
    <P class=MsoNormal><FONT face=Arial color=#993300 size=2><SPAN 
    style="FONT-SIZE: 10pt; COLOR: #993300; FONT-FAMILY: \
Arial">javax.naming.CommunicationException:   Failed to get registry service for URL: \
https://safhome:8443 [Root exception   is java.rmi.ConnectIOException: Failed to \
create connection; nested   exception is: </SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial color=#993300 size=2><SPAN 
    style="FONT-SIZE: 10pt; COLOR: #993300; FONT-FAMILY: \
Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   \
org.exolab.jms.net.connector.ConnectException: Failed to connect to   \
URI=https://safhome:8443/]</SPAN></FONT></P>  <P class=MsoNormal><FONT face=Arial \
color=#993300 size=2><SPAN   style="FONT-SIZE: 10pt; COLOR: #993300; FONT-FAMILY: \
Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   at 
    org.exolab.jms.jndi.InitialContextFactory.getInitialContext(InitialContextFactory.java:109)</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=#993300 size=2><SPAN 
    style="FONT-SIZE: 10pt; COLOR: #993300; FONT-FAMILY: \
Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   at 
    javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:667)</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=#993300 size=2><SPAN 
    style="FONT-SIZE: 10pt; COLOR: #993300; FONT-FAMILY: \
Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   at 
    javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:247)</SPAN></FONT></P>
  <P class=MsoNormal><FONT face=Arial color=#993300 size=2><SPAN 
    style="FONT-SIZE: 10pt; COLOR: #993300; FONT-FAMILY: \
Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   at 
    javax.naming.InitialContext.init(InitialContext.java:223</SPAN></FONT><FONT 
    face=Arial color=navy size=2><SPAN 
    style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">)</SPAN></FONT></P>
    <P class=MsoNormal></P>
    <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
    style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
    <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
    style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">And here is my 
    jmsconfig</SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
    style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
    <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
    style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&lt;HttpsConfiguration 
    webServerHost="safhome"</SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
    style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   \
webServerPort="8443"</SPAN></FONT></P>  <P class=MsoNormal><FONT face=Arial \
color=navy size=2><SPAN   style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   \
port="3030"</SPAN></FONT></P>  <P class=MsoNormal><FONT face=Arial color=navy \
size=2><SPAN   style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   \
servlet="/openjms-tunnel/tunnel"&nbsp; /&gt;</SPAN></FONT></P>  <P \
class=MsoNormal><FONT face=Arial color=navy size=2><SPAN   style="FONT-SIZE: 10pt; \
COLOR: navy; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>  <P class=MsoNormal><FONT \
face=Arial color=navy size=2><SPAN   style="FONT-SIZE: 10pt; COLOR: navy; \
FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>  <P class=MsoNormal><FONT face=Arial \
color=navy size=2><SPAN   style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial">&nbsp;&nbsp;   &lt;Connectors&gt;</SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
    style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   &lt;Connector \
scheme="https"&gt;</SPAN></FONT></P>  <P class=MsoNormal><FONT face=Arial color=navy \
size=2><SPAN   style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   \
&lt;ConnectionFactories&gt;</SPAN></FONT></P>  <P class=MsoNormal><FONT face=Arial \
color=navy size=2><SPAN   style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   \
&lt;TopicConnectionFactory name="TopicConnectionFactory"   /&gt;</SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
    style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   \
&lt;QueueConnectionFactory name="QueueConnectionFactory"   /&gt;</SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
    style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;   \
&lt;/ConnectionFactories&gt;</SPAN></FONT></P>  <P class=MsoNormal><FONT face=Arial \
color=navy size=2><SPAN   style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: \
Arial">&nbsp;&nbsp;&nbsp;&nbsp;   &lt;/Connector&gt;</SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
    style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">&nbsp;&nbsp; 
    &lt;/Connectors&gt;</SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
    style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
    <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
    style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Any 
    suggestion?</SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
    style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
    <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
    style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Thanks</SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
    style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial">Laszlo 
    Schaffer</SPAN></FONT></P>
    <P class=MsoNormal><FONT face=Arial color=navy size=2><SPAN 
    style="FONT-SIZE: 10pt; COLOR: navy; FONT-FAMILY: Arial"></SPAN></FONT>&nbsp;</P>
    <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face=Tahoma size=2><SPAN 
    style="FONT-SIZE: 10pt; FONT-FAMILY: Tahoma">-----Original 
    Message-----<BR><B><SPAN style="FONT-WEIGHT: bold">From:</SPAN></B> 
    openjms-user-admin@lists.sourceforge.net 
    [mailto:openjms-user-admin@lists.sourceforge.net] <B><SPAN 
    style="FONT-WEIGHT: bold">On Behalf Of </SPAN></B>Daniel Otero<BR><B><SPAN 
    style="FONT-WEIGHT: bold">Sent:</SPAN></B> 2005. április 8. 0:04<BR><B><SPAN 
    style="FONT-WEIGHT: bold">To:</SPAN></B> 
    openjms-user@lists.sourceforge.net<BR><B><SPAN 
    style="FONT-WEIGHT: bold">Subject:</SPAN></B> Re: [openjms-user] 
    httptunneling/callback</SPAN></FONT></P>
    <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman" 
    size=3><SPAN style="FONT-SIZE: 12pt"></SPAN></FONT>&nbsp;</P>
    <P class=MsoNormal 
    style="MARGIN-BOTTOM: 12pt; MARGIN-LEFT: 0.5in; MARGIN-RIGHT: 0in"><FONT 
    face="Times New Roman" size=3><SPAN style="FONT-SIZE: 12pt">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):<BR><BR>On the server 
    side:<BR><BR>1) place the .war in the webapps/ directory.<BR><BR>2) define 
    the https connector and it's configuration like this (in the 
    openjms.xml):<BR><BR>&lt;Connectors&gt;<BR>&lt;Connector 
    scheme="https"&gt;<BR>&lt;ConnectionFactories&gt;<BR>&lt;TopicConnectionFactory 
    name="TopicConnectionFactory" /&gt;<BR>&lt;QueueConnectionFactory 
    name="QueueConnectionFactory" 
    /&gt;<BR>&lt;/ConnectionFactories&gt;<BR>&lt;/Connector&gt;<BR>&lt;/Connectors&gt;<BR><BR>&lt;HttpsConfiguration \
  webServerHost="your.webserver.com"<BR>webServerPort="9999"<BR>port="3030"<BR>servlet="/openjms-tunnel/tunnel"<BR>/&gt;<BR><BR>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:<BR><BR>&lt;ConnectionFactory name="ConnectionFactory" 
    /&gt;<BR><BR>On the cliet side...<BR><BR>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" 
    )<BR><BR>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...<BR><BR>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):<BR><BR>org.exolab.jms.net.https.proxyHost=local.proxy.com<BR>org.exolab.jms.net.https.proxyPort=3128<BR><BR>if \
  user authentication is required you can also use the 
    following:<BR><BR>org.exolab.jms.net.https.proxyUser=user<BR>org.exolab.jms.net.https.proxyPassword=password<BR><BR>On \
  Apr 7, 2005, at 11:07 AM, Laszlo Schaffer personal wrote:</SPAN></FONT></P>
    <P class=MsoNormal style="MARGIN-LEFT: 0.5in"><FONT face="Times New Roman" 
    size=3><SPAN style="FONT-SIZE: 12pt"><?fontfamily><?param \
Arial><?x-tad-bigger>Hello!<BR><?/x-tad-bigger><?/fontfamily><BR><?fontfamily><?param \
Arial><?x-tad-bigger>&nbsp;<BR><?/x-tad-bigger><?/fontfamily><BR><?fontfamily><?param \
Arial><?x-tad-bigger>It   is possible to use MessageListener&#8230;onMessage() behind \
a client firewall?<BR><?/x-tad-bigger><?/fontfamily><BR><?fontfamily><?param \
Arial><?x-tad-bigger>I   have read something about this TunnelServlet but I do not \
know how can I use   this?<BR><?/x-tad-bigger><?/fontfamily><BR><?fontfamily><?param \
Arial><?x-tad-bigger>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<BR><?/x-tad-bigger><?/fontfamily><BR><?fontfamily><?param \
Arial><?x-tad-bigger>Recently   have download and compiled the 0.7.7-dev version but \
how can I use this   Tunneling \
feature?<BR><?/x-tad-bigger><?/fontfamily><BR><?fontfamily><?param \
Arial><?x-tad-bigger>&nbsp;<BR><?/x-tad-bigger><?/fontfamily><BR><?fontfamily><?param \
Arial><?x-tad-bigger>Thanks<BR><?/x-tad-bigger><?/fontfamily><BR><?fontfamily><?param \
Arial><?x-tad-bigger>saf</SPAN></FONT></P><?/x-tad-bigger><?/fontfamily></DIV></BLOCKQUOTE></BLOCKQUOTE></BODY></HTML>



-------------------------------------------------------
This SF.Net email is sponsored by: NEC IT Guy Games.
Get your fingers limbered up and give it your best shot. 4 great events, 4
opportunities to win big! Highest score wins.NEC IT Guy Games. Play to
win an NEC 61 plasma display. Visit http://www.necitguy.com/?r=20
_______________________________________________
openjms-user mailing list
openjms-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/openjms-user

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic