• 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 Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

JMS publisher-subscriber model scenario

 
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi,

I have a requirement , which goes like this :

1. Publisher sends to the topic , xml messages

2. The QPID Broker will help the subscribers , subscribed to that topic with the xml message notification



But this is just a notification given to the subscriber saying that there is message consumed, right?

How do we get the actual message ( XML ) file, I have used to to write the contents of the xml file message into a local directory. Please help me out
 
Ranch Hand
Posts: 198
Oracle Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
your 'textMessage' is the actual xml message which you received from topic.

you are creating notification message for some other validation purpose.
 
Sindhu Kodoor
Ranch Hand
Posts: 66
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
But it does not provide me the xml data , do you have any examples to share?
 
Prabhakar Reddy Bokka
Ranch Hand
Posts: 198
Oracle Spring Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It will provide you a XML String. Which is text message.

Also when you want to read that XML you need to convert that byte stream of text message to the parser.
After parsing you will get the actual xml tags and values

you can see below links for examples

A JMS Client Examples

JMS, XML, and the heterogeneous enterprise
 
Put a gun against his head, pulled my trigger, now he's dead, that tiny ad sure bled
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic