-
1. Re: Using stomp.js with jboss-eap-6.1.0.Alpha
jmesnil Apr 11, 2013 3:29 AM (in response to execretor)what's the messaging subsystem configuration you used?
-
2. Re: Using stomp.js with jboss-eap-6.1.0.Alpha
execretor Apr 11, 2013 3:49 AM (in response to jmesnil)Attached my standalone-full.xml
-
standalone-full.xml 22.8 KB
-
-
3. Re: Using stomp.js with jboss-eap-6.1.0.Alpha
jmesnil Apr 11, 2013 4:43 AM (in response to execretor)I managed to connect succesfully with AS8 master branch.
The error reported by HornetQ is misleading. The root issue is that the user authentication failed[1]
Did you correctly add a user using the add-user.sh script?
Once I did that, I was able to communicate successfully with Stomp over WebSocket:
>>> CONNECT
accept-version:1.1,1.0
heart-beat:10000,10000
login:admin
passcode:adminadmin12#
--- got data length: 140
<<< CONNECTED
version:1.1
session:-935684956
server:HornetQ/2.3.0.CR2 (black'n'yellow2, 123) HornetQ Messaging Engine
heart-beat:10000,10000
connected to server HornetQ/2.3.0.CR2 (black'n'yellow2, 123) HornetQ Messaging Engine
send PING every 10000ms
check PONG every 10000ms
connected to Stomp
>>> SUBSCRIBE
id:sub-0
destination:jms.topic.alarmQueue
>>> SEND
destination:jms.topic.alarmQueue
content-length:4
test
--- got data length: 161
<<< MESSAGE
subscription:sub-0
content-length:4
message-id:17
destination:jms.topic.alarmQueue
expires:0
redelivered:false
priority:4
timestamp:1365668544381
test
I checked it with Chrome, Firefox and Safari.
By the way, there is a more correct way to configure the acceptor for Stomp over WebSocket:
add a netty-acceptor instead of a plain acceptor:
<netty-acceptor name="stomp-ws" socket-binding="messaging-stomp-ws">
<param key="protocol" value="stomp_ws" />
</netty-acceptor>
and a corresponding socket-binding (at the end of the standalone-full.xml) file:
<socket-binding name="messaging-stomp-ws" port="61614"/>
-
4. Re: Using stomp.js with jboss-eap-6.1.0.Alpha
execretor Apr 11, 2013 2:32 PM (in response to jmesnil)thank you very much, now my connection is ok by entering the user as appuser and not as a Manager user.Now I have another problem but will also be another thread
thanks again.
-
5. Re: Using stomp.js with jboss-eap-6.1.0.Alpha
clebert.suconic Aug 30, 2013 10:56 AM (in response to execretor)Howard just fixed the JIRA