never mind. I got it.
Unchecking "Use Shared Cache" visually unchecks "Remote Change
Notification", but still keeps this line in cayenne.xml:
<property name="cayenne.DataRowStore.remote.notify" value="true"/>
This is clearly a bug.
Andrus
On May 4, 2007, at 1:56 PM, Andrus Adamchik wrote:
Peter,
I am trying to reproduce CAY-783, and from what I am seeing,
Cayenne does the right thing - if "Remote Change Notifications"
checkbox is unchecked, it wouldn't attempt to load JavaGroups stack
even if that stack is preconfigured. From
DataRowStore.initWithProperties() - see code snippet below.
So essentially removing the line below from cayenne.xml makes
Cayenne to ignore the "config.url" property:
<property name="cayenne.DataRowStore.remote.notify" value="true"/>
Could you possibly post ALL properties from cayenne.xml that causes
the exception.
Andrus
DataRowStore.initWithProperties():
----------------------------------
boolean notifyRemote = propertiesWrapper.getBoolean(
REMOTE_NOTIFICATION_PROPERTY,
REMOTE_NOTIFICATION_DEFAULT);
...
this.notifyingRemoteListeners = notifyRemote;
...
// init event bridge only if we are notifying remote listeners
if (notifyingRemoteListeners) {
try {
EventBridgeFactory factory = (EventBridgeFactory)
Class.forName(
eventBridgeFactory).newInstance();
Collection subjects = Collections.singleton
(getSnapshotEventSubject());
String externalSubject = EventBridge
.convertToExternalSubject
(getSnapshotEventSubject());
this.remoteNotificationsHandler =
factory.createEventBridge(
subjects,
externalSubject,
properties);
}
catch (Exception ex) {
throw new CayenneRuntimeException("Error
initializing DataRowStore.", ex);
}
startListeners();
}
On Apr 30, 2007, at 9:34 AM, Peter Schröder wrote:
done:
https://issues.apache.org/cayenne/browse/CAY-783
-----Ursprüngliche Nachricht-----
Von: Andrus Adamchik [mailto:[EMAIL PROTECTED]
Gesendet: Freitag, 27. April 2007 18:43
An: [email protected]
Betreff: Re: Jgroups config file
Hi Peter,
I actually suspect this is a bug in CayenneModeler. Could you open a
bug report with the exception stack trace:
http://issues.apache.org/cayenne/
Thanks
Andrus
On Apr 27, 2007, at 3:03 PM, Peter Schröder wrote:
hi,
i currently disabled the cache-configuration from my data-domain
wich was configured through a jgroups config file.
locally restarting my app i got an exception, that cayenne cant
find the config-file wich i recently disabled. i had to manually
delete the xml-tag from cayenne.xml. other workaround was to choose
'standard configuration' radiobutton and then disable the shared
cache.
i am a little confused, cause my team-mate told me that cayenne
wills kipp using shared-caching while it fails to find the
configuration-file. is that right?
kind regards,
peter