Joltremoteservice class, Joltremoteservice constructor, Joltremoteservice – HP NonStop G-Series User Manual
Page 108
JoltRemoteService Class
java.lang.Object
|
+----bea.jolt.JoltRequestMessage
|
+----bea.jolt.JoltRemoteService
The JoltRemoteService class is a subclass (child class) of the JoltRequestMessage class. It is derived from and inherits the
characteristics of its parent class, JoltRequestMessage. The JoltRemoteService object is reusable; therefore, the
programmer should invoke the JoltRequestMessage clear method to reset any previous data (such as flags, priority, and
parameters) before invoking the object again.
JoltRemoteService is used to perform the Request/Reply call. To make a call, the programmer:
Instantiates an object of this class for each service, using the add methods from JoltRequestMessage to add the
parameters.
1.
Invokes the call method to send the request.
2.
Uses the JoltRequestMessage get methods, upon successful completion of the call, to retrieve the reply result.
3.
The JoltRemoteService methods are described as part of the JoltRequestMessage class. Refer to the JoltRequest Message,
JoltSession, and JoltTransaction classes for additional information.
public class JoltRemoteService extends JoltRequestMessage
{
public JoltRemoteService( String name, JoltSession s ) throws
ServiceException;
// JoltRemoteService methods
public void call( Transaction t )
throws ServiceException,
TransactionException, ApplicationException
}
JoltRemoteService Constructor
The following JoltRemoteService constructor is used to create instances of the JoltRemoteService class.
JoltRemoteService
Defines a constructor for a remote service object.
JoltRemoteService( String name, JoltSession s ) throws
ServiceException;
Usage JoltRemoteService defines the constructor for a remote service object. The name parameter specifies the service
name. The s parameter specifies the session object from the JoltSession class. This constructor receives the most current
version from a repository that holds the service definitions. If the service does not exist, an exception is thrown.
Throws
ServiceException
TPENOENT - Service (service name) is not available.
TPEJOLT - Invalid session
TPEJOLT - bea.jolt.DefinitionException: Invalid (message)