So you have a cluster of brokers using JGroups for discovery, and you want
your remote client to connect to one of the brokers in the cluster? If so,
do you need to use JGroups from this client to discover the cluster nodes
or do you already know their location?


Justin

On Fri, Oct 31, 2025 at 2:07 PM Gunawan, Rahman (GSFC-SEWP)[Halvik Corp]
<[email protected]> wrote:

> I'm trying to connect to JGroup Artemis server group, but it seems remote
> connection is considered as 1 of the servers and trying to join the
> cluster.  Should I use direct broker url to connect e.g. connectionFactory
> = new ActiveMQConnectionFactory(connectionUrl, userName, password); where
> connectionUrl is a list of primary - backup servers?
>
> Rahman Gunawan
> SITSS Software Developer
> NASA SEWP / SITSS
> HALVIK Corporation
> 7601 Ora Glen Dr, Greenbelt, MD 20770
> C: 240.444.6003
> O: 301.614.5257
> [email protected]
>
>
> -----Original Message-----
> From: Justin Bertram <[email protected]>
> Sent: Thursday, October 30, 2025 5:52 PM
> To: [email protected]
> Subject: [EXTERNAL] [BULK] Re: Anything wrong with the code?
>
> CAUTION: This email originated from outside of NASA.  Please take care
> when clicking links or opening attachments.  Use the "Report Message"
> button to report suspicious messages to the NASA SOC.
>
>
>
>
> Before we go down the road of all the problems with this code, can you
> elaborate on your use-case? Why exactly are you trying to extend
> JGroupsFileBroadcastEndpointFactory?  Why not use the implementation that
> already exists? And ultimately what are you trying to do with it?
>
> Please be thorough and clear. Your previous emails to this list have
> tended to lack clarity and meaningful follow-up which makes it difficult to
> assist.
>
>
> Justin
>
> On Thu, Oct 30, 2025 at 1:59 PM Gunawan, Rahman (GSFC-SEWP)[Halvik Corp] <
> [email protected]> wrote:
>
> > Anything wrong with the code?  Why both
> > endpointFactory.getChannelName() and endpointFactory.getFile() is null?
> >
> > JGroupsFileBroadcastEndpointFactory endpointFactory = *new*
> > *JGroupsFileBroadcastEndpointFactory()* {
> >
> >         @Override
> >
> >         *public* BroadcastEndpoint createBroadcastEndpoint() *throws*
> > Exception {
> >
> >             *System.out*.println("Creating JGroups File
> > BroadcastEndpoint...");
> >
> >
> >
> >             JGroupsFileBroadcastEndpoint endpoint = *new*
> > JGroupsFileBroadcastEndpoint(
> >
> >                     JChannelManager.*getInstance*(),
> >
> >                     "jgroups-file.xml",
> >
> >                     " jgroup_channel"
> >
> >             );
> >
> >
> >
> >             // Initialize the channel
> >
> >             endpoint.initChannel();
> >
> >             *System.out*.println("JGroups BroadcastEndpoint created
> > successfully");
> >
> >             *return* endpoint;
> >
> >         }
> >
> >     };
> >
> > *System.out*.println("Channel Name=" +
> > endpointFactory.getChannelName());
> >
> >     *System.out*.println("File=" + endpointFactory.getFile());
> >
> >
> >
> >
> >
> >
> >
> > *Rahman Gunawan*
> >
> > *SITSS Software Developer*
> >
> > NASA SEWP / SITSS
> >
> > HALV*I*K Corporation
> >
> > 7601 Ora Glen Dr, Greenbelt, MD 20770
> >
> > C: 240.444.6003
> > O: 301.614.5257
> >
> > [email protected]
> >
> >
> >
> >
> >
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [email protected]
> For additional commands, e-mail: [email protected]
> For further information, visit: https://activemq.apache.org/contact
>
>

Reply via email to