|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--IncrementEJBPea
MQSeries Workflow EJB invocation sample
This sample shows you how to invoke an EJB using the PEA and the Java High Performance Bridge
This way to invoke EJBs allows you to retrieve the Workflow containers metamodel but does not support transactions
The High Performance Bridge caches the static variables of this class this is a major advantage, but must be used with caution.
Field Summary | |
private static com.ibm.workflow.api.Agent |
agent
MQWF embedded Agent |
private java.lang.String |
command
Command to be executed in this invocation |
private static com.ibm.workflow.api.ExecutionAgent |
exeAgent
MQWF Execution Agent, needed for workflow container access |
private static com.transarc.jmon.examples.Inc.IncHome |
incrementHome
EJB home interface |
private java.lang.String |
instanceName
Workflow process instance name |
private static javax.naming.Context |
jndiContext
JNDI naming context |
Constructor Summary | |
IncrementEJBPea()
Dummy constructor |
Method Summary | |
private int |
executeCommand()
Dispatcher method that actually invokes the EJB methods |
static void |
main(java.lang.String[] args)
Main method, no parameter evaluation |
private void |
readContainer()
Reads all needed variables from the input container and stores the values in the class variables |
private void |
writeContainer(int count)
Writes the increment counter value to the output container |
Methods inherited from class java.lang.Object |
|
Field Detail |
private static javax.naming.Context jndiContext
private static com.transarc.jmon.examples.Inc.IncHome incrementHome
private static com.ibm.workflow.api.Agent agent
private static com.ibm.workflow.api.ExecutionAgent exeAgent
private java.lang.String command
private java.lang.String instanceName
Constructor Detail |
public IncrementEJBPea()
Method Detail |
private int executeCommand() throws java.lang.Exception
public static void main(java.lang.String[] args)
private void readContainer() throws com.ibm.workflow.api.FmcException
private void writeContainer(int count) throws com.ibm.workflow.api.FmcException
count
- The value of the increment counter in the EJB
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |