org.apache.wsif.util.jms
Class JMS2HTTPBridge

java.lang.Object
  extended by org.apache.wsif.util.jms.JMS2HTTPBridge

public class JMS2HTTPBridge
extends java.lang.Object

This class implements a JMS to HTTP bridge. That is it takes SOAP messages off of a JMS queue and posts them using HTTP. The SOAP message in the HTTP response is put on a JMS reply queue. This class contains a main method which takes as parameters all the JMS and HTTP information needed. This bridge can be cold or warm started. Cold starting wipes messages off queues on startup, whereas warm starting does not.

Author:
Mark Whitlock

Constructor Summary
JMS2HTTPBridge(java.lang.String initialContextFactory, java.lang.String jndiUrl, java.lang.String queueConnectionFactory, java.lang.String readQueue, java.lang.String httpURL, java.lang.String startType, int syncTimeout, boolean verbose)
           
 
Method Summary
 void handleCookie(java.lang.String cookieName, java.lang.String setCookieName, java.util.Hashtable headers)
          little helper function for cookies
 void listen()
           
static void main(java.lang.String[] args)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

JMS2HTTPBridge

public JMS2HTTPBridge(java.lang.String initialContextFactory,
                      java.lang.String jndiUrl,
                      java.lang.String queueConnectionFactory,
                      java.lang.String readQueue,
                      java.lang.String httpURL,
                      java.lang.String startType,
                      int syncTimeout,
                      boolean verbose)
               throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

main

public static void main(java.lang.String[] args)
                 throws java.lang.Exception
Throws:
java.lang.Exception

listen

public void listen()
            throws WSIFException
Throws:
WSIFException

handleCookie

public void handleCookie(java.lang.String cookieName,
                         java.lang.String setCookieName,
                         java.util.Hashtable headers)
little helper function for cookies

Parameters:
cookieName -
setCookieName -
headers -
msgContext -


Copyright ? 2002, 2006 Apache XML Project. All Rights Reserved.