Package toolbox.oracle.siebel.session.services

Provides a high level service style API to simplify the use of stateless Oracle Siebel authentication tokens.

See:
          Description

Interface Summary
SiebelSessionTokenService Interface that defines a service to obtain session tokens from Oracle Siebel.
 

Class Summary
SiebelSessionTokenServiceEnvironment ServiceEnvironment implementation to provide access to a toolbox.oracle.siebel.session.SessionTokenManager instance.
SiebelSessionTokenServiceImpl Default implementation of the SiebelSessionTokenService interface.
 

Package toolbox.oracle.siebel.session.services Description

Provides a high level service style API to simplify the use of stateless Oracle Siebel authentication tokens.

The API can be invoked directly from Java based applications or can be exposed as a SOAP web service.

The following code fragment illustrates the Java based use of the API:

      ServiceRegistry reg =
                ServiceRegistryFactory.getRegistry("toolbox_ora_sbl_session");
       SiebelSessionTokenService service =
          (SiebelSessionTokenService)reg.getService(
                                               "sessionTokenService",
                                               SiebelSessionTokenService.class);
       TokenMessage requestMsg = new TokenMessage();
       requestMsg.setSessionPoolName("mypool");

       TokenMessage responseMsg = service.getSessionToken(requestMsg);
       Token leasedToken = responseMsg.getLeasedToken(); 

       //use the leased token
       ...
     
       //if siebel refreshes the token value create a new token.
       String newTokenValue = "...";
       Token reissuedToken = new Token();
       reissuedToken.setValue(newTokenValue);

       responseMsg.setReissuedToken(reissuedToken);

       service.releaseSessionToken(responseMsg);