× The internal search function is temporarily non-functional. The current search engine is no longer viable and we are researching alternatives.
As a stop gap measure, we are using Google's custom search engine service.
If you know of an easy to use, open source, search engine ... please contact support@midrange.com.



Hello,

we are developing a Java batch process on the AS400, which is reading XML
messages from MQSeries, calls existing RPG programs to process the request
and submits the response XML message back to MQSeries. Due security reasons
the Java process has to run with a specific userID. This userID can not
signon to the system, it is only used to run different batch processes. (
this user is specified on SBMJOB command).   By doing so, we are receiving
java.io.Exception.

Is there a way to allow the JAVA program to have the capability to call
AS/400 RPG programs without logging on to the system?

Here is the JAVA code used to connect to the AS/400:

     String as400Name = "MyAS400";
     as400 = new AS400(as400Name);
     as400.connectService(AS400.COMMAND);

Here is the log from our JAVA job:

java.io.IOException
      com/ibm/as400/access/SocketContainerUnix.getSubstPassword([B[B)[B+8
(SocketContainerUnix.java:97)
      com/ibm/as400/access/CurrentUser.getUserInfo([B[B)[B+16
(CurrentUser.java:73)
      com/ibm/as400/access/AS400ImplRemote.getPassword([B[B)[B+34
(AS400ImplRemote.java:918)

com/ibm/as400/access/AS400ImplRemote.getConnection(IZ)Lcom/ibm/as400/access/AS400Server;

267 (AS400ImplRemote.java:859)
      com/ibm/as400/access/AS400ImplRemote.connect(I)V+13
(AS400ImplRemote.java:342)
      com/ibm/as400/access/AS400.connectService(I)V+87 (AS400.java:703)
      com/quixtar/oms/si/NMN8UPR.initialise(Ljava/util/Properties;)Z+0
(NMN8UPR.java:112)
      com/quixtar/oms/si/MQThread.<init>(Lcom/quixtar/oms/si/MQJob;I)V+0
(MQThread.java:16)
      com/quixtar/oms/si/MQJob.<init>([Ljava/lang/String;)V+0
(MQJob.java:74)
      com/quixtar/oms/si/MQJob.main([Ljava/lang/String;)V+0 (MQJob.java:36)


Thanks,

Attila



As an Amazon Associate we earn from qualifying purchases.

This thread ...


Follow On AppleNews
Return to Archive home page | Return to MIDRANGE.COM home page

This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].

Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.