Hi Jan / All,

| May 29, 2008 12:45:41 PM 
| org.apache.muse.core.routing.SimpleResourceRouter
| initialize
| INFO: [ID = 'RouterIsInitialized'] The resource router has been
initialized. 

great! But my Resource's #initialize() is not called. So is it triggered
by the first request or should it have been triggered automatically? Any
what do I have to initialzie so that

                WsResource resource = getWsResource();
                ResourceManager manager = resource.getResourceManager();

returns something different than null?


^^^^^ 

If you haven't got the initializeCompleted or initialize called then
either the resource-type isn't entered in the muse.xml properly OR there
isn't a resource added.

I should have been clearer when replying to Lenni's comment.  For most
uses you want an existing resource, in your specific case the factory
resource should have an entry since you always want it to be available.
Typically this is just, as per the 270 project structure:

router-entries/resourceName/resource-instance-X.xml

You will need one for the factory, which should contain something
similar to the WsResource/resource-instance-1.xml contents in the issue.
In addition there should be a  use-router-persistence="true" attribute
in the resource-type.  This allows muse to know that it should load the
resources.

Sorry for any confusion that might have caused.

For getting this to work can I suggest you contact me directly?  Then
when we know what extra steps were taken we can send a post back on the
mailing list with the solution.

cheers,
chris

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

Reply via email to