users@glassfish.java.net

Re: How to activate STOMP on glassfish cluster

From: Manuel Blechschmidt <blechschmidt_at_apaxo.de>
Date: Thu, 13 Sep 2012 22:07:28 +0200

Hello,
I know added these lines manually to the corresponding nodes and this is working.

/Manuel

On 11.09.2012, at 23:03, Manuel Blechschmidt wrote:

> Hello,
> I implemented a message driven bean which is getting it's message through the STOMP protocol.
>
> I was able to enable stomp on my local dev box adding the following lines to this file:
> /opt/glassfish3/glassfish/domains/domain1/imq/instances/imqbroker/props/config.propeties
>
> imq.bridge.admin.user=admin
> imq.bridge.admin.password=admin
> imq.bridge.activelist=stomp
> imq.bridge.enabled=true
>
> Afterwards I was able to send message to my local host:
>
> $ telnet localhost 7672
> Trying ::1...
> Connected to localhost (::1).
> Escape character is '^]'.
> CONNECT
> login: admin
> passcode: admin
> host: localhost
>
> ^@
> CONNECTED
> session:1248123505436166656[null]
>
> Now I wanted to deploy the code on our production cluster but unfortunately I do not now where to set the given configuration parameters. I was not able to find any hints in the glassfish cluster documentation.
>
> I found the config.properties on our nodes:
> /opt/glassfish3/glassfish/nodes/node003.apaxo.de/1.003.apaxo.de/imq/instances/SemRecSys1003apaxode/props/config.properties
>
> but as far as I know these get overwritten by the DAS. I already tried to set properties on the JMS host an in the JMS availability tab but I was not able to observe any change in this configuration file.
>
> Would be great if somebody could tell me which file I have to edit or where to put these parameters.
>
> Thanks a lot
> Manuel
> --
> Manuel Blechschmidt
> M.Sc. IT Systems Engineering
> CTO - Apaxo GmbH
> blechschmidt_at_apaxo.de
> http://www.apaxo.de
>
> Weinbergstr. 16
> 14469 Potsdam
>
> Telefon +49 (0)6204 9180 593
> Fax +49 (0)6204 9180 594
> Mobil: +49 173/6322621
>
> Skype: Manuel_B86
> Twitter: http://twitter.com/Manuel_B
>
> Sitz der Gesellschaft: Viernheim
> Handelsregister HRB 87159
> Ust-IdNr. DE261368874
> Amtsgericht Darmstadt
> Geschäftsführer Friedhelm Scharhag
>

-- 
Manuel Blechschmidt
M.Sc. IT Systems Engineering
CTO - Apaxo GmbH
blechschmidt_at_apaxo.de
http://www.apaxo.de
Weinbergstr. 16
14469 Potsdam
Telefon +49 (0)6204 9180 593
Fax +49 (0)6204 9180 594
Mobil: +49 173/6322621
Skype: Manuel_B86
Twitter: http://twitter.com/Manuel_B
Sitz der Gesellschaft: Viernheim
Handelsregister HRB 87159
Ust-IdNr. DE261368874
Amtsgericht Darmstadt
Geschäftsführer Friedhelm Scharhag