The Support Forums of GigaSpaces and OpenSpaces.org » OpenSpaces.org » General Forum

Thread: TextMessage

 
Welcome, Guest
Guest Settings
Help
This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 1 - Pages: 1 - Last Post: Feb 8, 2010 12:14 AM Last Post By: Shilpa Deshpande Threads: [ Previous | Next ]
Shilpa Deshpande

Posts: 3
Registered: 2/7/10
TextMessage
Posted: Feb 7, 2010 11:57 PM
 
  Click to reply to this thread Reply
Hello,

We use Gigaspaces 6.6.4 version. This question is about GS based JMS. We are trying to send a TextMessage from one server to another.

We have following code to decorate the text message.

TextMessage message = createTextMessage();
message.setText(payLoad.getText());
Set<String> e = payLoad.getPropertyNames();
Iterator<String> iterator = e.iterator();
while (iterator.hasNext()) {
String key = (String) iterator.next();
String value = payLoad.getStringProperty(key);
message.setStringProperty(key, value);
}

The end message looks something like following

Key = propertyName value = machineName
Key = path value = pdfName
Key = html value = <?xml version="1.0" encoding="UTF-8"?>............ <= This is the big payload.
Key = timeout value = 60000
Key = handler value = PDFCreationHandler
text = no text

Our question is - Is there a specific limit on the size of StringProperty. Our suspicion is setStringProperty() method does not work very well for a big property. This particular message does not get consumed on the other server.

Would it be possible to explain why this should happen?
Shilpa Deshpande

Posts: 3
Registered: 2/7/10
Re: TextMessage
Posted: Feb 8, 2010 12:14 AM   in response to: Shilpa Deshpande in response to: Shilpa Deshpande
 
  Click to reply to this thread Reply
We found the problem. Consumption is not the issue.
Legend
GigaMaster: 100 - 999 pts
Advanced: 11 - 99 pts
Beginner: 1 - 10 pts
Just Visiting: 0 - 0 pts
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums