org.apache.wsif.util.jms
Class JMS2HTTPBridgeDestination

java.lang.Object
  extended byorg.apache.wsif.util.jms.WSIFJMSDestination
      extended byorg.apache.wsif.util.jms.JMS2HTTPBridgeDestination

public class JMS2HTTPBridgeDestination
extends WSIFJMSDestination

Server destination for the JMS2HTTPBridge

Author:
Mark Whitlock

Field Summary
static java.lang.String COLDSTART
           
static java.lang.String WARMSTART
           
 
Constructor Summary
JMS2HTTPBridgeDestination(WSIFJMSFinder finder, java.lang.String altDestName, long timeout, java.lang.String startType, boolean verbose)
          Public constructor.
 
Method Summary
 void listen(WSIFJMSListener listener)
          Create a listener thread to listen for messages.
 void listen(WSIFJMSListener listener, javax.jms.Queue queue)
          Create a listener thread to listen for messages.
 void setReplyToQueue()
          Set the replyTo queue to a temporary queue.
 void setReplyToQueue(javax.jms.Queue replyTo)
          Set the replyTo queue.
 void setReplyToQueue(java.lang.String replyTo)
          Set the replyTo queue.
 
Methods inherited from class org.apache.wsif.util.jms.WSIFJMSDestination
close, createMessage, createMessage, deep, finalize, getJMSAddressFromURL, getProperties, getProperty, receive, receive, receive, receiveString, receiveString, send, send, send, send, send, setAsyncMode, setLastMessage, setProperties, setProperty
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

COLDSTART

public static final java.lang.String COLDSTART
See Also:
Constant Field Values

WARMSTART

public static final java.lang.String WARMSTART
See Also:
Constant Field Values
Constructor Detail

JMS2HTTPBridgeDestination

public JMS2HTTPBridgeDestination(WSIFJMSFinder finder,
                                 java.lang.String altDestName,
                                 long timeout,
                                 java.lang.String startType,
                                 boolean verbose)
                          throws WSIFException
Public constructor.

Parameters:
finder - used to find JMS objects.
timeout - is the maximum time to wait on a synchronous receive
startType - is WARMSTART or COLDSTART. Cold means wipe the read queue on startup.
Method Detail

listen

public void listen(WSIFJMSListener listener)
            throws WSIFException
Create a listener thread to listen for messages. This waits forever until it gets an InterruptedException. This listens on the read queue.

Parameters:
listener - is the JMS message and exception callback interface implementation
Throws:
WSIFException

listen

public void listen(WSIFJMSListener listener,
                   javax.jms.Queue queue)
            throws WSIFException
Create a listener thread to listen for messages. This waits forever until it gets an InterruptedException.

Parameters:
listener - is the JMS message and exception callback interface implementation
queue - to listen on
Throws:
WSIFException

setReplyToQueue

public void setReplyToQueue()
                     throws WSIFException
Description copied from class: WSIFJMSDestination
Set the replyTo queue to a temporary queue.

Overrides:
setReplyToQueue in class WSIFJMSDestination
Throws:
WSIFException

setReplyToQueue

public void setReplyToQueue(java.lang.String replyTo)
                     throws WSIFException
Description copied from class: WSIFJMSDestination
Set the replyTo queue.

Overrides:
setReplyToQueue in class WSIFJMSDestination
Parameters:
replyTo - queue name.
Throws:
WSIFException

setReplyToQueue

public void setReplyToQueue(javax.jms.Queue replyTo)
                     throws WSIFException
Set the replyTo queue. Special bridge version.

Parameters:
replyTo - queue.
Throws:
WSIFException


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