|
Replies:
1
-
Pages:
1
-
Last Post:
Feb 8, 2010 12:14 AM
Last Post By: Shilpa Deshpande
|
Threads:
[
Previous
|
Next
]
|
|
Posts:
3
Registered:
2/7/10
|
|
|
|
TextMessage
Posted:
Feb 7, 2010 11:57 PM
|
|
|
|
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?
|
|
Posts:
3
Registered:
2/7/10
|
|
|
|
Re: TextMessage
Posted:
Feb 8, 2010 12:14 AM
in response to: Shilpa Deshpande
|
|
|
|
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
|
|