Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

TextMessage in IBM Websphere Application Server 8.5.5

 
Sujeeth Pakala
Ranch Hand
Posts: 104
  • Mark post as helpful
  • send pies
  • 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
  • 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.
 
Frits Walraven
Creator of Enthuware JWS+ V6
Saloon Keeper
Pie
Posts: 2536
113
Android Chrome Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well done and thanks for sharing your solution!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic