ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » Problem in using Java Corba agent

Post new topic  Reply to topic
 Problem in using Java Corba agent « View previous topic :: View next topic » 
Author Message
mqwhelp
PostPosted: Tue Jun 25, 2002 12:47 am    Post subject: Problem in using Java Corba agent Reply with quote

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
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » Workflow Engines - IBM MQ Workflow & Business Process Choreographer » Problem in using Java Corba agent
Jump to:  



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
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.