com.irisel.oms.ws.server
Class HolmesImpl

java.lang.Object
  extended by com.irisel.oms.ws.server.HolmesImpl
All Implemented Interfaces:
Holmes

@MTOM
public class HolmesImpl
extends java.lang.Object
implements Holmes


Constructor Summary
HolmesImpl()
           
 
Method Summary
 java.lang.String echo(java.lang.String s)
          Business method
 void ejbActivate()
           
 void ejbCreate()
          Default create method
 void ejbPassivate()
           
 void ejbRemove()
           
 java.lang.String exec(java.lang.String method, java.lang.String[] args, java.lang.String[] types)
           
 byte[] exec2(java.lang.String method, byte[] context)
          New implementation of the exec adapted for JAX-WS web service stack The main difference is that it is no longer needed to encode into base64 text Byte arrays are encoded using Message Transmission Optimization Mechanism (MTOM) and XML-Binary Optimized Packaging (XOP).
 int save(java.lang.String filename, byte[] content)
          Business method
 void setSessionContext(javax.ejb.SessionContext ctx)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HolmesImpl

public HolmesImpl()
           throws java.lang.Exception
Throws:
java.lang.Exception
Method Detail

setSessionContext

public void setSessionContext(javax.ejb.SessionContext ctx)
                       throws javax.ejb.EJBException,
                              java.rmi.RemoteException
Throws:
javax.ejb.EJBException
java.rmi.RemoteException

ejbRemove

public void ejbRemove()
               throws javax.ejb.EJBException,
                      java.rmi.RemoteException
Throws:
javax.ejb.EJBException
java.rmi.RemoteException

ejbActivate

public void ejbActivate()
                 throws javax.ejb.EJBException,
                        java.rmi.RemoteException
Throws:
javax.ejb.EJBException
java.rmi.RemoteException

ejbPassivate

public void ejbPassivate()
                  throws javax.ejb.EJBException,
                         java.rmi.RemoteException
Throws:
javax.ejb.EJBException
java.rmi.RemoteException

ejbCreate

public void ejbCreate()
               throws javax.ejb.CreateException,
                      java.rmi.RemoteException
Default create method

Throws:
javax.ejb.CreateException
java.rmi.RemoteException

exec

public java.lang.String exec(java.lang.String method,
                             java.lang.String[] args,
                             java.lang.String[] types)
Specified by:
exec in interface Holmes

exec2

public byte[] exec2(java.lang.String method,
                    byte[] context)
New implementation of the exec adapted for JAX-WS web service stack The main difference is that it is no longer needed to encode into base64 text Byte arrays are encoded using Message Transmission Optimization Mechanism (MTOM) and XML-Binary Optimized Packaging (XOP). Convention used for the context byte array: - if method is "execSvc": the context is passed "as is" to the service - service name is an entry with key "SVCNAME" - class name is an entry with key "CLSNAME" - otherwise - method arguments are stored in the context with keys "0","1","2",...

Specified by:
exec2 in interface Holmes
Parameters:
method - is a method of CLBrowser or "execSvc"
context - is a SvcContext serialization
Returns:
serialized object returned by the CLBrowser method or SvcContext if Svc invoked.

echo

public java.lang.String echo(java.lang.String s)
Business method

Specified by:
echo in interface Holmes

save

public int save(java.lang.String filename,
                byte[] content)
Business method

Specified by:
save in interface Holmes