Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Sending request over TCP/IP to Websphere(URGENT)

 
Gaurav Jain
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I have an application sitting on a different box ehich sends encrypted XML requests over TCP/IP.
My application is hosted on Websphere application server on a different box.
How do i receive these encrypted XML based requests.
Does Websphere supports TCP/IP based listeners?
How do i go about this??
 
Rufus BugleWeed
Ranch Hand
Posts: 1551
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
When you get the message what are you supposed to do?
 
Gaurav Jain
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Once i get this XML request i am supposed to parse it, put it in a specific format and pass it to another application sitting on another box over TCP/IP.
 
Scott Duncan
Ranch Hand
Posts: 365
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sounds like something a Web Service should be handling.
 
Gaurav Jain
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can somebody post a definite reply on how to achieve this??
 
Gaurav Jain
Ranch Hand
Posts: 108
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by William Duncan:
Sounds like something a Web Service should be handling.

Can you please elaborate on this possible solution?
 
Rufus BugleWeed
Ranch Hand
Posts: 1551
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
IIRC web services are run under HTTP. We don't know that the protocol of your messages are HTTP.
If it were me, I would explore subclassing javax.servlet.GenericServlet. I would search the JR servlets forum for any posts with GenericServlet. There are 40 of them. Happy reading!
I don't believe your messages are going to look like messages from a JMS provider which could be processes by MDBs.
HTH
 
Kyle Brown
author
Ranch Hand
Posts: 3892
5
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Rufus has given some good advice about what to do with TCP/IP, but I would STRONGLY suggest that you look into Web Services instead. Go over to the Web Services forum here on Javaranch and poke around for information. This is a STANDARD way of doing XML messaging over HTTP supported by dozens of languages and vendors.
Kyle
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic