[
https://issues.jboss.org/browse/WFLY-8954?page=com.atlassian.jira.plugin....
]
Nuno Godinho de Matos edited comment on WFLY-8954 at 7/29/17 6:03 AM:
----------------------------------------------------------------------
Hi Scott, I still have not had the time to dedicate to this task.
I have been prioritizing some other work, since for the time being in relation to this
bug, on the instances where the phenomena has taken place, we are doing a
"dirty" entitymanager.referesh(myStaleEntity), as work-around. This work-around
is useless if one is clueless as to what entity may have been changed in a business
transaction, but out of luck, we do know the instances that we are getting served stale.
I hope to be able to dedicate some hours to this next week.
By the way, I must give you guys compliements on the JBOSS CLI.
The CLI is really fast.
We have written python/jython based create domain script for our business configuration
(e.g. dynamically produce wildfly CLI based on desired configuration settings -
datasources, jms, etc...) and I must say the speed with which a new standalone domain can
get created and then finally configured via CLI is incredible. I was not expecting the CLI
to be so fast configuring queues, factories, datasources. Incredible. So big compliments!
Kindest regards.
was (Author: nuno.godinhomatos):
Hi Scott, I still have not had the time to dedicate to this task.
I have been prioritizing some other work, since for the time being in relation to this
bug, on the instances where the phenomena has taken place, we are doing a
"dirty" entitymanager.referesh(myStaleEntity), as work-around. This work-around
is useless if one is clueless as to what entity may have been changed in a business
transaction, but out of luck, we do know the instances that we are getting served stale.
The only problem I have with the current configuration architecture of Wildfly - is that
it is not smooth for integration with Eclipse IDE.
Many configuration settings that I may wish to configure (e.g. -X system properties,
etc..) I can tune them via dedicated start script for the domains, but there is no change
that Eclipse will pick these up because unfortunately eclispe does not allow to tell it to
start a domain via custom start script. and such syte properties, they are not effective
if you put them in the standalone.xml system properties setting. So that means, manual
work opening eclipse launch configuration that add such level of configuration by hand to
start a widlfly domain. I think that should surely be improved... Eclipse plugin shuld
assume less defaults, and swallow configurations from somewhere under the control of the
person that configures the domain, in my oppinion. (I am quite off topic, sorry for
that).
I hope to be able to dedicate some hours to this next week.
By the way, I must give you guys compliements on the JBOSS CLI.
The CLI is really fast.
We have written python/jython based create domain script for our business configuration
(e.g. dynamically produce wildfly CLI based on desired configuration settings -
datasources, jms, etc...) and I must say the speed with which a new standalone domain can
get created and then finally configured via CLI is incredible. I was not expecting the CLI
to be so fast configuring queues, factories, datasources. Incredible. So big compliments!
Kindest regards.
Wildfly 10 with eclipselink Onscucess observer gets stale entity
----------------------------------------------------------------
Key: WFLY-8954
URL:
https://issues.jboss.org/browse/WFLY-8954
Project: WildFly
Issue Type: Bug
Components: JPA / Hibernate
Affects Versions: 10.0.0.Final
Reporter: Nuno Godinho de Matos
Assignee: Scott Marlow
Hi,
In widlfly there seems to be an important issue concerning CDI events and observing these
events during onsuccess. At least while using eclipselink.
When using wildfly 10.0.0.Final together with eclipselink, if an application modifies an
entity A, fires an event stating entity A has been modified, and an observer consumes this
event during transaction success.
Then the observer will be working with stale entities that do not reflect the
modifications done to the entity.
A sample application for this issue is available in:
https://github.com/99sono/wildfly10-observe-on-success-stale-entity
The widlfly configuration xml for the sample application, is available in the application
itself, as can be seen in the readme documentation.
Many thanks for taking a look.
Kindest regards.
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)