Nope, raiseAfterTransactionSuccessEvent() didn't help. Here's the code I used:
@Observer ("refreshAccounts")
| public void refresh() {
| userAccounts.refresh();
| }
| @Transactional
| public void save() {
| em.persist(selectedAccount);
| em.flush();
| selectedAccount = null;
|
Events.instance().raiseTransactionSuccessEvent("refreshAccounts");
| }
and the result is exactly the same, both behavior-wise and log-wise.
Now, the EntityQuery is declared as "@In private EntityQuery userAccounts;" -
does it also need to be outjected if I change its internals, for the change to
take effect?
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4065886#4065886
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4065886
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user