« Return to Thread: About use factory to create resource

Re: About use factory to create resource

by SARA1232007 :: Rate this Message:

Reply to Author | View in Thread

Hi Chris,

I search the WsrMEPMBean(managed resource) entry using ServiceGroup and found that the WsrMEPMBean has a resourceId with the value MuseResource-1. What I plan is to use the address 'http://127.0.0.1:8086/WsrServer/services/WsrMEPMBean' without resourceId, so I remove the subdirectory 'WsrMEPMBean' under  'router-entries' directory.

Can anyone tell me what else need to be done to access a resource, which generated by a factory, without resourceId?
Also, an another question: what should I do if I want to assign the resourceId value by an another class?

The muse.xml content is as following:

    <router>
        <java-router-class>org.apache.muse.core.routing.SimpleResourceRouter</java-router-class>
        <logging>
            <log-file>log/muse.log</log-file>
            <log-level>FINE</log-level>
        </logging>
        <persistence>
            <java-persistence-class>org.apache.muse.core.routing.RouterFilePersistence</java-persistence-class>
            <persistence-location>router-entries</persistence-location>
        </persistence>
    </router>
    <resource-type>
        <context-path>WsrMEPMBean</context-path>
        <wsdl>
            <wsdl-file>/wsdl/WsrMEPMBean.wsdl</wsdl-file>
            <wsdl-port-type xmlns:pfx="http://www.30wish.com/muse/ManagementService">pfx:WsrMEPMBeanPortType</wsdl-port-type>
        </wsdl>
        <java-id-factory-class>org.apache.muse.core.routing.CounterResourceIdFactory</java-id-factory-class>
        <java-resource-class>org.apache.muse.ws.resource.impl.SimpleWsResource</java-resource-class>
... ...

Thanks.

Sara

 « Return to Thread: About use factory to create resource