Look it up using the ApplicationStateManager.

-----Original Message-----
From: John Menke [mailto:[EMAIL PROTECTED] 
Sent: Friday, May 05, 2006 11:23 AM
To: Tapestry User
Subject: Accessing state.ApplicationObject in ServicePoint

I have a state object that i want to inject into a service i defined

<contribution configuration-id="tapestry.state.ApplicationObjects">
  <state-object name="registration" scope="session">
    <create-instance class="org.mycompany.Registration"/>
  </state-object>
</contribution>

I am trying what is below without success:  HOW do i point to the
stateobject in my service?


<service-point id="JoinTeamService" interface="
org.apache.tapestry.engine.IEngineService">

<invoke-factory>

<construct class="org.mycompany.JoinTeamService">

<set-configuration property="registration" configuration-id="
tapestry.state.ApplicationObjects:registration"/>

</construct>

</invoke-factory>

</service-point>



thanks jm



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to