users@glassfish.java.net

Re: Possibilities to configure JMS in Glassfish. Problem ...

From: Ed Bratt <ed.bratt_at_oracle.com>
Date: Thu, 15 Dec 2011 14:50:47 -0800

We gave a Boot-camp at a recent JUG in Santa Clara. The JMS material may
be useful for you -- There is a segment for creating a three node DAS
cluster a very simple MDB -- both from the UI, and from the CLI. This
example uses Java SE clients to send and receive the initial and final
messages -- with an MDB in the middle consuming messages off one
destination and producing messages on another. Maybe that will help.
You'll find the lab materials at this link
<http://java.net/projects/glassfish/downloads/download/GlassFish%20bootcamp%202011/GlassFish3.1-Bootcamp-JMS-Material.zip>.
-- Ed Bratt

On 12/15/2011 6:32 AM, forums_at_java.net wrote:
> Thank you for your reply.
>
> I was trying to distribute message across cluster in the way that you
> said
> and that Glassfish will do that by default.
>
> Servlet to send messages: pastebin.com/1Di0BZsj [1]
>
> MDB to receive messages: pastebin.com/n87raeZw [2]
>
> MyConnectionFactory and MyTopic are enabled on cluster and server. I've
> missed something in configuration ? Or maybe I should do it in a
> different
> way.
>
> I was looking for some examples of using JMS on cluster, but
> everything that
> I have found is configured for single instance. Do you have some
> interesting
> examples ?
>
>
> [1] http://pastebin.com/1Di0BZsj
> [2] http://pastebin.com/n87raeZw
>
> --
>
> [Message sent by forum member 'mlevvy']
>
> View Post: http://forums.java.net/node/873110
>
>