my dog learned polymorphism*
The moose likes EJB and other Java EE Technologies and the fly likes Best way to use sockets in JBoss or WebLogic? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Best way to use sockets in JBoss or WebLogic?" Watch "Best way to use sockets in JBoss or WebLogic?" New topic
Author

Best way to use sockets in JBoss or WebLogic?

Chris Johnston
Ranch Hand

Joined: Dec 13, 2004
Posts: 85
Hello,

I have a quick and simple question: what is the best way of using sockets within an application server (specificaly JBoss or WebLogic)? I have read about JCA, but this seems more geared towards accessing other systems as opposed to simply opening a socket and receiving data.

The general idea is that we have an old system that communicates using sockets, we are thinking about opening a listener socket within a J2EE app server in order to receive information from it. The old system is a home grown one. In addition, I do not think we are looking to send any data across the socket, just receive data from it.

Any ideas or is this just a bad idea all round?

Chris


www.fuzzylizard.com
Mark Spritzler
ranger
Sheriff

Joined: Feb 05, 2001
Posts: 17249
    
    6

I think opening a Socket would be a bad idea, and think it would be better off to have a Web Service fronting the "legacy" application, instead.

Mark


Perfect World Programming, LLC - Two Laptop Bag - Tube Organizer
How to Ask Questions the Smart Way FAQ
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Best way to use sockets in JBoss or WebLogic?
 
Similar Threads
socket programming on 2 ports
Sending data to an applet.
JBOSS keeps creating the UDP socket connections without closing it
Connected vs. Unconnected protocol
SocketException Using Pooled Sockets