Hi All; I want to integrate Apache Muse with our project(http://www.extreme.indiana.edu/gfac/). I looked at the Axis2 integration and I think what muse do is create a ResourceRouter and invoke it per SOAP message.
To integrate Muse to my project does following approach is correct 1. Create My Environment by extend from AbstractEnviorment to load corrrect muse.xml file ect ..... 2. create my capabilities and edit muse.xml file to add them. Initially I do not need to create dynamic resources. 3. Initialize a resource router (Code List1), I grab this code from AbstractIsolationLayer class. 4. Direct incomming Soap messages that are intended to muse to resource router and send back the responses. Element soapResponse = getRouter().invoke(soapBody); Will this agree with Muse design? Is there a better way to do this? Does muse provide a way to edit WSDL if I do as above, or do I have to do it from code? Thanks very much Srinath Code List 1 ======= Environment env = new MyEnviorment(); DeploymentDescriptor dd = new SimpleDeploymentDescriptor(); Document ddXML = env.getDocument(DescriptorConstants.DESCRIPTOR_FILE_NAME); dd.load(ddXML, env); Collection serializerDefinitions = dd.getSerializerDefinitions(); Iterator i = serializerDefinitions.iterator(); SerializerRegistry registry = SerializerRegistry.getInstance(); while (i.hasNext()) { SerializerDefinition next = (SerializerDefinition)i.next(); Serializer ser = next.create(); Class type = ser.getSerializableType(); Class arrayType = ReflectUtils.getArrayClassFromClass(type); Serializer arraySer = new ArraySerializer(arrayType, ser); registry.registerSerializer(type, ser); registry.registerSerializer(arrayType, arraySer); } // // create the router, which will instantiate resources that // are specified in the deployment descriptor (using the // /muse/resource-type/@instances-at-startup attribute) // RouterDefinition routerDefinition = dd.getRouterDefinition(); ResourceRouter _router = routerDefinition.newInstance(); _router.initialize(); -- ============================ Srinath Perera: Indiana University, Bloomington http://www.cs.indiana.edu/~hperera/ http://www.bloglines.com/blog/hemapani --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]