I just noticed that ServerUtils.loadProvider actually uses the DeploymentDescriptor.getServiceClass() to get the actual provider to load. Shouldn't it use DeploymentDescriptor.getProviderClass()??? It should be the service class that loads the providers.
>>-----Original Message----- >>From: Bono, Chris [mailto:[EMAIL PROTECTED]] >>Sent: Tuesday, October 30, 2001 11:09 AM >>To: Soap User Mailing List (E-mail) >>Subject: Custom Service class (loading providers) >> >> >>In RPCRouterServlet.doPost() the provider is loaded as shown below: >><snip> >> Provider provider; >> if ( dd.getProviderType() == >>DeploymentDescriptor.PROVIDER_JAVA ) { >> // Handle Java based services >> provider = new org.apache.soap.providers.RPCJavaProvider(); >> } else if (dd.getProviderType() == >> DeploymentDescriptor.PROVIDER_USER_DEFINED) { >> // Handle user-defined providers >> provider = ServerUtils.loadProvider(dd); >> } else { >> // Handle scripts >> provider = new org.apache.soap.providers.RPCJavaProvider(); >> } >></snip> >> >>I am interested in using a custom Service class to load the >>provider, as >>advertised in DeploymentDescriptor.setServiceClass(). >>However, the above >>code seems to ignore using a custom service class to load the >>provider when >>it is a DeploymentDescriptor.PROVIDER_USER_DEFINED type. My >>plans are to >>modify the >> provider = ServerUtils.loadProvider(dd); into >> provider = loadProvider(dd); >>where loadProvider uses the custom service class to load the >>provider. My >>problem is that ServerUtils.loadProvider creates a new >>instance every call >>and I would like to cache my provider. >> >>Any ideas or comments are greatly appreciated. >> >>TIA, >> >>Chris Bono >>[EMAIL PROTECTED] >>512.531.8518 >>http://www.zilliant.com >> >>