ASG
IBM
Zystems
Cressida
Icon
Netflexity
 
  MQSeries.net
Search  Search       Tech Exchange      Education      Certifications      Library      Info Center      SupportPacs      LinkedIn  Search  Search                                                                   FAQ  FAQ   Usergroups  Usergroups
 
Register  ::  Log in Log in to check your private messages
 
RSS Feed - WebSphere MQ Support RSS Feed - Message Broker Support

MQSeries.net Forum Index » IBM MQ Java / JMS » Using services in not sherable mode

Post new topic  Reply to topic
 Using services in not sherable mode « View previous topic :: View next topic » 
Author Message
pigicam
PostPosted: Tue Feb 28, 2006 4:09 am    Post subject: Using services in not sherable mode Reply with quote

Newbie

Joined: 28 Feb 2006
Posts: 3
Location: Rome, Italy

I configured some services in WAS 6.0.
All worked well untill the queue was set:

DEFSOPT (not exlusive)
SHARED.

Unfortunately in the production environment I must keep the queue:
DEFSOPT (exlusive)
NOT SHARED.

But now the onMessage does not work.

From client side we have no problems, but from the server side (MQ log error) i have this message:

02/27/2006 02:36:12 PM - Process(15816.49) User(mqm) Program(amqrmppa)
AMQ9208: Error on receive from host 10 (10.158.31.161).

EXPLANATION:
An error occurred receiving data from 10 (10.158.31.161) over TCP/IP. This may
be due to a communications failure.
ACTION:
The return code from the TCP/IP (read) call was 104 (X'68'). Record these
values and tell the systems administrator.

Does anybody know what should I do?

Tnx in advance for your replay.

Bye
Pierluigi
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Tue Feb 28, 2006 7:28 pm    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Remember that an MDB has usually 2 processes on the queue. One doing browse to see if there is any message and one doing the get.

Now you have a problem.... You cannot define the default open as exclusive...

Was this an attempt to limit the number of MDB instances to 1 despite the WAS config ?

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
pigicam
PostPosted: Wed Mar 01, 2006 1:45 am    Post subject: Reply with quote

Newbie

Joined: 28 Feb 2006
Posts: 3
Location: Rome, Italy

Mamma mia!!!! Maybe I'm in trouble.

Using the mq trigger to get message from the queue coud it be a walkaround ?

If this is a possible way out, do you happen to know how to do this in java?

Tnx a lot

Pierluigi
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Mar 01, 2006 3:35 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

It is quite easy but maybe not the prefered / needed way.
Can you describe in more detail what you want to do?

Unless there is a good business reason to force the queue into exclusive mode, you really should keep it shared as well as the defopen...

Have fun
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
pigicam
PostPosted: Wed Mar 01, 2006 5:43 am    Post subject: Reply with quote

Newbie

Joined: 28 Feb 2006
Posts: 3
Location: Rome, Italy

At present for business rules I must garantee that only one application at time is connected to the queue and that only one message is being processed at time as well.
Can I achieve this goal in any other way?
Such as setting "Maximum sessions" at 1 or/and some other settings?
And what about using "Service integration"? Does it make any difference from jms?
I have little experience on those.

Thanks you a lot for reply.

Pierluigi
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Wed Mar 01, 2006 11:54 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Looking at JMS ---

To guarantee only one application -- Do only give out access rights to said application.

To guarantee only one message being processed at a time... that is more or less a given with the std MDB setting. Now the question is really a little bit different: does one message at a time mean FIFO serial processing or does it just mean one message per LUW (parallel processing allowed)?

You can ensure both by setting the right config on the MDB.

1 msg per LUW is the default on the MDB
Serial processing is ensured by setting the maxinstances (sessions) to 1 on the MDB.

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
rpera
PostPosted: Fri Mar 03, 2006 4:42 am    Post subject: Reply with quote

Newbie

Joined: 03 Mar 2006
Posts: 1

Hi everybody

sorry to butt in, but I found this thread very intersting, as I have the same problem, God knows why users are so concerned in setting the parameter into "shared", anyway, I'm not sure I thoroughly understand when Mr Spider Man says "Do only give out access rights to said application", is it something that one can set on the MQ side or WAS side ?


thanks for your reply

Roberto
Back to top
View user's profile Send private message
fjb_saper
PostPosted: Fri Mar 03, 2006 4:46 am    Post subject: Reply with quote

Grand High Poobah

Joined: 18 Nov 2003
Posts: 20756
Location: LI,NY

Roberto

Give MQ rights at group level using setmqaut to said queue. Have the WAS User passed for authentication be in the right group.

Enjoy
_________________
MQ & Broker admin
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » Using services in not sherable mode
Jump to:  



You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
Protected by Anti-Spam ACP
 
 


Theme by Dustin Baccetti
Powered by phpBB © 2001, 2002 phpBB Group

Copyright © MQSeries.net. All rights reserved.