• 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
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

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: 3409
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!
 
When it is used for evil, then watch out! When it is used for good, then things are much nicer. Like this tiny ad:
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic