File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Websphere and the fly likes Sending request over TCP/IP to Websphere(URGENT) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Products » Websphere
Bookmark "Sending request over TCP/IP to Websphere(URGENT) " Watch "Sending request over TCP/IP to Websphere(URGENT) " New topic
Author

Sending request over TCP/IP to Websphere(URGENT)

Gaurav Jain
Ranch Hand

Joined: Mar 11, 2004
Posts: 108
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

Joined: Feb 22, 2002
Posts: 1551
When you get the message what are you supposed to do?
Gaurav Jain
Ranch Hand

Joined: Mar 11, 2004
Posts: 108
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

Joined: Nov 01, 2002
Posts: 363
Sounds like something a Web Service should be handling.


No more rhymes! I mean it!<br /> <br />Does anybody want a peanut?
Gaurav Jain
Ranch Hand

Joined: Mar 11, 2004
Posts: 108
Can somebody post a definite reply on how to achieve this??
Gaurav Jain
Ranch Hand

Joined: Mar 11, 2004
Posts: 108
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

Joined: Feb 22, 2002
Posts: 1551
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

Joined: Aug 10, 2001
Posts: 3892
    
    5
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


Kyle Brown, Author of Persistence in the Enterprise and Enterprise Java Programming with IBM Websphere, 2nd Edition
See my homepage at http://www.kyle-brown.com/ for other WebSphere information.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Sending request over TCP/IP to Websphere(URGENT)