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