Joram ${version}

org.objectweb.joram.mom.proxies.soap
Class SoapProxyService

java.lang.Object
  extended byorg.objectweb.joram.mom.proxies.soap.SoapProxyService

public class SoapProxyService
extends java.lang.Object

The SoapProxyService class implements the SOAP service accessed by the JORAM clients using a SoapConnection for connecting to the MOM.


Constructor Summary
SoapProxyService()
           
 
Method Summary
 java.util.Hashtable getReply(java.lang.String name, int cnxId)
          Service method: returns a Hashtable containing an AbstractJmsReply reply or MOM messages destinated to a given connection context.
 void send(java.lang.String name, int cnxId, java.util.Hashtable h)
          Service method: passes a hashtable containing an AbstractJmsRequest client request or MOM messages to the proxy.
 int setConnection(java.lang.String userName, java.lang.String userPassword, int heartBeat)
          Service method: returns the identifier of a given user connection, or -1 if it is not a valid user of the SOAP proxy.
 void start(int serverId, java.lang.String serverName)
          Service method: called by the SOAP client for instanciating the SOAP service and starting the embedded JORAM server.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SoapProxyService

public SoapProxyService()
Method Detail

start

public void start(int serverId,
                  java.lang.String serverName)
           throws java.lang.Exception
Service method: called by the SOAP client for instanciating the SOAP service and starting the embedded JORAM server.

Parameters:
serverId - Identifier of the embedded server.
serverName - Name of the embedded server.
Throws:
java.lang.Exception - If the embedded server could not start.

setConnection

public int setConnection(java.lang.String userName,
                         java.lang.String userPassword,
                         int heartBeat)
                  throws java.lang.Exception
Service method: returns the identifier of a given user connection, or -1 if it is not a valid user of the SOAP proxy.

Parameters:
userName - User's name.
userPassword - User's password.
heartBeat -
Returns:
connection identifier
Throws:
java.lang.Exception - If the proxy is not deployed.

send

public void send(java.lang.String name,
                 int cnxId,
                 java.util.Hashtable h)
          throws java.lang.Exception
Service method: passes a hashtable containing an AbstractJmsRequest client request or MOM messages to the proxy.

Parameters:
cnxId - The sending connection.
h - Hashtable containing a request or MOM messages.
Throws:
java.lang.Exception - If the connection has been closed.

getReply

public java.util.Hashtable getReply(java.lang.String name,
                                    int cnxId)
                             throws java.lang.Exception
Service method: returns a Hashtable containing an AbstractJmsReply reply or MOM messages destinated to a given connection context.

Parameters:
cnxId - The identifier of the requesting connection.
Throws:
java.lang.Exception - If the connection has been closed.

Joram ${version}

Copyright © 2005 Scalagent - All rights reserved