Hi,
I am currently working on a school project that has me writing a chat application. The overall easiest way I could think of that would not be to use an app server and just create a classe that listens for socket connections.
But the thing is that I really want to use JBoss:-)
I was wondering if anyone might have any good patterns for implementing a chat service? I looked at Service Activator but it looks like I really need a more synchronous approach as I will be keeping any connections open.
Any suggestions are greatly appreciated:-)
-
Design Pattern for an Application Possibly a Web Service (2 messages)
- Posted by: Jason Lenhart
- Posted on: March 30 2004 13:59 EST
Threaded Messages (2)
- Design Pattern for an Application Possibly a Web Service by Tobias Rademacher on March 31 2004 01:54 EST
- Design Pattern for an Application Possibly a Web Service by Jason Lenhart on April 05 2004 14:04 EDT
-
Design Pattern for an Application Possibly a Web Service[ Go to top ]
- Posted by: Tobias Rademacher
- Posted on: March 31 2004 01:54 EST
- in response to Jason Lenhart
Hi,I am currently working on a school project that has me writing a chat application. The overall easiest way I could think of that would not be to use an app server and just create a classe that listens for socket connections.
Inside the <strong>EJB</strong> Container part Socket Connections are prohibitet.
<blockqoute>But the thing is that I really want to use JBoss:-)I was wondering if anyone might have any good patterns for implementing a chat service? I looked at Service Activator but it looks like I really need a more synchronous approach as I will be keeping any connections open.Any suggestions are greatly appreciated:-)If you really want to do it with J2EE and JBoss I would recommend to do it with JMS. Another possible solution may be JAXM which only needs an WebContainer like Tomcat. A smart warning: The learing curve higher as you may consider. :)
An alternative would be JXTA or plain sockets with old io (java.io) or new io (java.nio). -
Design Pattern for an Application Possibly a Web Service[ Go to top ]
- Posted by: Jason Lenhart
- Posted on: April 05 2004 14:04 EDT
- in response to Tobias Rademacher
Thanks Tobias -- I looked at using JMS but I am afraid that when I turn it in -- my professor will not have a JMS Server on his laptop:-(
However -- I do have a working proof of concept whereby it working over Socket connections -- the good news is that I just refactored it so that I can apply different interfaces for different protocols -- I am going to look into JXTA -- seems kind of complex though. Either way I have something to turn in - that will meet the requirements -- The good news is that the project was a Term Project and the class started last week -- So I am WAY ahead of schedule:-)