websphere-mq-fte


wmq-fte precall java failed


I am implementing a FTE network using Websphere MQ 7.5.
I have developped a java program to be ran as a precall transfert.
here is my procedure :
I have updated the agent.properties file with path to java.exe
restart my agent
create a new transfert
In the call panel, I configure a precall :
program : java
argument : -jar c:\PATH\TO\MY\JAR\myJar.jar myArgument
the transfert fails and the error shown is like java does not receive any argument.
When I test my command in a windows prompt it works.
In addition, my first attempt was to run a batch script containing the java command but it did not work either.
I do not want to use an exit as the program is specific to a transfer.
Edit : I have test a simple java -version command and it works.
<preSourceCall>
<command name="java" retryCount="0" retryWait="0" successRC="0" type="executable">
<argument>-jar C:\mqfteTest\ExitsJava.jar C:\mqfteTest\userExitTest\FileRef_20121023.txt</argument>
</command>
</preSourceCall>
Error returned :
<callResult outcome="failure" retries="0">
<result outcome="failure" returnCode="1" time="2012-10-24T12:39:52.419Z">
<stdout>
<line/>
<line>Syntaxe : java [-options] class [args...]</line>
<line> (pour l'ex‚cution d'une classe)</line>
<line> ou java [-jar] [-options] jarfile [args...]</line>
...
<line>JVMJ9VM007E Option de ligne de commande non identifiee : -jar C:\mqfteTest\ExitsJava.jar C:\mqfteTest\userExitTest\FileRef_20121023.txt</line>
<line>Could not create the Java virtual machine.</line>
</stderr>
Best Regards
I am not quite sure if I have understood the question. Assuming your aim is to invoke Java class before the transfer begins, you can use MFT exits to achieve that. Here is a link to WMQ MFT v7.5 sample source end user exit.
HTH
I finally managed to execute my precall:
for the windows platform, I used a batch script and i put the script and the jar in a folder without space in the path.
I did not manage to use the java command and will open a PMR to understand why.
edit :
Finally I have understood why!!
In fact the so called "argumentS" (in the precall conf) are in fact just one argument.
I have also manage to deploy my precall on iseries as400.
the command line is the same but the declaration of shell MUST be
#!/QOpenSys/usr/bin/sh
with #!/bin/sh wmq-fte does not manage to catch the exit of the program
Everything works great now.
I also found a strange behaviour (which will aim to another PMR) :
when the files to send are in a subdirectory of the command path, the transfert fail.
Hope this will help some one.
Regards

Related Links

ANT FTE fte:filemove command no return code for large file
Syntax for PRESOURCE call using Protocol bridge agent as source in MQFTE
MQ-FTE options for email alerting on errors or monitoring (to be able to support the solution during Test and then Prod Support)?
Limit MQFTE file transfer to one file at a time
Using -bs parameter (batch size, matches per task) in IBM MQ FTE transfer
Space in Directory for WebSphere MQ FTE transfer
How to retry file transfer using transferId (IBM MQ fte)
How to handle FTE queued transfers
How to monitor FTE agent status
wmq-fte precall java failed
WMQ FTE in a Distributed Environment
FTE should not pick the file until unless file is ready for transfer
How to configure a fte ant script so it can perform few task before file transfer
How to implement logging in fte ant script

Categories

HOME
vim
image
cloud
openstack
c#-4.0
mockito
kde
octobercms
routes
bookshelf.js
yahoo-oauth
jpeg
google-project-tango
installshield
networkx
azure-storage-tables
constraint-programming
multiple-records
gorm
communication
spring-kafka
dax
correlation
flask-wtforms
workload-scheduler
normalizr
tokenize
restful-authentication
one-to-many
fluentvalidation
elasticsearch-net
subdomains
unboundid
iframe-resizer
create-table
accelerate-framework
amazon-kinesis-kpl
mpmediaquery
wixsharp
revolution-slider
adobe-premiere
occlusion
c11
ssjs
broadcastreceiver
reportingservices-2005
nomethoderror
spring-security-kerberos
fakeiteasy
slick-3.0
thin
websphere-mq-fte
hibernate-tools
revapi
qsslsocket
rails-routing
blogengine.net
jlink
alphabet
elgg
sqlbulkcopy
zendesk-app
blacklist
url-pattern
rotativa
android-textview
database-optimization
login-control
myo
method-parameters
unity5.2.3
device-orientation
apache-commons-net
directoryservices
csquery
oxwall
dd
winddk
bitcoinj
xojo
openexr
sgen
seaside
picturefill
android-2.2-froyo
cloud-connect
mysqltuner
c18
easy-install
ril
ora-00911
eclipse-memory-analyzer
buster.js
sqlperformance
robotics-studio
tinn-r
e4x
mt
viewswitcher
onsubmit
chrono
wse3.0
netbeans-6.9
netdna-api
boost-filesystem
zpt
servicehost
mysql-error-1005
dmx512
gamma
xsdobjectgen
castle-monorail
scripting-languages
django-notification

Resources

Mobile Apps Dev
Database Users
javascript
java
csharp
php
android
MS Developer
developer works
python
ios
c
html
jquery
RDBMS discuss
Cloud Virtualization
Database Dev&Adm
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App