Joram 4.3.27

org.objectweb.joram.client.jms.soap
Class SoapConnection

java.lang.Object
  extended by org.objectweb.joram.client.jms.soap.SoapConnection
All Implemented Interfaces:
RequestChannel

public class SoapConnection
extends java.lang.Object
implements RequestChannel

A SoapConnection links a Joram client and a Joram platform with HTTP connections.

Requests and replies travel through the connections in SOAP (XML) format.


Constructor Summary
SoapConnection(FactoryParameters factParams2, java.lang.String name2, java.lang.String password2)
          Creates a SoapConnection instance.
 
Method Summary
 void close()
          Closes the SoapConnection.
 void connect()
           
 AbstractJmsReply receive()
           
 void send(AbstractJmsRequest request)
          Sending a JMS request through the SOAP protocol.
 void setTimer(java.util.Timer timer)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoapConnection

public SoapConnection(FactoryParameters factParams2,
                      java.lang.String name2,
                      java.lang.String password2)
               throws javax.jms.JMSException
Creates a SoapConnection instance.

Parameters:
params - Factory parameters.
name - Name of user.
password - Password of user.
Throws:
javax.jms.JMSSecurityException - If the user identification is incorrrect.
javax.jms.IllegalStateException - If the server is not reachable.
javax.jms.JMSException
Method Detail

setTimer

public void setTimer(java.util.Timer timer)
Specified by:
setTimer in interface RequestChannel

connect

public void connect()
             throws java.lang.Exception
Specified by:
connect in interface RequestChannel
Throws:
java.lang.Exception

send

public void send(AbstractJmsRequest request)
          throws java.lang.Exception
Sending a JMS request through the SOAP protocol.

Specified by:
send in interface RequestChannel
Throws:
javax.jms.IllegalStateException - If the SOAP service fails.
java.lang.Exception

close

public void close()
Closes the SoapConnection.

Specified by:
close in interface RequestChannel

receive

public AbstractJmsReply receive()
                         throws java.lang.Exception
Specified by:
receive in interface RequestChannel
Throws:
java.lang.Exception

Joram 4.3.27

Copyright © 2005 Scalagent - All rights reserved