The CREATEMETHOD statement specifies the name of the create method in an Entity Bean and Session Bean job.
Supported Job Types
This statement is optional for the following job types:
Note: The create method is required to access a stateful session bean.
Syntax
This statement has the following format:
CREATEMETHOD create_method
Specifies the name of the create method.
Default: create
Limits: Up to 1024 characters; case-sensitive; it must always begin with create
Example: createaccount
Note: Enclose values that contain delimiters (such as spaces) in double quotation marks.
Example: Create an Entity Bean
Suppose that you want to create an entity bean that stores information about a customer such as the customer ID and phone number. The initial context factory supplied by the JNDI service provider is weblogic.jndi.WLInitialContextFactory. The service provider's URL is t3://localhost:7001, where localhost is the domain name of the WebLogic application server and 7001 is the ORB port. When the job runs, the entity bean instance is created.
AGENT APPAGENT INITIAL_CONTEXT weblogic.jndi.WLInitialContextFactory LOCATION t3://localhost:7001 BEAN customer CREATEMETHOD createcustomer OPERATIONTYPE CREATE CREATEPARAMETER TYPE(String) VALUE(customerid) CREATEPARAMETER TYPE(String) VALUE(800-555-0100)
|
Copyright © 2013 CA Technologies.
All rights reserved.
|
|