|  | 
 
  
    | RSS Feed - WebSphere MQ Support | RSS Feed - Message Broker Support |  
 
  
	|    |  |  
  
	| FMC00126E Program Execution Agent not running? Urgent reply? | « View previous topic :: View next topic » |  
  	| 
		
		
		  | Author | Message |  
		  | hifive | 
			  
				|  Posted: Thu May 11, 2006 4:28 am    Post subject: FMC00126E Program Execution Agent not running? Urgent reply? |   |  |  
		  | Acolyte
 
 
 Joined: 06 May 2006Posts: 52
 
 
 | 
			  
				| ///****************************************Error ERRORcom.ibm.workflow.api.FmcException:
 FMC38009E MQSeries Workflow API Error :
 API Return Code  : 126
 Error Origin     : e:\v350\src\fmcjccon.cxx, line 1196
 Error Message    : FMC00126E Program Execution Agent not running
 //*******************************************
 Code:
 
 import com.ibm.workflow.api.*;
 import com.ibm.workflow.api.ServicePackage.*;
 import com.ibm.workflow.api.PersistentListPackage.*;
 
 
 public class Readincontainers {
 public static void main(String[] args) throws Exception, FmcException
 {
 ExecutionService service=null;
 ExecutionAgent eAgent=null;
 try {
 Agent agent=new Agent();
 
 agent.setLocator(Agent.LOC_LOCATOR);
 agent.setName("siva");
 
 service= agent.locate("FMCGRP","FMCSYS");
 service.logon2("ADMIN","password",SessionMode.PRESENT_HERE,AbsenceIndicator.LEAVE);
 service.logoff();
 service.logon2("ADMIN","password",SessionMode.PRESENT,AbsenceIndicator.LEAVE);
 System.out.println("Connected");
 
 service.programExecutionAgentStartUp();
 ReadOnlyContainer inctnr;
 ContainerElement[][] members = new ContainerElement[10][];
 ContainerElement[][] leaves = new ContainerElement[200][];
 ContainerElement     element = null;
 eAgent=agent.getExecutionAgent() ;
 inctnr = eAgent.inContainer();
 System.out.println("\nReceived input container '" + inctnr.type() + "'\n");
 int ulLeafCount = inctnr.allLeafCount();
 System.out.println("\nReceived leaf count "+ ulLeafCount);
 leaves[0]=inctnr.allLeaves();
 service.programExecutionAgentShutDown();
 element = leaves[0][0];
 String  membername,membertype;
 for (int j=0; j < ulLeafCount; j++)
 {
 membername = element.fullName();
 membertype =element.type();
 System.out.println("name" +membername);
 System.out.println("type"+membertype);
 }
 
 }
 catch(FmcException e)
 {
 System.out.println("ERROR"+e);
 }
 catch (Exception e)
 {
 System.out.println("  StackTrace:");
 e.printStackTrace();
 System.exit(3);
 }
 
 }
 }
 
 if the remove agent.get ExecutinAgent() I find the inContainer not found.
 
 MQWF v.3.5 API code
 |  |  
		  | Back to top |  |  
		  |  |  
		  | hifive | 
			  
				|  Posted: Sun May 21, 2006 7:54 am    Post subject: |   |  |  
		  | Acolyte
 
 
 Joined: 06 May 2006Posts: 52
 
 
 | 
			  
				| Waiting for ur assistance..? |  |  
		  | 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
 
 |  |  |  |