Re: JGroups

Andrus Adamchik <[email protected]>
Newsgroups gmane.comp.java.cayenne.devel
Message-ID <[email protected]>
> setDomainStringProperty(JavaGroupsBridge.MCAST_ADDRESS_PROPERTY,
> multicastAddress, JavaGroupsBridge.MCAST_ADDRESS_DEFAULT);
> setDomainStringProperty(JavaGroupsBridge.MCAST_PORT_PROPERTY,
> multicastPort, JavaGroupsBridge.MCAST_PORT_DEFAULT);
> setDomainStringProperty(JavaGroupsBridge.JGROUPS_CONFIG_URL_PROPERTY,
> javaGroupsFile, "");
> if (StringUtils.equals(eventBridgefactory,
> JavaGroupsBridgeFactory.class.getName()))


None of these settings are in the Modeler for quite some time.

> Maybe best to duplicate the constants locally and drop the dependencies? I
> just don't like repeating things...

I'd to avoid such a heavy dependency if all we need is constants, but luckily not an issue anymore.

Andrus 


> On Dec 20, 2021, at 4:00 PM, Michael Gentry <[email protected]> wrote:
> 
> Well, I was pulling in cayenne-jgroups primarily to access constants, such
> as:
> 
> setDomainStringProperty(JavaGroupsBridge.MCAST_ADDRESS_PROPERTY,
> multicastAddress, JavaGroupsBridge.MCAST_ADDRESS_DEFAULT);
> setDomainStringProperty(JavaGroupsBridge.MCAST_PORT_PROPERTY,
> multicastPort, JavaGroupsBridge.MCAST_PORT_DEFAULT);
> setDomainStringProperty(JavaGroupsBridge.JGROUPS_CONFIG_URL_PROPERTY,
> javaGroupsFile, "");
> if (StringUtils.equals(eventBridgefactory,
> JavaGroupsBridgeFactory.class.getName()))
> ...
> 
> If I didn't add JGroupsModule as a DI module it crashed (forget the exact
> reason right now, but I can try it again later). Note: It didn't break ages
> ago when I was using 4.0.B1, but after I updated it to use 4.0.2. When
> using B1 I had access to the constants without needing to provide a JGroups
> dependency.
> 
> Maybe best to duplicate the constants locally and drop the dependencies? I
> just don't like repeating things...
> 
> mrg
> 
> 
> On Mon, Dec 20, 2021 at 1:37 AM Andrus Adamchik <[email protected]> wrote:
> 
>> FWIW, I was about to suggest removing "cayenne-jgroups" from Cayenne 5.0
>> as an old and unreliable piece of software we don't want to support :)
>> 
>> As far as the Modeler goes it should not depend on JGroups at all. All the
>> events in the Modeler are in-process and can be passed around within the
>> JVM.
>> 
>> Andrus
>> 
>>> On Dec 19, 2021, at 6:35 PM, Michael Gentry <[email protected]> wrote:
>>> 
>>> While getting the JavaFX modeler running again, I was having issues with
>>> JGroups classes/interfaces not being found/defined, so I added version
>> 5.x
>>> to the POM and it didn't work. Then 4.x and it didn't work. Then 3.x and
>> it
>>> didn't work. Then 2.x and it finally worked.
>>> 
>>> Does Cayenne only work with JGroups 2.x? *
>>> 
>>> Thanks,
>>> 
>>> mrg
>>> 
>>> * I used 2.12.3.Final here...
>> 
>>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.