Re: JMS error

2004-11-04 Thread Jay H. Lang


Then I think that your lib variable does not have c:\Program Files\ibm\MQSeries\Java\lib
in it.  Or has the wrong version.
--
Jay H. Lang
Chief Technologist
Distributed Computing Professionals Inc.
IBM Certified Specialist - WebSphere MQ
651 406-2131 - USPS Office
303 277-1873 - Colorado Office
303 807-9700 - Cell Phone
GP wrote:
I am running this code on windows with websphere
mq v5.3, I will increment the counter but the program fails before that
part. thanks
"Jay H. Lang" <[EMAIL PROTECTED]> wrote:
I
have your code running..since it is a NATIVE error, I think that you
are missing something in your lib or libpath.  What platform are you
on?
Also, you never increment the counter so it shows messages sent:  
0   even when one was sent
--
Jay H. Lang
Chief Technologist
Distributed Computing Professionals Inc.
IBM Certified Specialist - WebSphere MQ
651 406-2131 - USPS Office
303 277-1873 - Colorado Office
303 807-9700 - Cell Phone
 
GP wrote:
I am trying to use JMS to send a message to a queue
but I just keep on getting the following error:
java.lang.NoSuchMethodError:
getMessageDataurn:schemas-microsoft-com:office:office"
/>

at
com.ibm.mq.server.MQSESSION._MQPUTMSG2(Native Method)


at
com.ibm.mq.server.MQSESSION.MQPUT(MQSESSION.java:2421)

at
com.ibm.mq.MQQueue.putMsg2(MQQueue.java:1482)

at
com.ibm.mq.jms.MQMessageProducer.sendInternal(MQMessageProducer.java:1560)

at
com.ibm.mq.jms.MQMessageProducer.send(MQMessageProducer.java:1012)

at
com.ibm.mq.jms.MQMessageProducer.send(MQMessageProducer.java:1046)

at
testSender.TestSender2.main(TestSender2.java:56)

Exception
in thread "main" 
 
 
 
 
My program is:package testSender;import
javax.jms.*;
import com.ibm.mq.jms.*;import
javax.naming.*;
import java.io.*;public class TestSender2
{    /**
 * Main
method.
 *
 * @param
args the queue used by the example and,
 *
optionally, the number of messages to send
 */
 
    public static
void main(String[] args) {
   
String 
queueName = null;
   
String texttest = "temp";
   
String myQueue="ORANGE.QUEUE";
   
Context
jndiContext = null;
   
QueueConnectionFactory  queueConnectionFactory = null;
   
QueueConnection queueConnection
= null;
   
QueueSession   
queueSession = null;
   
com.ibm.mq.jms.MQQueue  
queue = null;
   
com.ibm.mq.jms.MQQueue  
replyToQueue = null;
   
QueueSender
queueSender = null;
   
TextMessage
message = null;
   
final int  
NUM_MSGS;
   
int count = 0;
   
try{
   queueConnectionFactory
= new MQQueueConnectionFactory();
   ((MQQueueConnectionFactory)queueConnectionFactory).setQueueManager(args[0]);
   
queueConnection =
   
queueConnectionFactory.createQueueConnection();
   
queueSession =
   
queueConnection.createQueueSession(false,
   
Session.AUTO_ACKNOWLEDGE);
   queue = (com.ibm.mq.jms.MQQueue)
queueSession.createQueue(args[1]);
 
   queue.setTargetClient(JMSC.MQJMS_CLIENT_NONJMS_MQ);
   
queueSender = queueSession.createSender(queue);
 
   message = queueSession.createTextMessage();
   message.setText(texttest);
   queueConnection.start();  
queueSender.send(message);
   queueConnection.close();
  
}
 
  catch (JMSException e) {
   
System.out.println("Exception occurred: " +
   
e.toString());
   e.printStackTrace();
   
} finally {
   
if (queueConnection != null) {
   
try {
   
queueConnection.close();
   
} catch (JMSException e) {}
   
}
   
}
 System.out.println("messages
sent: " + count);
    }
} Any help will be
appreciated. 
Do you Yahoo!?
Check out the new Yahoo! Front Page. www.yahoo.com

 
 

Do you Yahoo!?
Check out the new Yahoo! Front Page. www.yahoo.com

 
 
 


Re: JMS error

2004-11-03 Thread Jay H. Lang


I have your code running..since it is a NATIVE error, I think that
you are missing something in your lib or libpath.  What platform are
you on?
Also, you never increment the counter so it shows messages sent:  
0   even when one was sent.
--
Jay H. Lang
Chief Technologist
Distributed Computing Professionals Inc.
IBM Certified Specialist - WebSphere MQ
651 406-2131 - USPS Office
303 277-1873 - Colorado Office
303 807-9700 - Cell Phone
 
GP wrote:
I am trying to use JMS to send a message to a queue
but I just keep on getting the following error: 
java.lang.NoSuchMethodError:
getMessageDataurn:schemas-microsoft-com:office:office"
/>


at
com.ibm.mq.server.MQSESSION._MQPUTMSG2(Native Method)

at
com.ibm.mq.server.MQSESSION.MQPUT(MQSESSION.java:2421)

at
com.ibm.mq.MQQueue.putMsg2(MQQueue.java:1482)

at
com.ibm.mq.jms.MQMessageProducer.sendInternal(MQMessageProducer.java:1560)

at
com.ibm.mq.jms.MQMessageProducer.send(MQMessageProducer.java:1012)

at
com.ibm.mq.jms.MQMessageProducer.send(MQMessageProducer.java:1046)

at
testSender.TestSender2.main(TestSender2.java:56)

Exception
in thread "main"  
 
 
 
 
My program is:package
testSender;import javax.jms.*;
import com.ibm.mq.jms.*;import
javax.naming.*;
import java.io.*;public
class TestSender2 {   
/**
 * Main
method.
 *
 * @param
args the queue used by the example and,
 *
optionally, the number of messages to send
 */
 
    public static
void main(String[] args) {
   
String 
queueName = null;
   
String texttest = "temp";
   
String myQueue="ORANGE.QUEUE";
   
Context
jndiContext = null;
   
QueueConnectionFactory  queueConnectionFactory = null;
   
QueueConnection queueConnection
= null;
   
QueueSession   
queueSession = null;
   
com.ibm.mq.jms.MQQueue  
queue = null;
   
com.ibm.mq.jms.MQQueue  
replyToQueue = null;
   
QueueSender
queueSender = null;
   
TextMessage
message = null;
   
final int  
NUM_MSGS;
   
int count = 0;
   
try{
   queueConnectionFactory
= new MQQueueConnectionFactory();
   ((MQQueueConnectionFactory)queueConnectionFactory).setQueueManager(args[0]);
   
queueConnection =
   
queueConnectionFactory.createQueueConnection();
   
queueSession =
   
queueConnection.createQueueSession(false,
   
Session.AUTO_ACKNOWLEDGE);
   queue = (com.ibm.mq.jms.MQQueue)
queueSession.createQueue(args[1]);
 
   queue.setTargetClient(JMSC.MQJMS_CLIENT_NONJMS_MQ);
   
queueSender = queueSession.createSender(queue);
 
   message = queueSession.createTextMessage();
   message.setText(texttest);
   queueConnection.start();  
queueSender.send(message);
   queueConnection.close();
  
}
 
  catch (JMSException e) {
   
System.out.println("Exception occurred: " +
   
e.toString());
   e.printStackTrace();
   
} finally {
   
if (queueConnection != null) {
   
try {
   
queueConnection.close();
   
} catch (JMSException e) {}
   
}
   
}
 System.out.println("messages
sent: " + count);
    }
} Any help will
be appreciated. 
Do you Yahoo!?
Check out the new Yahoo! Front Page. www.yahoo.com

 
 


Re: Increase in WMQ Storage Utilization going to z/OS

2004-09-02 Thread Jay H. Lang


What version of MQ.
--
Jay H. Lang
Chief Technologist
Distributed Computing Professionals Inc.
IBM Certified Specialist - WebSphere MQ
651 406-2131 - USPS Office
303 277-1873 - Colorado Office
303 807-9700 - Cell Phone
"Aroneanu, Corina" wrote:
 

My shop has just upgraded the mainframe
Operating System from os/390 to z/OS 1.4 and we are noticing an increase
in storage utilization for all queue managers
and chins.   Has anyone experienced this and what was done to
reduce it?
 
 
Thanks



This e-mail message and any attachments contain confidential information
from Medco. If you are not the intended recipient, you are hereby notified
that disclosure, printing, copying, distribution, or the taking of any
action in reliance on the contents of this electronic information is strictly
prohibited. If you have received this e-mail message in error, please immediately
notify the sender by reply message and then delete the electronic message
and any attachments.

 
 


Re: Trigger on depth question

2004-08-23 Thread Jay H. Lang



Yes!!!   The "Depth" trigger, is the only 
trigger that turns the trigger off and the application must turn it back on 
using MQSET.
Thanks.--Jay H. LangChief 
TechnologistDistributed Computing Professionals Inc.IBM Certified 
Specialist - WebSphere MQ303 277-1873 - Colorado Office651 406-2131 - 
USPS Office303 807-9700 - Cell 

  - Original Message - 
  From: 
  Ronald 
  Weinger 
  To: [EMAIL PROTECTED] 
  Sent: Monday, August 23, 2004 10:51 
  AM
  Subject: Trigger on depth question
  We have a queue that is 
  defined to trigger on a depth of 10 messages.  When 10 messages are 
  placed we see the trigger control set to 'OFF' and a trigger message generated.  The trigger control 
  never gets reset to 'ON'. Does that have to be reset  'manually'? 
  The information contained in this message may be CONFIDENTIAL and is for 
  the intended addressee only. Any unauthorized use, dissemination of the 
  information, or copying of this message is prohibited. If you are not the 
  intended addressee, please notify the sender immediately and delete this 
  message.


Re: Trigger a Shell Script that starts a Java Program

2004-07-02 Thread Jay H. Lang
Is the TRIGGER TYPE FIRST or EVERY.  Are you closing the queue after each
message, or at anytime before the queue is empty?

--
Jay H. Lang
Chief Technologist
Distributed Computing Professionals Inc.
IBM Certified Specialist - WebSphere MQ
303 277-1873 - Colorado Office
651 406-2131 - USPS Office
303 807-9700 - Cell
- Original Message -
From: "Lawrence Coombs" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, July 02, 2004 9:13 AM
Subject: Re: Trigger a Shell Script that starts a Java Program


> We are running MQ 5.3 with CSD 6 on AIX. We have a scenario whereby we
> trigger a shell script  then runs a Java program. The Java program has a
> wait interval of 1000 milliseconds and polls 50 times when the queue
> becomes empty (don't know why).
>
> If you put one message at a time on the queue, the started Java process
> will process all messages.
>
> However, if you were to put 60 (this is just an arbitrary number we are
> using at this time to recreate the problem), multiple Java processes are
> triggered off (the number is arbitrary). I have the TRIGINT set to 6
> Milliseconds. This seems odd. I thought that if a queue had at least one
> process (Java or otherwise) that had it open for input, MQ would not
> generate another trigger message.
>
> Can anyone shed some light on what I am seeing?
>
> Instructions for managing your mailing list subscription are provided in
> the Listserv General Users Guide available at http://www.lsoft.com
> Archive: http://vm.akh-wien.ac.at/MQSeries.archive
>

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive


Re: WBI-MB COBOL to DDL creation

2004-05-21 Thread Jay H. Lang
Bobby,
Normally the table is created first, and then you do a DCLGEN to create the
COBOL table declaration and the copybook for the WORKING-STORAGE area.
Don't know how in reverse.

Thanks.
--
Jay H. Lang
Chief Technologist
Distributed Computing Professionals Inc.
IBM Certified Specialist - WebSphere MQ
303 277-1873 - Colorado Office
651 406-2131 - USPS Office
303 807-9700 - Cell
- Original Message -
From: "Robert Broderick" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, May 21, 2004 6:24 AM
Subject: WBI-MB COBOL to DDL creation


> Given a COBOL copybook how do I get it into a form (DDL) that DB2 can use
to
> create a table??
>
> I would have thought generating the XML schema in the Toolkit would be
> itAM I WRONG?
>
>
>   bobbee
>
> _
> Learn to simplify your finances and your life in Streamline Your Life from
> MSN Money. http://special.msn.com/money/0405streamline.armx
>
> Instructions for managing your mailing list subscription are provided in
> the Listserv General Users Guide available at http://www.lsoft.com
> Archive: http://vm.akh-wien.ac.at/MQSeries.archive
>

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive


Re: Multiple transactions started despite trigger first in CICS

2004-03-03 Thread Jay H. Lang
Nothing that I can think of unless you have logging turned on in your security
server, RACF or ACF2, and can see who did what, when.
--
Jay H. Lang
Chief Technologist
Distributed Computing Professionals Inc.
IBM Certified Specialist - WebSphere MQ
651 406-2131 - USPS Office
303 277-1873 - Colorado Office
303 807-9700 - Cell Phone


Jan MOEYERSONS wrote:

> Dear Jay,
>
> I am aware of that. We have re-verified the code; there is no MQCLOSE before
> the program has consumed all the messages in the queue. Of that we are
> pretty certain.
>
> For the moment we are suspecting someone changed (inadvertently or not) the
> triggering mode from first to every and back again... Would there be any way
> of proving that after the fact?
>
> Cheers,
>
> Jantje.
>
> -Original Message-
> From: Jay H. Lang [mailto:[EMAIL PROTECTED]
> Sent: woensdag 3 maart 2004 12:35
> To: [EMAIL PROTECTED]
> Subject: Re: Multiple transactions started despite trigger first in CICS
>
> If your application ever closes the queue before it is empty, another
> transaction will be triggered.  Make sure the app gets to the bottom of the
> queue before doing the MQCLOSE.
> --
> Jay H. Lang
> Chief Technologist
> Distributed Computing Professionals Inc.
> IBM Certified Specialist - WebSphere MQ
> 651 406-2131 - USPS Office
> 303 277-1873 - Colorado Office
> 303 807-9700 - Cell Phone
>
> Jan MOEYERSONS wrote:
>
> > Dear Listers,
> >
> > We have a queue filled up with messages. The queue is defined to trigger
> > first, but still we see multiple instances of the same transaction
> > triggered in parallel in our CICS.
> >
> > CICS TS 1.3
> > MQ-Series 2.1
> > zOS 1.3
> >
> > Has anyone seen this erroneous behaviour? What did you do to fix it?
> >
> > Thanks,
> >
> > Jantje.
> >
> > Instructions for managing your mailing list subscription are provided in
> > the Listserv General Users Guide available at http://www.lsoft.com
> > Archive: http://vm.akh-wien.ac.at/MQSeries.archive
>
> Instructions for managing your mailing list subscription are provided in
> the Listserv General Users Guide available at http://www.lsoft.com
> Archive: http://vm.akh-wien.ac.at/MQSeries.archive
>
> Instructions for managing your mailing list subscription are provided in
> the Listserv General Users Guide available at http://www.lsoft.com
> Archive: http://vm.akh-wien.ac.at/MQSeries.archive

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive


Re: Multiple transactions started despite trigger first in CICS

2004-03-03 Thread Jay H. Lang
If your application ever closes the queue before it is empty, another
transaction will be triggered.  Make sure the app gets to the bottom of the
queue before doing the MQCLOSE.
--
Jay H. Lang
Chief Technologist
Distributed Computing Professionals Inc.
IBM Certified Specialist - WebSphere MQ
651 406-2131 - USPS Office
303 277-1873 - Colorado Office
303 807-9700 - Cell Phone

Jan MOEYERSONS wrote:

> Dear Listers,
>
> We have a queue filled up with messages. The queue is defined to trigger
> first, but still we see multiple instances of the same transaction
> triggered in parallel in our CICS.
>
> CICS TS 1.3
> MQ-Series 2.1
> zOS 1.3
>
> Has anyone seen this erroneous behaviour? What did you do to fix it?
>
> Thanks,
>
> Jantje.
>
> Instructions for managing your mailing list subscription are provided in
> the Listserv General Users Guide available at http://www.lsoft.com
> Archive: http://vm.akh-wien.ac.at/MQSeries.archive

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive


Re: MQ Pub/Sub Requirements

2004-02-18 Thread Jay H. Lang
MA0C SupportPac will do the trick.
--
Jay H. Lang
Chief Technologist
Distributed Computing Professionals Inc.
IBM Certified Specialist - WebSphere MQ
651 406-2131 - USPS Office
303 277-1873 - Colorado Office
303 807-9700 - Cell Phone

Wesley Shaw wrote:

> What is involved with an MQ pub/sub solution?  Is there product that has to
> be bought beyond MQ Series ?  Are there support Pacs which will enable
> Pub/Sub with basic MQ Series ?
>
> Instructions for managing your mailing list subscription are provided in
> the Listserv General Users Guide available at http://www.lsoft.com
> Archive: http://vm.akh-wien.ac.at/MQSeries.archive

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive


MO02 Compression

2004-01-31 Thread Jay H. Lang
I am trying to get MO02 running on z/OS with MQ V2.1  It all seems to be
set-up, no errors in CHIN or MSTR, but I never get anything in MO02LOG
or MO02STAT.  I have these going to SYSOUT=H. I have the channel def.
set to LOG=6 STAT=2.  The DD's never even get allocated in the JES
output.  messages do go over the channels just fine.  How can I tell if
they are getting compressed.
Has anyone else deployed this on z/OS, MQ V2.1

Thanks.

--
Jay H. Lang
Chief Technologist
Distributed Computing Professionals Inc.
IBM Certified Specialist - WebSphere MQ
303 277-1873 - Office
303 807-9700 - Cell
Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive


Re: conversion Oracle 8i PLSQL to 9i Procedural Gateway

2004-01-06 Thread Jay H. Lang
What are the problems??
--
Jay H. Lang
Chief Technologist
Distributed Computing Professionals Inc.
IBM Certified Specialist - WebSphere MQ
651 406-2131 - USPS Office
303 277-1873 - Colorado Office
303 807-9700 - Cell Phone


Robert Broderick wrote:

> One on my clients is going through this at the moment. Has anybody done
> this. I worked on the origional PLSQL. Now someone has come n and upgraded
> it to the 9i Gateway functionality and it doesn't seem to be working. Any
> gotchas??? I just got the stored procedures send to me.
>
>   bobbee
>
> _
> Make your home warm and cozy this winter with tips from MSN House & Home.
> http://special.msn.com/home/warmhome.armx
>
> Instructions for managing your mailing list subscription are provided in
> the Listserv General Users Guide available at http://www.lsoft.com
> Archive: http://vm.akh-wien.ac.at/MQSeries.archive

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive


Re: Message Length

2004-01-05 Thread Jay H. Lang
One way:
...
Message myMessage = queueReceiver.receive(1000);
String myMsgString = ((TextMessage)myMessage).getText();
System.out.println("Length: " +myMsgString.length());
...

--
Jay H. Lang
Chief Technologist
Distributed Computing Professionals Inc.
IBM Certified Specialist - WebSphere MQ
651 406-2131 - USPS Office
303 277-1873 - Colorado Office
303 807-9700 - Cell Phone

Robert Broderick wrote:

> Quick one.
>
> JMSMessage Length...how does one get it???
>
> bobbee
>
> _
> Working moms: Find helpful tips here on managing kids, home, workand
> yourself.   http://special.msn.com/msnbc/workingmom.armx
>
> Instructions for managing your mailing list subscription are provided in
> the Listserv General Users Guide available at http://www.lsoft.com
> Archive: http://vm.akh-wien.ac.at/MQSeries.archive

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive


Re: OS/390 - MQSeries v5.2 - Unix System Services

2003-12-22 Thread Jay H. Lang
Jeff,
The Queue Manager will still run on the OS/390 side.  You do not need
the client attach facility, but will need the MA88 SupportPac.  You java
programs will run in USS and access the queues on the OS/390 side.  What
version of MQ on the OS/390?
--
Jay H. Lang
Chief Technologist
Distributed Computing Professionals Inc.
IBM Certified Specialist - WebSphere MQ
303 277-1873 - Office
303 807-9700 - Cell
Jeff A Tressler wrote:

We are purchasing an application to run under OS/390 but due to its use of
Java
needs to run under Unix Systems Services (USS). I know nothing about USS
and
how applications running under USS can access the base MQSeries running
under OS/390.
Do we need to use the Java clients to access MQSeries? If so that means we
need
the Client Attach facility for OS/390.
Can we create a new queue manager running under USS that is separate from
the
queue manager running under OS/390? If so, what about the issue of one
queue
manager per OS/390 region?
Basically any information would be great.

   Jeff Tressler

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive


Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive


Re: Question on MA0C (Pub/Sub)

2003-10-06 Thread Jay H. Lang


I have it set-up so each subscriber has a separate subscription and will
be the only one that gets to their queue for their topics.  So if
I publish a topic MQSeries/List, and several folks want to subscribe to
this, they will each get a separate subscription and the messages will
be sent to their respective queues where they will pick them up.
--
Jay H. Lang
Chief Technologist
Distributed Computing Professionals Inc.
IBM Certified Specialist - WebSphere MQ
303 277-1873 - Office
303 807-9700 - Cell
"Wyatt, T. Rob" wrote:
 Jay,We
are running it with WebSphere Application Server and trying to allow multiple
processes spread across multiple EJB containers to both publish and subscribe. 
It turns out that WAS does not expose all of the configuration parameters
and selects invalid values for at least one of the hidden ones.  This
presents as a variety of symptoms including the generation of multiple
messages for each publish and subscribers locking topics such that only
one subscriber at a time is allowed.--
T.Rob

-Original
Message-----
From: Jay H. Lang [mailto:[EMAIL PROTECTED]]
Sent: Monday, October 06,
2003 10:38 AM
To: [EMAIL PROTECTED]
Subject: Re: Question on MA0C
(Pub/Sub)
 
I am using it just fine with JMS Pub/Sub on Solaris.  What are your
problems?  I have multiple streams, multiple topics and multiple subscribers.
--
Jay H. Lang
Chief Technologist
Distributed Computing Professionals Inc.
IBM Certified Specialist - WebSphere MQ
303 277-1873 - Office
303 807-9700 - Cell
"Wyatt, T. Rob" wrote:
Fez,We
have it working outside of JMS in several places.  Within JMS we have
seen problems with duplicate publications and inability to support multiple
subscribers.  We currently are working several ETR's with IBM and
they've sent us some e-fixes.  Unfortunately, the guy on our team
who has been working this is on vacation for the week so I'm unable to
give you a whole lot more detail.  One thing that was passed on to
me was that Dick Hamilton at IBM was working this with us and made comments
to the effect that he was surprised at how little documentation there is
on the JMS implementation of Pub/Sub.  I'll dig around and see if
I can find the ETR numbers for you. --
T.Rob

-Original
Message-
From: Fez [mailto:[EMAIL PROTECTED]]
Sent: Sunday, October 05,
2003 8:20 PM
To: [EMAIL PROTECTED]
Subject: Question on MA0C
(Pub/Sub)
Hi
everyone,I
posted a question on MA0C a while back with no response.Can
I have a show of hands of how many have actually installed MA0C and got
it working. We
are having a few teething problems understanding what goes on under the
covers when publishing and subscribing using JMS via the Topic Connection
Factory.RegardsFez
Barnard.


 




Re: Question on MA0C (Pub/Sub)

2003-10-06 Thread Jay H. Lang


I am using it just fine with JMS Pub/Sub on Solaris.  What are your
problems?  I have multiple streams, multiple topics and multiple subscribers.
--
Jay H. Lang
Chief Technologist
Distributed Computing Professionals Inc.
IBM Certified Specialist - WebSphere MQ
303 277-1873 - Office
303 807-9700 - Cell
"Wyatt, T. Rob" wrote:
 Fez,We
have it working outside of JMS in several places.  Within JMS we have
seen problems with duplicate publications and inability to support multiple
subscribers.  We currently are working several ETR's with IBM and
they've sent us some e-fixes.  Unfortunately, the guy on our team
who has been working this is on vacation for the week so I'm unable to
give you a whole lot more detail.  One thing that was passed on to
me was that Dick Hamilton at IBM was working this with us and made comments
to the effect that he was surprised at how little documentation there is
on the JMS implementation of Pub/Sub.  I'll dig around and see if
I can find the ETR numbers for you. --
T.Rob

-Original
Message-
From: Fez [mailto:[EMAIL PROTECTED]]
Sent: Sunday, October 05,
2003 8:20 PM
To: [EMAIL PROTECTED]
Subject: Question on MA0C
(Pub/Sub)
 
Hi
everyone,I
posted a question on MA0C a while back with no response.Can
I have a show of hands of how many have actually installed MA0C and got
it working. We
are having a few teething problems understanding what goes on under the
covers when publishing and subscribing using JMS via the Topic Connection
Factory.RegardsFez
Barnard.


 


Pub/Sub JMS

2003-09-04 Thread Jay H. Lang
Question on Pub/Sub and JMS.  I have a Unix server set-up with the
MQBroker.  I have several applications connecting as MQ Clients using
JMS and subscribing to their respective topics.  Once the Broker
delivers the messages to their topics, does the broker application have
any interaction with the Subscribers?  When they open their subscription
queue, is it just an MQSeries agent delivering their data to them? Or
does each call to TopicSubscriber.receive() go through the Broker?

Thanks.
--
Jay H. Lang
Chief Technologist
Distributed Computing Professionals Inc.
IBM Certified Specialist - MQSeries
303 277-1873 - Office
303 807-9700 - Cell

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive


Re: 2035 Error

2003-08-29 Thread Jay H. Lang
Since you are connecting with a client, what ID do you have in the MCAUSER field
of the SVRCONN channel?  This is the ID MQ will use to check for authority.
--
Jay H. Lang
Chief Technologist
Distributed Computing Professionals Inc.
IBM Certified Specialist - MQSeries
303 277-1873 - Office
303 807-9700 - Cell

"Karthikeyan, T (Karthikeyan)" wrote:

> Hi,
> I'm running MQSeries 5.3 on HP-UX.  I added new user to OS and given "all"
> permission to a particular queue.  I installed MQ 5.2 client in windows 2000
> Pro and trying to connect Queue using Visual basic application.  It is
> giving error message MQRC-NotAuthorized.(2035).  Failing in MQCONNECT.  I
> tried REFRESH SECURITY.  Problem still exists.
>
> In the manual I found that no need to restart the q-manager??.  What could
> be the problem..
>
> Any ideas will be appreciated..
>
> Thanks
> Karthik
>
> **
> This message and any attachments are intended for the
> individual or entity named above. If you are not the intended
> recipient, please do not forward, copy, print, use or disclose this
> communication to others; also please notify the sender by
> replying to this message, and then delete it from your system.
>
> The Timken Company
> **
>
> Instructions for managing your mailing list subscription are provided in
> the Listserv General Users Guide available at http://www.lsoft.com
> Archive: http://vm.akh-wien.ac.at/MQSeries.archive

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive


moving /var/mqq

2003-08-22 Thread Jay H. Lang
Are there any know problems/hazards to setting up a separate /var/mqm
file system after queue manager creation, and moving the files over to
that new mount point.

Thanks.
--
Jay H. Lang
Chief Technologist
Distributed Computing Professionals Inc.
IBM Certified Specialist - MQSeries
303 277-1873 - Office
303 807-9700 - Cell

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive


MQ Broker and multiple streams

2003-08-22 Thread Jay H. Lang
Does anyone have any data on using multiple streams with the MQ Broker
to improve throughput.  Like maximum number of streams before dimished
returns etc.

I am thinking of having 10 different streams in my broker to handle a
weekly surge of data.  I am using the MQ Pub/Sub broker SupportPac on
Solaris.

Thanks for any info.
--
Jay H. Lang
Chief Technologist
Distributed Computing Professionals Inc.
IBM Certified Specialist - MQSeries
303 277-1873 - Office
303 807-9700 - Cell

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive


JMS Pub/Sub using Different Streams

2003-08-21 Thread Jay H. Lang
I have a system currently using the Pub/Sub SupportPac broker.  we send
approx 12 million msg/day to the broker.  My subscribers are using JMS,
Pub/Sub to get the data for their topics.

I now have the need to create different "STREAMS" for the broker to use
to get better thoughput.  I have written a C program that has registered
another stream for the broker to use.  I also have a C program that
publishes on that stream to my topic.

My problem is how does the JMS, Pub/Sub classes tell the broker what
stream it wants its subscription on.  I run the show broker command, and
I see the new stream, but my JMS test program is registered for the
topic in question on the default stream.  I don't see anything in the
JMS classes that I can set to specifiy a different stream.

I am using A TopicConnectionFactory, TopicConnection, TopicSession and a
durable subscriber.

Thanks for any help.
--
Jay H. Lang
Chief Technologist
Distributed Computing Professionals Inc.
IBM Certified Specialist - MQSeries
303 277-1873 - Office
303 807-9700 - Cell

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive


Re: MQGMO-WAITINTERVAL

2003-07-17 Thread Jay H. Lang


S/B 30 seconds.  30 would be 5 minutes.  Value is in milliseconds,
3/1000 = 30 secs.  300,000/1000=300 seconds, 300/60=5 minutes.
--
Jay H. Lang
Chief Technologist
Distributed Computing Professionals Inc.
IBM Certified Specialist - MQSeries
303 277-1873 - Office
303 807-9700 - Cell
 
Dave Adam wrote:
 
what is the breakdown for MQGMO-WAITINTERVAL
does a value of 3 equate to
30 seconds
book implies it is 5 minutes,
but job runs for 35 seconds, with the wait specified at PIC S9(09) BINARY
VALUE 3
Dave Adam
Supervalu Home Office
Project Specialist
(952) 828-4736
[EMAIL PROTECTED]
If one of the engines on a two
engine plane fails
The other engine will always
get you to the site of the crash
--



Re: Timed out messages

2003-07-16 Thread Jay H. Lang
The next good MQGET will cause the messages to be deleted from the queue.  The
depth with show them, but they are not available.
--
Jay H. Lang
Chief Technologist
Distributed Computing Professionals Inc.
IBM Certified Specialist - MQSeries
303 277-1873 - Office
303 807-9700 - Cell

Michelle Russell wrote:

>  OS/390 MQv2.1
>
> I have an application that puts to a reply queue and the messages expire
> after 2mins.  After this time I can no longer browse the message but I can
> see the queue depth remains at 5 for example.
>
> Can anybody point me in the right direction as to what I need to do once
> the messages have expired.
>
> Kind regards
> Michelle
>
> This email and any attachments are confidential. They may
> contain privileged information and are intended for the
> named addressee(s) only. They must not be distributed
> without our consent. If you are not the intended recipient,
> please notify us immediately and do not disclose, distribute
> or retain this email or any part of it. Unless expressly stated,
> opinions in this email are those of the individual sender
> and not N Brown Group plc or any of its subsidiaries.
> You must take full responsibility for virus checking this
> email and any attachments.
>
> Please note that the content of this email or any of its
> attachments may contain data that falls within the scope
> of the Data Protection Acts and that you must ensure that
> any handling or processing of such data by you is fully
> compliant with the terms and provisions of the Data
> Protection Act 1984 and 1998.
>
> N Brown Group plc. Registered office: 53 Dale Street,
> Manchester, M60 6ES. Registered in England No.814103.
>
> Instructions for managing your mailing list subscription are provided in
> the Listserv General Users Guide available at http://www.lsoft.com
> Archive: http://vm.akh-wien.ac.at/MQSeries.archive

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive


MQSI can't find MQ Java classes BIP1361S

2003-07-16 Thread Jay H. Lang
I have just upgraded to MQSeries V5.3 on Windows 2000.  I have also
changed my classpath to point to the new MQSeries java classes that were
installed in C:\Program Files\MQSeries\Java\Lib.  I include all of the
jar files (see below)

C:\Program Files\IBM MQSeries Integrator 2.0.1\Tool>start ..\bin\jre.exe
-cp ".;
..\classes;..\classes\broker.jar;..\classes\config.jar;..\classes\argo.jar;..\cl

asses\xml4j.jar;..\classes\jfaceall.jar;..\classes\swingall.jar;..\classes\jgrap

h.jar;..\classes\webdav.jar;..\lib;..\lib\rt.jar;..\lib\math.jar;..\lib\i18n.jar

;C:\Program Files\MQSeries\Java\Lib\com.ibm.mq.jar;C:\Program
Files\MQSeries\Jav
a\Lib;C:\IBM
Connectors\classes;C:\IBMCON~1\CICS\Classes\CTGCLI~1.JAR;.;C:\SQLLI
B\java\db2java.zip;C:\SQLLIB\java\runtime.zip;C:\PROGRA~1\IBMMQS~1.1\Tool\help;C

:\Program Files\mqseries\java\lib\providerutil.jar;C:\Program
Files\mqseries\jav
a\lib\jndi.jar;C:\Program Files\mqseries\java\lib\ldap.jar;.;c:\Program
Files\Ca
ndle\MQSecure\Java;C:\Program
Files\MQSeries\Java\Lib\com.ibm.mq.jar;C:\Program
Files\MQSeries\Java\Lib;C:\IBM
Connectors\classes;C:\IBMCON~1\CICS\Classes\CTGCL
I~1.JAR;.;C:\SQLLIB\java\db2java.zip;C:\SQLLIB\java\runtime.zip;C:\PROGRA~1\IBMM

QS~1.1\Tool\help;C:\Program
Files\mqseries\java\lib\com.ibm.mqjms.jar;C:\Program
 Files\ibm\Application
Developer\plugins\com.ibm.etools.websphere.runtime\lib\j2
ee.jar;C:\Program Files\MQSeries\java\lib\ldap.jar;C:\MyJava\Oracle
JDBC\classes
12.zip;C:\Program Files\MQSeries\Java\Lib\com.ibm.mqbind.jar;c:\Program
Files\MQ
Series\Java\Lib\connector.jar " -DDebug=2 -mx100M
com.ibm.ivm.mqitool.app.MQIToo
lkit

C:\Program Files\IBM MQSeries Integrator 2.0.1\Tool>goto FINISHED

I have also tried moving the %classpath% to the front of the command and
I still get the BIP1361S error, "Unable to locate MQSeries Java classes"

Anyone else hit this?
--
Jay H. Lang
Chief Technologist
Distributed Computing Professionals Inc.
IBM Certified Specialist - MQSeries
303 277-1873 - Office
303 807-9700 - Cell

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive


Re: PubSub Broker

2003-06-06 Thread Jay H. Lang
I have 10 clients connecting, but each of them are going after a different
subscription.  So I would expect the IPPROCS to show a 1 for 1 relationship.
--
Jay H. Lang
Chief Technologist
Distributed Computing Professionals Inc.
IBM Certified Specialist - MQSeries
303 277-1873 - Office
303 807-9700 - Cell

"David C. Partridge" wrote:

> Maybe I'm being dense, but surely if you have 10 clients connecting and
> reading messages from the same subscription queue, then the IPPROCS on that
> queue will be 10?
>
> David
>
> Instructions for managing your mailing list subscription are provided in
> the Listserv General Users Guide available at http://www.lsoft.com
> Archive: http://vm.akh-wien.ac.at/MQSeries.archive

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive


Re: MQMD

2003-06-05 Thread Jay H. Lang


Use setmqaut  with a param of +setall
--
Jay H. Lang
Chief Technologist
Distributed Computing Professionals Inc.
IBM Certified Specialist - MQSeries
303 277-1873 - Office
303 807-9700 - Cell
Jay Jayatissa wrote:
 
I have setmqaut for this user on the
Queue with the param of +allmqi
is this the command you mean?
 
 




"Robert Broderick" <[EMAIL PROTECTED]>
Sent by: "MQSeries List" <[EMAIL PROTECTED]>
05-Jun-2003 12:27
Please respond to "MQSeries List"
<[EMAIL PROTECTED]>


 
   
To:    MQSERIES
   
cc: 
   
Subject:    Re: MQMD



You need to use the MQSETAUTH
to grant your user the authorazation to
perform this.
 
>From: Jay Jayatissa <[EMAIL PROTECTED]>
>Reply-To: MQSeries List <[EMAIL PROTECTED]>
>To: [EMAIL PROTECTED]
>Subject: Re: MQMD
>Date: Thu, 5 Jun 2003 11:12:23
+0100
>
>I have set MQOO_SET_ALL_CONTEXT
option in the MQOPEN call and
>MQPUT_SET_ALL_CONTEXT in the
MQPUT call but Iam still
>getting "2035" error. The userid
that the application is running under
>does have  authority to
set this option on the queue.
>
>Can anyone help?
>
>Jay
>
>
>
>
>"Bruce Giordano" <[EMAIL PROTECTED]>
>
>Sent by: "MQSeries List" <[EMAIL PROTECTED]>
>04-Jun-2003 16:46
>Please respond to "MQSeries
List" <[EMAIL PROTECTED]>
>
>
>
>
>
To: MQSERIES
>
>
cc:
>
Subject:    Re: MQMD
>
>
>You need to specify the SET_ALL_CONTEXT
option when you open the queue.
>Note that the id this is running
under would also need the authority to
>set
>this option on the queue.
>  
- Bruce Giordano
>
>
>
>  
Jay Jayatissa
>  
<[EMAIL PROTECTED]>  
To:
>[EMAIL PROTECTED]
>  
cc:
>  
Sent by: MQSeries List 
Subject:   MQMD
>  
<[EMAIL PROTECTED]>
>
>
>
>  
Wednesday June 4, 2003 11:18 AM
>  
Please respond to MQSeries List
>
>
>
>
>
>
>Hi all,
>does anyone know how I can
set the Application name in the MQMD header.
>  I have tried setting
it using md.PutApplName = "MyName" but the MQ Client
>always takes the name of the
of where the location of the application is
>and
>overwrites my value. Is there
a flag I need to set as well??
>
>
>  cheers,
>Jay
>(See attached file: C.htm)
>
>
>
>
><< C.htm >>
_
MSN 8 with e-mail virus protection
service: 2 months FREE*
http://join.msn.com/?page=features/virus
Instructions for managing your
mailing list subscription are provided in
the Listserv General Users Guide
available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive
 
 



PubSub Broker

2003-06-05 Thread Jay H. Lang
I am using the Pub/Sub support Pac MA0C on Solaris.  I have my
StreamsPerProcess set to 1 in the qm.ini file.  When I start the broker
and start to publish messages the IPPROCS count on my subscription
queues is zero, no problem.  When my JMS clients connect using the MQ
Client libraries, I can see the SVRCONN channels start, still no
problem.  Each subscription has one JMS message handler processing a
single subscription.  Now my IPPROCS counts on the subscription queues
vary from 3 to 5, 7, 8 all of the way up to 10 IPPROCS.  My application
folks tell me that they only have one connection open per sub/queue.
How can the count be > 1.  I am trying to explain this behavior.  I am
using MQ V5.2 so I can't use the QSTATUS to see the processes that have
the queue open.  I do have 10 SVRCONN channels active, one for each
subscription.

Are these controlled by the StreamsPerProcess?  I have changed the
default from 10 to 1 and I still see the same behavior.

Can someone shed some light.
--
Jay H. Lang
Chief Technologist
Distributed Computing Professionals Inc.
IBM Certified Specialist - MQSeries
303 277-1873 - Office
303 807-9700 - Cell

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive


Re: MQMD

2003-06-05 Thread Jay H. Lang


Hi Jay,
I think you need to open the queue with MQOO_SET_IDENTITY_CONTEXT.
--
Jay H. Lang
Chief Technologist
Distributed Computing Professionals Inc.
IBM Certified Specialist - MQSeries
303 277-1873 - Office
303 807-9700 - Cell
Jay Jayatissa wrote:
 
Hi all,
does anyone know how I can set the
Application name in the MQMD header.
 I have tried setting it using
md.PutApplName = "MyName" but the MQ Client
always takes the name of the of where
the location of the application is and
overwrites my value. Is there a flag
I need to set as well??
 
cheers,
Jay



PL/SQL and MQ Pub/Sub

2003-03-25 Thread Jay H. Lang
Has anyone sent a message to MQSeries Pub/Sub broker from PL/SQL.  I am
getting a data conversion error. Here is my code:

You will see that I am building a section called mqPubHeader that is the
first part of the message data.  It doesn't seem to like a hex to raw
conversion.

ORA-06502: PL/SQL: numeric or value error: hex to raw conversion error

Thanks for any help.

SET SERVEROUTPUT ON

DECLARE

objdesc  PGM8.MQOD;
msgDesc  PGM8.MQMD;
putOptions   PGM8.MQPMO;
objectHandle binary_integer;
message  VARCHAR2(255);
rawMessage   raw(100);
sendMsg  raw(255);
mqodRaw  PGM8.MQODRAW;
mqmdRaw  PGM8.MQMDRAW;
mqpmoRaw PGM8.MQPMORAW;
mqgmoRaw PGM8.MQGMORAW;
-- These are for the MQRFH Publish header
--  mqPubHeader  char(85);
mqPubHeader  raw(85);
rfhIDchar(4);
rfhVersion   binary_integer;
rfhLengthbinary_integer;
rfhEncoding  raw(4);
rfhCCSID binary_integer;
rfhFormatchar(8);
rfhFlags binary_integer;
-- end of the MQRFH Publish header

-- Now the actual Publish Name/Value Strings
pubCommand   char(20);
pubOptions   char(18);
pubTopic char(15);
-- End of the Name/Value Strings

BEGIN
-- Populate the Publish Header
rfhID := 'RFH ';
rfhVersion := 1;
rfhLength := 85;
rfhEncoding := PGM_SUP.MQENC_NATIVE;
rfhCCSID := PGM_SUP.MQCCSI_DEFAULT;
rfhFormat := '';
rfhFlags := 0;

-- Populate the Name/Value Strings
pubCommand := ' MQPSCommand Publish';
pubOptions := ' MQPSPubOpts NoReg';
pubTopic := ' MQPSTopic TACS';

mqPubHeader := rfhID||rfhVersion||rfhLength||rfhEncoding||rfhCCSID||


rfhFormat||rfhFlags||pubCommand||pubOptions||pubTopic;


-- Open the queue 'YOUR_QUEUE_NAME' for sending.

--  objdesc.objectname := 'SYSTEM.BROKER.DEFAULT.STREAM';
objdesc.objectname := 'TEST.PLSQL.PUB';

-- Convert PGM8.MQMD to RAW

mqodRaw := PGM_UTL8.TO_RAW(objdesc);

[EMAIL PROTECTED](mqodRaw, PGM_SUP.MQOO_OUTPUT, objectHandle);

-- Convert RAW to PGM8.MQMD

objdesc := PGM_UTL8.RAW_TO_MQOD(mqodRaw);
-- Put the message buffer on the queue.

--  message := mqPubHeader||'Here is the message';
message := 'Here is the message';
rawMessage := UTL_RAW.CAST_TO_RAW(message);

sendMsg := mqPubHeader||rawMessage;
-- Convert PGM8.MQMD and PGM8.MQGMO to RAW
mqmdRaw := PGM_UTL8.TO_RAW(msgDesc);
mqpmoRaw := PGM_UTL8.TO_RAW(putOptions);

[EMAIL PROTECTED](objectHandle, mqmdRaw, mqpmoRaw, sendMsg);

-- Print the message we are putting on the queue

-- Close the queue again.

COMMIT;

[EMAIL PROTECTED](objectHandle, PGM_SUP.MQCO_NONE);
EXCEPTION

-- something else went wrong.. tell the user.

WHEN OTHERS THEN
DBMS_OUTPUT.PUT_LINE('Error: Procedural Gateway for IBM MQSeries
verific
ation script failed.');
    DBMS_OUTPUT.PUT_LINE(SQLERRM);
[EMAIL PROTECTED](objectHandle, PGM_SUP.MQCO_NONE);

END;
/

--
Jay H. Lang
Chief Technologist
Distributed Computing Professionals Inc.
IBM Certified Specialist - MQSeries
303 277-1873 - Office
303 807-9700 - Cell

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive


JMS and MQSeries

2003-02-06 Thread Jay H. Lang
Hi List it has been some time since I have written,
I am just getting started with JMS and am having trouble.  I have a
sending application written in C that is sending plain text messages.  I
have a receiving application written usung JMS to get and process the
messages.  I am having trouble getting the messages.

Some of the errors:
Sending program was using MQ Java classes:

Caught exception: java.lang.ClassCastException:
com.ibm.jms.JMSBytesMessage


Reply message was not a TextMessage
caught JMSException: javax.jms.JMSException: Retrieved the wrong type of
message

Sending program was a C program:


caught JMSException: javax.jms.MessageFormatException: MQJMS1046: The
character
set 437 is not supported
linked exception: java.io.UnsupportedEncodingException: Cp437

I can't imagine that a JMS consumer of a message has to have the message
produced by a JMS program.  Seems to constrictive.

Thanks for any help provided.
--
Jay H. Lang
Chief Technologist
Distributed Computing Professionals Inc.
IBM Certified Specialist - MQSeries
303 277-1873 - Office
303 807-9700 - Cell

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive



Client Attach FMID

2002-05-06 Thread Jay H. Lang

Anyone know the FMID ID for the Client Attach Facility for zos, MQ 2.1.

Thanks.
--
Jay H. Lang
Chief Technologist
Distributed Computing Professionals Inc.
IBM Certified Specialist - MQSeries
303 277-1873 - Office
303 807-9700 - Cell

Instructions for managing your mailing list subscription are provided in
the Listserv General Users Guide available at http://www.lsoft.com
Archive: http://vm.akh-wien.ac.at/MQSeries.archive