Provides single-sign-on access to a named EJB provider.
ejb-login <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 in to a session of the default EJB:
ejb-login default
Which prompts you for a user name and password:
Username (testuser): admin@system Password:XXXXX
And indicates if the login was successful:
Logged in.