Skip to main content

Notice: this Wiki will be going read only early in 2024 and edits will no longer be possible. Please see: https://gitlab.eclipse.org/eclipsefdn/helpdesk/-/wikis/Wiki-shutdown-plan for the plan.

Jump to: navigation, search

Difference between revisions of "Scout/Concepts/JAXWS-RT/Transactional handlers"

< Scout‎ | Concepts‎ | JAXWS-RT
Line 4: Line 4:
  
 
Please note, that when having a webservice providers, the session for their transactional handlers is created prior to the request's authentication. That is why it is created on behalf of the user 'anonymous'. You can change 'anonymous' by specifying the property <code>org.eclipse.scout.jaxws216.txhandler.sessionfactory.principal</code> in config.ini with a designated principal to be used to create the session for transactional headers.
 
Please note, that when having a webservice providers, the session for their transactional handlers is created prior to the request's authentication. That is why it is created on behalf of the user 'anonymous'. You can change 'anonymous' by specifying the property <code>org.eclipse.scout.jaxws216.txhandler.sessionfactory.principal</code> in config.ini with a designated principal to be used to create the session for transactional headers.
 
Because consumers typically run on behalf of a subject, the previous section with the 'anonymous' prinicpal is not applicable.
 
 
 
<pre>org.eclipse.scout.jaxws216.txhandler.sessionfactory.principal=xy</pre>
 
<pre>org.eclipse.scout.jaxws216.txhandler.sessionfactory.principal=xy</pre>
 +
Because consumers typically run on behalf of a subject, the previous section with the 'anonymous' prinicpal is not applicable.

Revision as of 17:39, 10 November 2011

The Scout documentation has been moved to https://eclipsescout.github.io/. The Scout documentation has been moved to https://eclipsescout.github.io/. Handlers can be annotated to run in a The Scout documentation has been moved to https://eclipsescout.github.io/.. That means that there is spanned a new transaction before the request is passed to the handler. Thereto, annotate the handler with @ScoutTransaction. Optionally, you can provide the annotation an The Scout documentation has been moved to https://eclipsescout.github.io/. to be used to run the transaction. If not specifying a session factory, the The Scout documentation has been moved to https://eclipsescout.github.io/. is used instead, meaning that simply a new The Scout documentation has been moved to https://eclipsescout.github.io/. is created at the handler's initialization. When a webservice request is passed to the handler, this session is used in order to create the transaction.

Please note, that when having a webservice providers, the session for their transactional handlers is created prior to the request's authentication. That is why it is created on behalf of the user 'anonymous'. You can change 'anonymous' by specifying the property org.eclipse.scout.jaxws216.txhandler.sessionfactory.principal in config.ini with a designated principal to be used to create the session for transactional headers.

org.eclipse.scout.jaxws216.txhandler.sessionfactory.principal=xy

Because consumers typically run on behalf of a subject, the previous section with the 'anonymous' prinicpal is not applicable.

Back to the top