Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Converting a String into JMS Message object  RSS feed

 
Rajesh Kumar Hari
Greenhorn
Posts: 6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

There is one requirement that i have to read a file as jms Message object and pass it to the onMessage of MDB.
Is this possible to convert a String into a JMS Message object or to read the file as javax.jms.Message object?



Thanks
Rajesh
 
Chris Hurst
Ranch Hand
Posts: 443
3
C++ Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Presuming your container of choice supports JCA your looking for a JCA for flat file that would call a registered MDB as described, I believe there are some free JCA adapters on source forge (I think) somewhere , they were all very trivial examples but i believe one was flat file, worth checking out to see if its exactly what you want.

If you just want a plain old java client reading the file contents in, creating the message and sending is all well documented on the net. I suspect most client side JMS examples look quite similar.
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!