Discussion:
How to deploy MQe on iSeries
(too old to reply)
Tony Garrard
2005-03-08 11:07:24 UTC
Permalink
Hi Saurabh,

Can you ensure that you are not using the trial version of MQe, ES06
can't be installed using this version.

As to sending messages to the clients/devices, it depends on if you want
to push the messages to the clients or get the clients to pull messages
from the server. If the devices are midp you will have to use pull. This
is because MQe on midp does not support serversockets. If you are using
a version of java that supports serversockets, you can create Listeners
on the devices and push the messages to them. The documentation for MQe
has been updated and is available as an eclipse plugin or independent
using infocenter. The link is :

http://www.elink.ibmlink.ibm.com/public/applications/publications/cgibin/pbi.cgi?CTY=US&FNC=SRX&PBL=SC34-6609-00

Regards

Tony
I have got the MQe working on the iseries and configured the remote queues
from the client to send messages to the iseries server, I tried to install
the ES06 server support for various tools, It says that i haven't installed
the MQe2.0 which is a prereequisite, i already have it installed, is there a
place the Installer is searching for the MQe 2.0 , the documents are crap
and old and there is no start.jar file, there is only a setup.exe which
tries to install the MQe support ES06
My question is I have my devices say A B C and i want my devices and Server
(iseries) to exchange messages both ways, iseries->A, B, C and vice versa,
to send messages from A, B , C i already have a remote queue to which all
devices put a message, for the communication to work the other way , do i
need to make every device A, B , C a server and iseries as the client or
could i use the same Queue to send messages back and forth??? Replys
appreciated.
Saurabh
Hello , does any one know how do deploy MQe server on iseries (AS400)
I have a MQe client running on my XP (Pc) and i need to configure
Asynchronous remote queues on the AS400 and ansynchrounously deliver
messages to the remote queue.Any help or documentation would be very very
helpful, thanks , Saurabh
saurabh
2005-03-08 18:45:40 UTC
Permalink
Thanks for your Reply Tony,

I was looking at the home server Q concept to pull messages from the server,
My devices are POS terminals running XP, I was trying to configure the Home
server queue on one of the devices (a POS till) and it did not work for me,
is there any documentation or a working example of the home server Queue ?
that would really be helpful.

i am also not sure if i should use push or pull, as my device is a full
fledged implementation i have no limitation of using java classes, Also if i
have till
A B C which get added to a Store is there a way to dynamically configure the
till
for a Push mechanism from the server, everythime a new till device is
commisioned
there needs to be change in the Configuration of connection to look at the
correct IP
address, Also is a a good idea to pull rather than push messages from the
server, Also is a good idea to make each device a Server and a Client for
distributed solutions.?

cheers,
Saurabh
Post by Tony Garrard
Hi Saurabh,
Can you ensure that you are not using the trial version of MQe, ES06
can't be installed using this version.
As to sending messages to the clients/devices, it depends on if you want
to push the messages to the clients or get the clients to pull messages
from the server. If the devices are midp you will have to use pull. This
is because MQe on midp does not support serversockets. If you are using
a version of java that supports serversockets, you can create Listeners
on the devices and push the messages to them. The documentation for MQe
has been updated and is available as an eclipse plugin or independent
http://www.elink.ibmlink.ibm.com/public/applications/publications/cgibin/pbi
.cgi?CTY=US&FNC=SRX&PBL=SC34-6609-00
Post by Tony Garrard
Regards
Tony
I have got the MQe working on the iseries and configured the remote queues
from the client to send messages to the iseries server, I tried to install
the ES06 server support for various tools, It says that i haven't installed
the MQe2.0 which is a prereequisite, i already have it installed, is there a
place the Installer is searching for the MQe 2.0 , the documents are crap
and old and there is no start.jar file, there is only a setup.exe which
tries to install the MQe support ES06
My question is I have my devices say A B C and i want my devices and Server
(iseries) to exchange messages both ways, iseries->A, B, C and vice versa,
to send messages from A, B , C i already have a remote queue to which all
devices put a message, for the communication to work the other way , do i
need to make every device A, B , C a server and iseries as the client or
could i use the same Queue to send messages back and forth??? Replys
appreciated.
Saurabh
Hello , does any one know how do deploy MQe server on iseries (AS400)
I have a MQe client running on my XP (Pc) and i need to configure
Asynchronous remote queues on the AS400 and ansynchrounously deliver
messages to the remote queue.Any help or documentation would be very very
helpful, thanks , Saurabh
Tony Garrard
2005-03-10 15:35:29 UTC
Permalink
Hi Saurabh,

How are you planning to configure the MQe QM's ? Are you planning to do
these programatically or use MQeScript ?

MQeScript is part of ES06, part of the documentation walks you through
an example that does exactly that.

If programmatically, I can point you to the
examples.midp.exampleapp.messageservice.MQeMessageService

This shows you how to create the resources you need for your client/server.

As to whether it is better to push/pull, unfortunately that is down to
the requiremnts you need for your application, the number of clients you
require e.t.c, though pushing the message will most likely use up more
resources on the server, but we have no definitive figures for this.

For either pull or push, you will be able to remotely configure the
required resources on your server QM e.g. adding the clientQM to the
list of destinations on the Server's StoreAndForwardQueue or creating
the connection definitions on the server to reach the remote Client.

Regards

Tony
Post by saurabh
Thanks for your Reply Tony,
I was looking at the home server Q concept to pull messages from the server,
My devices are POS terminals running XP, I was trying to configure the Home
server queue on one of the devices (a POS till) and it did not work for me,
is there any documentation or a working example of the home server Queue ?
that would really be helpful.
i am also not sure if i should use push or pull, as my device is a full
fledged implementation i have no limitation of using java classes, Also if i
have till
A B C which get added to a Store is there a way to dynamically configure the
till
for a Push mechanism from the server, everythime a new till device is
commisioned
there needs to be change in the Configuration of connection to look at the
correct IP
address, Also is a a good idea to pull rather than push messages from the
server, Also is a good idea to make each device a Server and a Client for
distributed solutions.?
cheers,
Saurabh
Post by Tony Garrard
Hi Saurabh,
Can you ensure that you are not using the trial version of MQe, ES06
can't be installed using this version.
As to sending messages to the clients/devices, it depends on if you want
to push the messages to the clients or get the clients to pull messages
from the server. If the devices are midp you will have to use pull. This
is because MQe on midp does not support serversockets. If you are using
a version of java that supports serversockets, you can create Listeners
on the devices and push the messages to them. The documentation for MQe
has been updated and is available as an eclipse plugin or independent
http://www.elink.ibmlink.ibm.com/public/applications/publications/cgibin/pbi
.cgi?CTY=US&FNC=SRX&PBL=SC34-6609-00
Post by Tony Garrard
Regards
Tony
I have got the MQe working on the iseries and configured the remote
queues
Post by Tony Garrard
from the client to send messages to the iseries server, I tried to
install
Post by Tony Garrard
the ES06 server support for various tools, It says that i haven't
installed
Post by Tony Garrard
the MQe2.0 which is a prereequisite, i already have it installed, is
there a
Post by Tony Garrard
place the Installer is searching for the MQe 2.0 , the documents are
crap
Post by Tony Garrard
and old and there is no start.jar file, there is only a setup.exe which
tries to install the MQe support ES06
My question is I have my devices say A B C and i want my devices and
Server
Post by Tony Garrard
(iseries) to exchange messages both ways, iseries->A, B, C and vice
versa,
Post by Tony Garrard
to send messages from A, B , C i already have a remote queue to which
all
Post by Tony Garrard
devices put a message, for the communication to work the other way , do
i
Post by Tony Garrard
need to make every device A, B , C a server and iseries as the client or
could i use the same Queue to send messages back and forth??? Replys
appreciated.
Saurabh
Hello , does any one know how do deploy MQe server on iseries (AS400)
I have a MQe client running on my XP (Pc) and i need to configure
Asynchronous remote queues on the AS400 and ansynchrounously deliver
messages to the remote queue.Any help or documentation would be very
very
Post by Tony Garrard
helpful, thanks , Saurabh
saurabh
2005-03-10 16:43:58 UTC
Permalink
Hi Tony,

thanks, I am using the MQeMessageService class which configures all the
resources for you
I have used the above to configure a remote Q definition on my client for
the server running on
the iseries, I have QM_PumpServer and queue REQUESTQUEUE on the iseries and
in my
remote queue definition on the client i have QM_PumpServer and REQUESTQUEUE
configured
in async mode, when my client sends a message to QM_PumpServer ,queue
REQUESTQUEUE
it is automatically delivered to the iseries where a receiver server program
updates it into the DB2

Now i want to be able to communicate the other way as well hence i have
configured a store and forward
queue StoreAndForwardQ on QM_PumpServer on the iseries, i am able to send
messages to this
queue, the destination QM for this Q is QM_S_Bhola , this is also my local
qmanager for the till
I have a Home server Queue (StoreAndForwardQ , same name as store and
forward Q) configured
on the local QM (QM_S_Bhola)

Now i want to retrieve the messages using the PULL from the
(StoreAndForwardQ) wht do i need to do
Do i need to configure a connection? I assume that the above connection for
the remoteq definition
should work or do i need to configure a new connection? Do you have any
example code to show
how the PULL works ?

thanks
Saurabh
Post by Tony Garrard
Hi Saurabh,
How are you planning to configure the MQe QM's ? Are you planning to do
these programatically or use MQeScript ?
MQeScript is part of ES06, part of the documentation walks you through
an example that does exactly that.
If programmatically, I can point you to the
examples.midp.exampleapp.messageservice.MQeMessageService
This shows you how to create the resources you need for your
client/server.
Post by Tony Garrard
As to whether it is better to push/pull, unfortunately that is down to
the requiremnts you need for your application, the number of clients you
require e.t.c, though pushing the message will most likely use up more
resources on the server, but we have no definitive figures for this.
For either pull or push, you will be able to remotely configure the
required resources on your server QM e.g. adding the clientQM to the
list of destinations on the Server's StoreAndForwardQueue or creating
the connection definitions on the server to reach the remote Client.
Regards
Tony
Post by saurabh
Thanks for your Reply Tony,
I was looking at the home server Q concept to pull messages from the server,
My devices are POS terminals running XP, I was trying to configure the Home
server queue on one of the devices (a POS till) and it did not work for me,
is there any documentation or a working example of the home server Queue ?
that would really be helpful.
i am also not sure if i should use push or pull, as my device is a full
fledged implementation i have no limitation of using java classes, Also if i
have till
A B C which get added to a Store is there a way to dynamically configure the
till
for a Push mechanism from the server, everythime a new till device is
commisioned
there needs to be change in the Configuration of connection to look at the
correct IP
address, Also is a a good idea to pull rather than push messages from the
server, Also is a good idea to make each device a Server and a Client for
distributed solutions.?
cheers,
Saurabh
Post by Tony Garrard
Hi Saurabh,
Can you ensure that you are not using the trial version of MQe, ES06
can't be installed using this version.
As to sending messages to the clients/devices, it depends on if you want
to push the messages to the clients or get the clients to pull messages
from the server. If the devices are midp you will have to use pull. This
is because MQe on midp does not support serversockets. If you are using
a version of java that supports serversockets, you can create Listeners
on the devices and push the messages to them. The documentation for MQe
has been updated and is available as an eclipse plugin or independent
http://www.elink.ibmlink.ibm.com/public/applications/publications/cgibin/pbi
Post by Tony Garrard
Post by saurabh
.cgi?CTY=US&FNC=SRX&PBL=SC34-6609-00
Post by Tony Garrard
Regards
Tony
I have got the MQe working on the iseries and configured the remote
queues
Post by Tony Garrard
from the client to send messages to the iseries server, I tried to
install
Post by Tony Garrard
the ES06 server support for various tools, It says that i haven't
installed
Post by Tony Garrard
the MQe2.0 which is a prereequisite, i already have it installed, is
there a
Post by Tony Garrard
place the Installer is searching for the MQe 2.0 , the documents are
crap
Post by Tony Garrard
and old and there is no start.jar file, there is only a setup.exe which
tries to install the MQe support ES06
My question is I have my devices say A B C and i want my devices and
Server
Post by Tony Garrard
(iseries) to exchange messages both ways, iseries->A, B, C and vice
versa,
Post by Tony Garrard
to send messages from A, B , C i already have a remote queue to which
all
Post by Tony Garrard
devices put a message, for the communication to work the other way , do
i
Post by Tony Garrard
need to make every device A, B , C a server and iseries as the client or
could i use the same Queue to send messages back and forth??? Replys
appreciated.
Saurabh
Hello , does any one know how do deploy MQe server on iseries (AS400)
I have a MQe client running on my XP (Pc) and i need to configure
Asynchronous remote queues on the AS400 and ansynchrounously deliver
messages to the remote queue.Any help or documentation would be very
very
Post by Tony Garrard
helpful, thanks , Saurabh
Tony Garrard
2005-03-11 13:47:56 UTC
Permalink
Hi saurabh,

The homeserver Q will attempt to pull messages from the remote QM
whenever a call to MQeQueueManager.triggerTransmit is made. You can
either call this directly or it get's called when a messge is put onto a
remote Q.

examples.rules.ExampleQueueManagerRules shows an example where you use a
thread to call trigTransmit repeatedly every 15s. Note you should not
call triggerTransmit too often as it will hog resources on the server QM.

If this doesn't work check that the creation of the HomeServerQueue was
done successfully, the method call is quite misleading. You need to call

createHomeServerQueue(localQMName, remoteQMName, SFQ Name, 0)

n.b. poll time can be used to call triggerTransmit, but we recommend
using a thread external to MQe to call triggerTransmit.

Regards

Tony
Post by saurabh
Hi Tony,
thanks, I am using the MQeMessageService class which configures all the
resources for you
I have used the above to configure a remote Q definition on my client for
the server running on
the iseries, I have QM_PumpServer and queue REQUESTQUEUE on the iseries and
in my
remote queue definition on the client i have QM_PumpServer and REQUESTQUEUE
configured
in async mode, when my client sends a message to QM_PumpServer ,queue
REQUESTQUEUE
it is automatically delivered to the iseries where a receiver server program
updates it into the DB2
Now i want to be able to communicate the other way as well hence i have
configured a store and forward
queue StoreAndForwardQ on QM_PumpServer on the iseries, i am able to send
messages to this
queue, the destination QM for this Q is QM_S_Bhola , this is also my local
qmanager for the till
I have a Home server Queue (StoreAndForwardQ , same name as store and
forward Q) configured
on the local QM (QM_S_Bhola)
Now i want to retrieve the messages using the PULL from the
(StoreAndForwardQ) wht do i need to do
Do i need to configure a connection? I assume that the above connection for
the remoteq definition
should work or do i need to configure a new connection? Do you have any
example code to show
how the PULL works ?
thanks
Saurabh
Post by Tony Garrard
Hi Saurabh,
How are you planning to configure the MQe QM's ? Are you planning to do
these programatically or use MQeScript ?
MQeScript is part of ES06, part of the documentation walks you through
an example that does exactly that.
If programmatically, I can point you to the
examples.midp.exampleapp.messageservice.MQeMessageService
This shows you how to create the resources you need for your
client/server.
Post by Tony Garrard
As to whether it is better to push/pull, unfortunately that is down to
the requiremnts you need for your application, the number of clients you
require e.t.c, though pushing the message will most likely use up more
resources on the server, but we have no definitive figures for this.
For either pull or push, you will be able to remotely configure the
required resources on your server QM e.g. adding the clientQM to the
list of destinations on the Server's StoreAndForwardQueue or creating
the connection definitions on the server to reach the remote Client.
Regards
Tony
Post by saurabh
Thanks for your Reply Tony,
I was looking at the home server Q concept to pull messages from the
server,
Post by Tony Garrard
Post by saurabh
My devices are POS terminals running XP, I was trying to configure the
Home
Post by Tony Garrard
Post by saurabh
server queue on one of the devices (a POS till) and it did not work for
me,
Post by Tony Garrard
Post by saurabh
is there any documentation or a working example of the home server Queue
?
Post by Tony Garrard
Post by saurabh
that would really be helpful.
i am also not sure if i should use push or pull, as my device is a full
fledged implementation i have no limitation of using java classes, Also
if i
Post by Tony Garrard
Post by saurabh
have till
A B C which get added to a Store is there a way to dynamically configure
the
Post by Tony Garrard
Post by saurabh
till
for a Push mechanism from the server, everythime a new till device is
commisioned
there needs to be change in the Configuration of connection to look at
the
Post by Tony Garrard
Post by saurabh
correct IP
address, Also is a a good idea to pull rather than push messages from
the
Post by Tony Garrard
Post by saurabh
server, Also is a good idea to make each device a Server and a Client
for
Post by Tony Garrard
Post by saurabh
distributed solutions.?
cheers,
Saurabh
Post by Tony Garrard
Hi Saurabh,
Can you ensure that you are not using the trial version of MQe, ES06
can't be installed using this version.
As to sending messages to the clients/devices, it depends on if you want
to push the messages to the clients or get the clients to pull messages
from the server. If the devices are midp you will have to use pull. This
is because MQe on midp does not support serversockets. If you are using
a version of java that supports serversockets, you can create Listeners
on the devices and push the messages to them. The documentation for MQe
has been updated and is available as an eclipse plugin or independent
http://www.elink.ibmlink.ibm.com/public/applications/publications/cgibin/pbi
Post by Tony Garrard
Post by saurabh
.cgi?CTY=US&FNC=SRX&PBL=SC34-6609-00
Post by Tony Garrard
Regards
Tony
I have got the MQe working on the iseries and configured the remote
queues
Post by Tony Garrard
from the client to send messages to the iseries server, I tried to
install
Post by Tony Garrard
the ES06 server support for various tools, It says that i haven't
installed
Post by Tony Garrard
the MQe2.0 which is a prereequisite, i already have it installed, is
there a
Post by Tony Garrard
place the Installer is searching for the MQe 2.0 , the documents are
crap
Post by Tony Garrard
and old and there is no start.jar file, there is only a setup.exe which
tries to install the MQe support ES06
My question is I have my devices say A B C and i want my devices and
Server
Post by Tony Garrard
(iseries) to exchange messages both ways, iseries->A, B, C and vice
versa,
Post by Tony Garrard
to send messages from A, B , C i already have a remote queue to which
all
Post by Tony Garrard
devices put a message, for the communication to work the other way , do
i
Post by Tony Garrard
need to make every device A, B , C a server and iseries as the client
or
Post by Tony Garrard
Post by saurabh
Post by Tony Garrard
could i use the same Queue to send messages back and forth??? Replys
appreciated.
Saurabh
Hello , does any one know how do deploy MQe server on iseries (AS400)
I have a MQe client running on my XP (Pc) and i need to configure
Asynchronous remote queues on the AS400 and ansynchrounously deliver
messages to the remote queue.Any help or documentation would be very
very
Post by Tony Garrard
helpful, thanks , Saurabh
Loading...