activemq


Ruby Stomp Gem #publish seems to truncate messages to 256 characters?


I am not sure what I am doing wrong here, but
client = Stomp::Client.new('user', 'pass', activemq_host, port)
client.publish('com.real.queue', some_really_large_object.to_json, { :persistent => true })
results in messages getting cut off after 256 characters... I have not been able to find any good documentation explaining where this limit comes from (doesn't seem to be a configuration option in the stomp ruby gem), and apparently other people who use different clients can post to the queue and not see messages get truncated...
Does anyone have any idea why this is happening?
Apparently using the following for headers solved the problem:
{ 'persistent' => true,
'suppress_content_length' => true,
'content-type' => 'application/json' }

Related Links

How to create a durable publisher/subscriber topic using the AMQP.Net Lite library in .NET Core with clientId and subscriber name and topic name
How to see Dequeued messages in ActiveMQ
How to stack received messages and process them in batch
Message not sent to IBM websphere MQ via active MQ
How can I get actievmq queue's size from the “org.apache.activemq.command.Message”?
Camel Activemq property JMSDestination value different between 5.12.1 and 5.13.0
ActiveMQ MQTT Producer not publish to openwire Subscriber
Is there a way to dump messages from an ActiveMQ queue and then reimport them?
ActiveMQ replicated levelDB with zookeeper, client must know all brokers?
Flush Messages in wildfly 10 (activemq) programatically
ActiveMQ - Update on Connect?
Programatically disable ActiveMQ message redelivery
How many message Id should I cache to avoid duplicate messages in ActiveMQ?
Unable to configure a distributed transaction involving ActiveMQ and embedded H2 with Atomikos
ActiveMQ network subscription issue
ActiveMQ Fail over issue with MySql DB

Categories

HOME
entity-framework
weblogic12c
angular-ui-grid
focus
android-fragments
d3.js
softlayer
add-on
vsts-build
google-play-services
azure-data-lake
navigation
firebase-dynamic-links
wagtail
jpa-criteria
siesta
nexus3
csrf
live-streaming
google-awareness
mahout-recommender
asp.net-core-1.0
exe
bazaar
libgit2
liferay-6.2
stackexchange.redis
mime-types
device
firemonkey-style
jpa-2.1
sap-lumira
acrobat
spring-annotations
bitbake
ibm-connections
microprocessors
fusion
tilemill
winsock
lxml
apptentive
spring-rabbitmq
textmate2
numerics
pdfnet
microsoft-ui-automation
xll
praat
best-buy-api
1wire
daz3d
axis
wysihtml5
supertest
knockout-2.0
md5-file
datediff
subforms
gtk#
android-mediarecorder
popen
http-basic-authentication
rcharts
hmmlearn
instafeedjs
openerp-6
gapi
oci
bbc-micro
yii2-model
gnucash
as3-api
jsr363
pack
cfwheels
dnx50
auto-generate
gluon-desktop
gitlab-omnibus
blockquote
wlanapi
supersocket.net
ampersand
dbmigrate
comctl32
xcode6.3.1
two.js
code-complexity
thruway
miglayout
gpu-programming
infinite
boinc
ember-table
microformats
mongo-jackson-mapper
chefspec
system-requirements
viewpagerindicator
jdom
n-queens
yuidoc
glx
zend-server-ce
page-curl
bass
ios-4.2
ccnet-config
activestate
cleartype
.net-services
eventaggregator
jboss-mdb
code-camp

Resources

Database Users
RDBMS discuss
Database Dev&Adm
javascript
java
csharp
php
android
javascript
java
csharp
php
python
android
jquery
ruby
ios
html
Mobile App
Mobile App
Mobile App