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 » write JSP/Servlet to drop jms message to local queue

Post new topic  Reply to topic
 write JSP/Servlet to drop jms message to local queue « View previous topic :: View next topic » 
Author Message
bamboozled_by_MQ
PostPosted: Tue Sep 21, 2004 11:15 am    Post subject: write JSP/Servlet to drop jms message to local queue Reply with quote

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
View user's profile Send private message
vennela
PostPosted: Tue Sep 21, 2004 1:51 pm    Post subject: Reply with quote

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
View user's profile Send private message Send e-mail Visit poster's website
jefflowrey
PostPosted: Tue Sep 21, 2004 2:27 pm    Post subject: Reply with quote

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
View user's profile Send private message
Display posts from previous:   
Post new topic  Reply to topic Page 1 of 1

MQSeries.net Forum Index » IBM MQ Java / JMS » write JSP/Servlet to drop jms message to local queue
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.