This week's book giveaway is in the Agile and Other Processes forum.
We're giving away four copies of The Journey To Enterprise Agility and have Daryl Kulak & Hong Li on-line!
See this thread for details.
Win a copy of The Journey To Enterprise Agility this week in the Agile and Other Processes forum! And see the welcome thread for 20% off.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Jeanne Boyarsky
  • Liutauras Vilda
  • Campbell Ritchie
  • Tim Cooke
  • Bear Bibeault
Sheriffs:
  • Paul Clapham
  • Junilu Lacar
  • Knute Snortum
Saloon Keepers:
  • Ron McLeod
  • Ganesh Patekar
  • Tim Moores
  • Pete Letkeman
  • Stephan van Hulst
Bartenders:
  • Carey Brown
  • Tim Holloway
  • Joe Ess

JCA JMS simple example  RSS feed

 
Ranch Hand
Posts: 443
3
C++ Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
Ranch Hand
Posts: 2187
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

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 ]
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!