Logs out from a single-sign-on session of a named EJB provider.
ejb-logout <provider-instance-name>
Option |
Description |
Required |
---|---|---|
provider-instance-name |
The instance name of the component com.sybase.ejb.client.EjbProvider which contains the client side EJB configuration. The default value is “default”. |
Yes |
Prerequisites Before you can use the ejb-login or ejb-logout scripts, you must define an instance of the com.sybase.ejb.client.EjbProvider component for each EjbProvider you want to use. The following default configuration script located in ${djc.home}/config/default-ejb-providers.xml shows you how to do this. For example:
configure default-ejb-providers
The output looks similar to:
Buildfile: M:\target1.4\bin\..\config\default-ejb-providers.xml configure: BUILD SUCCESSFUL Total time: 1 second
and creates the following repository component instance definition:
cat Repository\Instance\com\sybase\ejb\client\EjbProvider\default.properties
#Instance Properties java.naming.factory.initial=com.sybase.ejb.client.InitialContextFactory java.naming.provider.url=iiop\://USER-PC\:2000 java.naming.security.principal=user ant.project=default-ejb-providers java.naming.security.credentials=*
This example logs you out of a session of the default EJB:
ejb-logout default
And indicates if the logout was successful:
Logged out.