× 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.



Patrick,

No you can't, I found somewhere in the MQ docs which specifically says you
can't do this.  To get around it you have to get MQ to trigger a CL program
(see below) and then use the CL program to invoke your Java class, I have
this working just fine.  The parameter is necessary, MQ sends a bunch of
information in the parameter.  Personally I've never needed its contents,
from memory it is the 'MQTM' structure, if you look this up in the MQ help
you should find it.

Hope this helps,

Nigel Gay,
Computer Patent Annuities.


             PGM        PARM(&PARAM)
             DCL        VAR(&PARAM) TYPE(*CHAR) LEN(1024)
             JAVA       +
                          CLASS(com.whatever.your.class.is) +
                          CLASSPATH('/Path/YourJar.jar')

             ENDPGM



|---------+------------------------------------>
|         |           patrick.odowd@co-operativ|
|         |           ebank.co.uk              |
|         |           Sent by:                 |
|         |           java400-l-bounces@midrang|
|         |           e.com                    |
|         |                                    |
|         |                                    |
|         |           14/01/2004 13:42         |
|         |           Please respond to Java   |
|         |           Programming on and around|
|         |           the iSeries / AS400      |
|         |                                    |
|---------+------------------------------------>
  
>--------------------------------------------------------------------------------------------------------------|
  |                                                                             
                                 |
  |       To:       Java Programming on and around the iSeries / AS400 
<java400-l@xxxxxxxxxxxx>                  |
  |       cc:                                                                   
                                 |
  |       Subject:  Specify a java class                                        
                                 |
  
>--------------------------------------------------------------------------------------------------------------|




Before acting on this e-mail or opening any attachment, you are advised to
read the disclaimer at the end of this mail.

Hi,
There is a command supplied with MQSeries that specifies the name and
library of
a program that is called at a certain point (CHGMQMCHL command):

Security exit  . . . . . . . . .   pgmname       Name, *SAME, *NONE
  Library  . . . . . . . . . . .   pgmlibrary    Name

Any ideas if it possible to specify a java class here? e.g is it possible
to
create a *PGM object in a QSYS library from a class stored in the IFS..!

Thanks in advance


**********************************************************************
This e-mail is intended solely for the addressee and is strictly
confidential. If you are not the addressee, please do not read, print,
re-transmit, store or act in reliance on it or any attachments. Instead
please e-mail it back to the sender and delete the message from your
computer.

E-mail transmission cannot be guaranteed to be secure or error free and The
Co-operative Bank accepts no liability for changes made to this e-mail (and
any attachments) after it was sent or for viruses arising as a result of
this e-mail transmission.

Any unauthorised reproduction, dissemination, copying, disclosure,
modification, distribution and/or publication of this e-mail message is
strictly prohibited.

The Co-operative Bank reserves the right to intercept any e - mails or
other communication for permitted purposes in accordance with the current
legislation which you send to, or receive from, any of the employees or
agents of the Bank via Bank telecommunication systems. By so corresponding
you also give your consent to the Bank monitoring and recording of any
correspondence using these systems.

The Co-operative Bank p.l.c. is registered in England and Wales, number
990937. The registered office is at PO Box 101, 1, Balloon Street,
Manchester, M60 4EP.
**********************************************************************
_______________________________________________
This is the Java Programming on and around the iSeries / AS400 (JAVA400-L)
mailing list
To post a message email: JAVA400-L@xxxxxxxxxxxx
To subscribe, unsubscribe, or change list options,
visit: http://lists.midrange.com/mailman/listinfo/java400-l
or email: JAVA400-L-request@xxxxxxxxxxxx
Before posting, please take a moment to review the archives
at http://archive.midrange.com/java400-l.








********************************************************************************
The information in this message is confidential and may be legally
privileged. It is intended solely for the addressee; access to this
email by anyone else is unauthorised.

If you are not the intended recipient: (1) you are kindly requested
to return a copy of this message to the sender indicating that you
have received it in error, and to destroy the received copy; and (2)
any disclosure or distribution of this message, as well as any action
taken or omitted to be taken in reliance on its content, is prohibited
and may be unlawful.
********************************************************************************


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.