The INITIAL_CONTEXT statement specifies the initial context factory to use when creating the initial context in a Entity Bean, Session Bean, and JMS job.
Supported Job Types
This statement is required for the following job types:
Syntax
This statement has the following format:
INITIAL_CONTEXT factory
Specifies the initial context factory to use when creating the initial context. The initial context is required within the Java Naming and Directory Interface (JNDI) framework. The initial context factory is supplied by a specific provider of the naming and directory service. The factory acquires an arbitrary initial context that the application can use to connect to the application server.
Limits: Up to 1024 characters; case-sensitive
Example: weblogic.jndi.WLInitialContextFactory
Notes:
Example: Specify Initial Context Factory for a WebSphere Application Server
Suppose that you want to invoke the reverse method on the CybEJBTestBean stateless session bean. The reverse method has one parameter, with type java.lang.String and value a23. The output from the reverse method is saved to the C:\Makapt15 file. The initial context factory supplied by the JNDI service provider is com.ibm.websphere.naming.WsnInitialContextFactory. The service provider's URL is iiop://172.24.0.0:2809, where 172.24.0.0 is the IP address of the WebSphere application server and 2809 is the ORB port. When the job runs, the output of the reverse method is stored in the output destination file.
AGENT APPAGENT INITIAL_CONTEXT com.ibm.websphere.naming.WsnInitialContextFactory LOCATION iiop://172.24.0.0:2809 BEAN CybEJBTestBean METHOD reverse DESTINATION C:\Makapt15 JNDIUSER cyberuser PARAMETER TYPE(java.lang.String) VALUE(a23)
|
Copyright © 2013 CA Technologies.
All rights reserved.
|
|