• 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
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

TextMessage in IBM Websphere Application Server 8.5.5

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

I wanted to implment JAX-WS client for a webservice with SOAP over JMS transport and deploy in IBM Websphere 8.5.5.

I managed to develop , deployclient and post message onto destination (JMS Queue). But, the messsage is alsway sent at bytes message.

I undetrstood from IBM documentation that default message format is bytes (BYTES).

Any one knows how to make it TextMessage.

PS: I tried all possibilites of IBM documentation, but no luck.

webpage 1

webpage 2
Any one faced similar problem.. ?

Thanks !
 
Sujeeth Pakala
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Problem solved.

Solution is format of JMS endpoint URL in IBM WAS8.5.5 is changed to :

jms:jndi:<destination-jndi-name>?<property>=<value>&<property>=<value>

example :

jms:jndi:jndi/queueName?jndiConnectionFactoryName=jndi/queueConnectionFactoryName&targetService=targetServiceName&messageType=TEXT.

The property messageType=TEXT instructs IBM JAX-WS runtime to use TextMessage (by default it uses BytesMessage)

PS: the properties jndiConnectionFactoryName and targetService are mandatory.
 
Creator of Enthuware JWS+ V6
Posts: 3411
320
Android Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Well done and thanks for sharing your solution!
 
joke time: What is brown and sticky? ... ... ... A stick! Use it to beat this tiny ad!
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic