aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes JCA JMS simple example Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "JCA JMS simple example" Watch "JCA JMS simple example" New topic
Author

JCA JMS simple example

Chris Hurst
Ranch Hand

Joined: Oct 26, 2003
Posts: 396

I'm playing with JCA to integrate a legacy socket server with say glassfish (or any other J2EE 5 server), I wish to deploy a simple resource adapter that will take in (incoming) raw ip coma delimited string messages, by listening on a port and spit them out on to a JMS queue for processing , I can see how to do it but I feel like I must be reinventing the wheel before I expend any effort has anyone done this , or got some good links.

A lot of the examples on the net are half baked code snippets.


"Eagles may soar but weasels don't get sucked into jet engines" SCJP 1.6, SCWCD 1.4, SCJD 1.5,SCBCD 5
Jimmy Clark
Ranch Hand

Joined: Apr 16, 2008
Posts: 2187
I'm playing with JCA to integrate a legacy socket server with say glassfish (or any other J2EE 5 server), I wish to deploy a simple resource adapter that will take in (incoming) raw ip coma delimited string messages, by listening on a port and spit them out on to a JMS queue for processing , I can see how to do it but I feel like I must be reinventing the wheel before I expend any effort has anyone done this , or got some good links.


If the legacy socket server is proprietary, you will need to write the resource adapter code (in accordance with the system-level contracts defined by the JCA specification). This translates into writing code to satifisy the required contracts of: Connection, Transaction and Security.

Once you have the resource adapter written, then you need to connect it to the JCA CCI API that you will expose to your application.

When your socket server receives some data, it sends it to a Java component which will put it on a JMS queue. You can then implement a Message-driven EJB to listen to the queue and execute further processing.
[ July 03, 2008: Message edited by: James Clark ]
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: JCA JMS simple example
 
Similar Threads
JCA or JMS
JCA ??
JCA
Which Version of JMS, JCA, EJB, AND J2EE SPECIFICATIONS I NEED TO STUDY FOR THE EXAM?
Java Connector for Siebel and Websphere App Server