This week's book giveaway is in the Agile and other Processes forum.
We're giving away four copies of The Mikado Method and have Ola Ellnestam and Daniel Brolund on-line!
See this thread for details.
The moose likes EJB and other Java EE Technologies and the fly likes Using JMS with legacy systems ???.... Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Reply Bookmark "Using JMS with legacy systems ???...." Watch "Using JMS with legacy systems ???...." New topic
Author

Using JMS with legacy systems ???....

Andres Gonzalez
Ranch Hand

Joined: Nov 27, 2001
Posts: 1561
Hi. If anyone of you guys have any idea I'd appreciate it. What I'd like to know is how you can use JMS to connect to legacy systems, and viceversa.
Does anyone know how to achieve this? I've read somewhere that you can use sockets to send messages with EBCDIC format ( ). Most of the legacy systems usually expect messages in a rigid format.
any clues? experiences??
thanks


I'm not going to be a Rock Star. I'm going to be a LEGEND! --Freddie Mercury
Kyle Brown
author
Ranch Hand

Joined: Aug 10, 2001
Posts: 3879
What happens is you end up using the facilities of the underlying MOM (Message Oriented Middleware) to do the kind of ASCII-EBCDIC translation you're speaking of. I've personally done this kind of work with MQ Series and Java (but not with the JMS layer that sits on top of the raw Java-MQSeries interface, but I understand that this is possible).
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.
Andres Gonzalez
Ranch Hand

Joined: Nov 27, 2001
Posts: 1561
Hi Kyle. Thanks for your response.
I've personally done this kind of work with MQ Series and Java (but not with the JMS layer that sits on top of the raw Java-MQSeries interface, but I understand that this is possible).

hhmm... i'm still a bit lost . What I understood is that this ASCII-EBCDIC is a valid option to connect to legacy systems. Then, I will have to create a consumer that will receive the messages, format them appropiately (using EBCDIC) so the legacy system can understand it and send them using sockets. Am I right?
if you have any resources of information I can look at it'd be great.
thanks again
cheers
Tim Holloway
Saloon Keeper

Joined: Jun 25, 2001
Posts: 14487
    
    7

You may find that there are instances where this is not an issue. I may be wrong here, since because the only legacy apps I've had to link to were PC-based, but IBM has been big on Java for CICS. If that were your entry point, you could theoretically write a JMS client in mainframe Java (which should be Unicode-based internally), and if the result were to be placed in a database or text file, the code translation is supposedly done by the JDBC or text stream services automatically.
On the other hand, if you are writing a socket client in C, for example, you can easily do the translation yourself - on the System/360++ platforms, a single machine-language instruction handles that. Depending on whether or not IBM has enhanced the instruction set for the modern-day problem of going to and from double-byte character sets, you might need a minor additional amount of code of the "for ( int i = 0; i < nchars; i++ ) out[i] = in[i+i+1];" stripe.


Customer surveys are for companies who didn't pay proper attention to begin with.
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: Using JMS with legacy systems ???....
 
Similar Threads
Where can I find John Wetherbie note on Legacy Connectivity
newbie question: please help with scja exam question
How to connect ejb to tcp/ip System
Legacy Connectivity ....thanx John and Amanda
new to JMS , Que- what approach to take for continously listenning messages