Re: ASO and hivemind.xml

2006-07-20 Thread Geoff Callender
BW, No need to touch hivemind.xml. Add a file called hivemodule.xml to WEB-INF, with content similar to this: ?xml version=1.0? module id=jumpstart version=1.0.0 package=jumpstart.web !-- ServiceLocator and Visit -- contribution

Re: ASO and hivemind.xml

2006-07-20 Thread Blackwings
Thanks a lot, but I have a question again: To what, the id in the module tag, refer? Is it the name of my context? is it app? is it the package where something (what?) is store? Same question for the version. Thanks anyway BW 2006/7/20, Geoff Callender [EMAIL PROTECTED]: BW, No need to

RE: ASO and hivemind.xml

2006-07-20 Thread James Carman
users Subject: Re: ASO and hivemind.xml Thanks a lot, but I have a question again: To what, the id in the module tag, refer? Is it the name of my context? is it app? is it the package where something (what?) is store? Same question for the version. Thanks anyway BW 2006/7/20, Geoff Callender

Re: ASO and hivemind.xml

2006-07-20 Thread Geoff Callender
Others might chime in because I'm no expert on this, but this what I believe to be true... - The module id and version can be arbitrary. However, to avoid name clashes you can use the id as a qualifier, eg. @InjectState(jumpstart: serviceLocator) So the id forms a namespace. Why

Re: ASO and hivemind.xml

2006-07-20 Thread Blackwings
The situation is : I create class that extends ApplicationServlet and I specify it as the tapestry main servlet in web.xml. In this class I call a class that initialise some application objects such as list of element common to everybody from the database. My class also set a bean member and

RE: ASO and hivemind.xml

2006-07-20 Thread James Carman
Have you tried using a StateObjectFactory? -Original Message- From: Blackwings [mailto:[EMAIL PROTECTED] Sent: Thursday, July 20, 2006 9:07 AM To: Tapestry users Subject: Re: ASO and hivemind.xml The situation is : I create class that extends ApplicationServlet and I specify

Re: ASO and hivemind.xml

2006-07-20 Thread Howard Lewis Ship
On 7/20/06, Geoff Callender [EMAIL PROTECTED] wrote: Others might chime in because I'm no expert on this, but this what I believe to be true... - The module id and version can be arbitrary. However, to avoid name clashes you can use the id as a qualifier, eg. @InjectState(jumpstart:

Re: ASO and hivemind.xml

2006-07-20 Thread Blackwings
Howard, thanks for the advice. I have to use JDK1.4 so I cannot use annotations. My real problem is to understand how I can instanciate an object at the context load, in the ApplicationServlet via inheritance and to make this object available to my pages. As I already explained, getGlobal is