Troubleshooting
Problem
agentservers are not starting up. Submitting agentrunner script to directly process the task_q records without MQ or JMS
Symptom
PART: Platform Framework 5.0 SP2 Platform
PRODUCT: Distributed Order
Management
COMPONENT: API
WEB BROWSER: Internet Explorer - 6.0
sp1
agentservers are not starting up. Submitting agentrunner script to
directly process the task_q records without MQ or JMS
Cause
Resolving The Problem
The steps below may be used to run agents directly without using an
agentserver. This method may be used as a workaround to get jobs processed when
you are unable to get the agentserver started:
CopyAdd a script such as the
one you used to startup the agent server as agentrunner.sh in your $Y
FS_HOME/bin directroy. (Or get it from Yantra Tech Support)
Replace the java
command with the following ..
java com.yantra.ycp.agent.server.YCPRunAgent
-criteriaId $1 -className $2
Invoke the script with two arguments
consisting of CriteriaId as defined in the agent server configuration in the
transaction configuration and a full class name depending on the job you wish
to run. for e.g. for the schedule agent you would submit it
as
agentrunner.sh SCHEDULE_AGENT
com.yantra.yfs.agent.YFSScheduleOrderAgent
A list of the class names
used by the common agents are as follows (others can be found by running the
command jar -tvf yfs.jar | grep agent | grep <AgentName>)
Allocation
YFSAllocateOrderAgent
Schedule YFSScheduleOrderAgent
Release
YFSReleaseOrderAgent
Send Invoice YFSSendInvoiceAgent
WMSShipConfirm
YFSWMSShipConfirmAgent
When passing the class name argument specify the
complete path as shown in the example i.e. com.yantra.yfs.agent.<ClassName>
Historical Number
PRI49275
Product Synonym
[<p><b>]Fact[</b><p>];
Was this topic helpful?
Document Information
Modified date:
16 June 2018
UID
swg21550476