How to use put and get methods in JMS for sending messages

umm.. I am not sure in MQ series how it is done…

I really do not guess JMS will support Message Groupings,  so I strongly believe there will be no concept of  ‘Logical Order’.

Normally when you do a getText, then JMS uses CCSID of the incoming messages which then converts the data.  So, honestly you do not need a  ‘Get with Convert’.

And JMS will sure retrieve the complete data for u. So, you r neot going to see  ‘truncated’ message.

eg:

Example 8.3. Getting JMS Message Headers in a Service

import org.apache.cxf.transport.jms.JMSConstants;
import org.apache.cxf.transports.jms.context.JMSMessageHeadersType;

@WebService(serviceName = "HelloWorldService", 
                           portName = "HelloWorldPort",
                           endpointInterface = "org.apache.cxf.hello_world_jms.HelloWorldPortType",
                           targetNamespace = "http://cxf.apache.org/hello_world_jms")
  public class GreeterImplTwoWayJMS implements HelloWorldPortType
  {
    @Resource
    protected WebServiceContext wsContext;
    ...
    public String greetMe(String me)
    {
      MessageContext mc = wsContext.getMessageContext();
      JMSMessageHeadersType headers = (JMSMessageHeadersType) mc.get(JMSConstants.JMS_SERVER_HEADERS);
       ... 
     }
      ...
}
This entry was posted in Z Others and tagged , , , , , , , , , , , , . Bookmark the permalink.

8 Responses to How to use put and get methods in JMS for sending messages

  1. I precisely needed to thank you very much once more. I am not sure what I would have undertaken in the absence of the actual tips and hints discussed by you over my topic. It truly was the terrifying matter for me, but understanding the very professional avenue you treated that made me to cry for gladness. Extremely thankful for your assistance and expect you are aware of a great job you’re accomplishing instructing the others through the use of a web site. I’m certain you have never met all of us.

  2. Perfect piece of work you have done, this internet site is really cool with superb info .

  3. legal sounds says:

    not everyone would need a nose job but my girlfriend really needs some rhinoplasty coz her nose is kind of crooked;

  4. Just where maybe you have discovered the source meant for that article? Wonderful studying I have subscribed to your feed.

  5. We absolutely love your blog and find nearly all of your post’s to be exactly what I’m looking for. can you offer guest writers to write content to suit your needs? I wouldn’t mind writing a post or elaborating on some of the subjects you write about here. Again, awesome weblog!

  6. Thank you for this specific info I was basically researching all Yahoo to be able to find it!

  7. I’ve usually believed personally one of the finest lovers associated with Mozart, as well as will achieve this until your day associated with my personal passing away.

  8. I have been checking out for some time for a quality content in this types of place . Researching in Yahoo I ultimately stumbled upon this blog. Reading this article info And so I am glad to express that I provide an astonishingly excellent unusual feeling I found out just what I needed. I most undoubtedly will assure to never omit the site and offers it a glance consistently.

Leave a Reply

Your email address will not be published.