|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
Problem in using Java Corba agent |
« View previous topic :: View next topic » |
Author |
Message
|
mqwhelp |
Posted: Tue Jun 25, 2002 12:47 am Post subject: Problem in using Java Corba agent |
|
|
Voyager
Joined: 20 Dec 2001 Posts: 85 Location: TCS
|
I have configured Java Corba Agent to use JNDI_locator Policy for MQWorkflow server
Now I have started Persistent Name server of Visual Age.
To start Agent I am just executing fmcagent-fmc.bat file which was created after Java Corba Agent was configured and located in workflow/cfgs/bin directory
The below mentioned code in IBM Visual Age allows me to login AND print the userid correctly from service object.
****************************************************
Agent objAgent = new Agent();
Properties prop = System.getProperties();
prop.put(Context.INITIAL_CONTEXT_FACTORY, "com.ibm.ejs.ns.jndi.CNInitialContextFactory");
prop.put(Context.PROVIDER_URL, "iiop://172.20.129.143:900");
objAgent.setLocator(Agent.JNDI_LOCATOR);
objAgent.setName("MQWFAGENT");
System.out.println("After Agent name ");
ExecutionService service =
objAgent.locate("FMCGRP","FMCSYS");
System.out.println("After service located ");
service.logon2("ADMIN","password",SessionMode.DEFAULT,AbsenceIndicator.NOT_SET);
System.out.println("login done"+service.userID());
*************************************************
ProcessTemplate proc[] = service.queryProcessTemplates(null,null,null);
System.out.println("The first template is "+ procIn[0].name());
But ,if I query for process templates as mentioned in above lines,
It throws an error code of 13(FMC_ERROR_COMMUNICATION)
However if I query process instances or workitems it gives me the correct result..
Sometimes I had faced the error code 14(FMC_ERROR_TIMEOUT).Service of MQWF automatically stops
Please let me know about the error
Also in programming guide,the procedure is given for "Running the MQ Workflow Java CORBA Agent inside the WebSphere Test Environment"..
I had followed same procedure but when I executed the main program in com.ibm.workflow.agent ,it throws security exception
Please suggest about the performance problem if any while using JNDI_locator
Solution for the same urgently required.
Waiting for the reply, |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum
|
|
|
|