|
RSS Feed - WebSphere MQ Support
|
RSS Feed - Message Broker Support
|
 |
|
write JSP/Servlet to drop jms message to local queue |
« View previous topic :: View next topic » |
Author |
Message
|
bamboozled_by_MQ |
Posted: Tue Sep 21, 2004 11:15 am Post subject: write JSP/Servlet to drop jms message to local queue |
|
|
Voyager
Joined: 07 Jan 2004 Posts: 75
|
I went through LUNARPAGES web hosting. it has jsp/servlets capability. I would like to ask, is it possible for me to write some JSP or Servlet that can send JMS message to my home computer that is running WSMQ 5.3 server(with jms options enable) ? or am i wasting my time?
for example, I have a qmgr QM1 and a queue Q1. I want to have a jsp or Servlet that can take in a line of text create a JMS message and send it down to my computer and out on the Q1. I eventually want to set up a message driven bean that grabs the messages.
I know lunar pages has jsp/servlet capabilities but not completely a J2EE, it is using resin.
thank you. |
|
Back to top |
|
 |
vennela |
Posted: Tue Sep 21, 2004 1:51 pm Post subject: |
|
|
 Jedi Knight
Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India
|
You can do that
If your Appserver can see the MQ java classes (I mean if the Appserver's classpath is set to have mq java libraries) then you can write a JSP to put/get messages. |
|
Back to top |
|
 |
jefflowrey |
Posted: Tue Sep 21, 2004 2:27 pm Post subject: |
|
|
Grand Poobah
Joined: 16 Oct 2002 Posts: 19981
|
As vennela said, you can do this. You can also put the mq jar files in your EAR when building your app, so you don't have to worry about the app server class path.
But you'll have to build your own connections, likely, as I doubt they'll let you create QCFs or other JNDI objects.
Also, you should really really really use SSL in this situation, as you'll be sending information from a machine at one place on the internet (the webserver/appserver at your hosting site) to your home machine at another place on the internet. A client SSL certificate is the only thing that will provide you the necessary security to ensure that only your hosting machine can connect to your MQ Server. _________________ I am *not* the model of the modern major general. |
|
Back to top |
|
 |
|
|
 |
|
Page 1 of 1 |
|
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
|
|
|
|