org.apache.axis.transport.jms

Class JMSEndpoint

public abstract class JMSEndpoint extends Object

JMSEndpoint encapsulates interactions w/ a JMS destination.

Author: Jaime Meritt (jmeritt@sonicsoftware.com) Richard Chung (rchung@sonicsoftware.com) Dave Chappell (chappell@sonicsoftware.com)

Constructor Summary
protected JMSEndpoint(JMSConnector connector)
Method Summary
byte[]call(byte[] message, long timeout)
Send a message and wait for a response.
byte[]call(byte[] message, long timeout, HashMap properties)
Send a message and wait for a response.
protected SubscriptioncreateSubscription(MessageListener listener, HashMap properties)
booleanequals(Object object)
inthashCode()
voidregisterListener(MessageListener listener)
Register a MessageListener.
voidregisterListener(MessageListener listener, HashMap properties)
Register a MessageListener.
voidsend(byte[] message)
Send a message w/o waiting for a response.
voidsend(byte[] message, HashMap properties)
Send a message w/o waiting for a response.
voidunregisterListener(MessageListener listener)
Unregister a message listener.
voidunregisterListener(MessageListener listener, HashMap properties)
Unregister a message listener.

Constructor Detail

JMSEndpoint

protected JMSEndpoint(JMSConnector connector)

Method Detail

call

public byte[] call(byte[] message, long timeout)
Send a message and wait for a response.

Parameters: message timeout

Returns:

Throws: JMSException

call

public byte[] call(byte[] message, long timeout, HashMap properties)
Send a message and wait for a response.

Parameters: message timeout properties

Returns:

Throws: JMSException

createSubscription

protected Subscription createSubscription(MessageListener listener, HashMap properties)

equals

public boolean equals(Object object)

hashCode

public int hashCode()

registerListener

public void registerListener(MessageListener listener)
Register a MessageListener.

Parameters: listener

Throws: JMSException

registerListener

public void registerListener(MessageListener listener, HashMap properties)
Register a MessageListener.

Parameters: listener properties

Throws: JMSException

send

public void send(byte[] message)
Send a message w/o waiting for a response.

Parameters: message

Throws: JMSException

send

public void send(byte[] message, HashMap properties)
Send a message w/o waiting for a response.

Parameters: message properties

Throws: JMSException

unregisterListener

public void unregisterListener(MessageListener listener)
Unregister a message listener.

Parameters: listener

unregisterListener

public void unregisterListener(MessageListener listener, HashMap properties)
Unregister a message listener.

Parameters: listener properties

Copyright B) 2005 Apache Web Services Project. All Rights Reserved.