The BEAN statement specifies the JNDI name of the bean in an Entity Bean and Session Bean job.
Supported Job Types
This statement is required for the following job types:
Syntax
This statement has the following format:
BEAN bean
Specifies the JNDI name of the session or entity bean.
Limits: Up to 1024 characters; case-sensitive
Notes:
Example: Invoke a Method on a Stateless Session Bean
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.
|
|