I have a working solution ....
in my ContextualHttpRequest, I call the same code as in SeamPhaseListener for JSF.
before proceeding the request :
at the end :
in my ContextualHttpRequest, I call the same code as in SeamPhaseListener for JSF.
before proceeding the request :
Quote: |
|
at the end :
Quote: |
void commitOrRollback() { try { if ( Transaction.instance().isActive() ) { //log.debug("committing transaction after phase: " + phaseId); Transaction.instance().commit(); } else if ( Transaction.instance().isRolledBackOrMarkedRollback() ) { //log.debug("rolling back transaction after phase: " + phaseId); Transaction.instance().rollback(); } } catch (Exception e) { throw new IllegalStateException("Could not commit transaction", e); } } |
I'm sure there are issue with this solution but it works for the begining ...
((BindingProvider)auctionService).getRequestContext().put(BindingProvider.SESSION_MAINTAIN_PROPERTY,
true);