Hi,
I'm using several engine services in my application and
this services must get access to the application's session object.
In hivemind.xml i defined a session object:
<contribution configuration-id="tapestry.state.ApplicationObjects">
<state-object name="mySessionObject" scope="session">
<create-instance class="com.my.application.MySessionObject"/>
</state-object>
</contribution>
Then I injected this into my service:
<service-point id="MyService"
interface="org.apache.tapestry.engine.IEngineService">
<invoke-factory>
<construct class="com.my.application.MyService">
<set-object property="exceptionReporter"
value="infrastructure:requestExceptionReporter"/>
<set-object property="response" value="infrastructure:response"/>
<set-object property="linkFactory"
value="infrastructure:linkFactory"/>
<set-object property="request" value="infrastructure:request"/>
/<set-object property="mySessionObject"
value="app-property:mySessionObject"/>/
</construct>
</invoke-factory>
</service-point>
This session object is always not initialized and is null when I access
it out of my service.
But when i inject the session object into the pages, it is initialized.
How can an engine service get access to the session object?
Thanks
Mahmut