Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 8749061
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 13, 20262026-06-13T12:37:53+00:00 2026-06-13T12:37:53+00:00

I am implementing a FTE network using Websphere MQ 7.5. I have developped a

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-13T12:37:54+00:00Added an answer on June 13, 2026 at 12:37 pm

    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

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Implementing a simple Login screen using JSF and Spring and Hibernate. I have written
Implementing the basic algorithm using last array as a pivot in Java, is it
implementing publishActivity in PHP using the REST API using this code: $activity = array(
When implementing Serializable interface, in Java, we need to set it's serialVersionUID long. Is
When implementing a hash table using a good hash function (one where the probability
Before implementing j_security_check using MySQL realm authentication in my web app. I had the
implementing code for customized mini(less squares, less pieces ) chess board in java or
When implementing iterator using yield return , is there any difference between returning IEnumerator
When implementing error-handling using the built-in validation-helpers on a strongly-typed view, you usually create
Implementing Kings' Corners (glorified multiplayer Solitaire) in Java. I'm trying to allow a player

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.