Win a copy of Testing JavaScript Applications this week in the HTML Pages with CSS and JavaScript forum!
  • 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

TextMessage in IBM Websphere Application Server 8.5.5

 
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.
 
Creator of Enthuware JWS+ V6
Posts: 3348
303
Android Eclipse IDE Chrome
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Well done and thanks for sharing your solution!
 
There's a hole in the bucket, dear Liza, dear Liza, a hole in the bucket, dear liza, a tiny ad:
Thread Boost feature
https://coderanch.com/t/674455/Thread-Boost-feature
    Bookmark Topic Watch Topic
  • New Topic