wood burning stoves 2.0*
The moose likes Web Services and the fly likes putting values from a config file into @WebserviceProvider annotation Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Web Services
Bookmark "putting values from a config file into @WebserviceProvider annotation" Watch "putting values from a config file into @WebserviceProvider annotation" New topic
Author

putting values from a config file into @WebserviceProvider annotation

Rahul Popli
Greenhorn

Joined: Aug 09, 2011
Posts: 1
Hi,

I'm trying to deploy a war file to Jboss 4.2.2GA app server that uses the @WebserviceProvider annotation.
In particular the class looks basically like this:


@WebserviceProvider(serviceName="someHardCodedString",
wsdlLocation="someHardCodedString",
targetNamepace="someHardCodedString",
portName="someHardCodedString")

public class ProviderMessageBean implements Provider<SOAPMessage>
{

public void invoke(SOAPMessage message)
{
//random xml manipluate code
}

}


So my problem here is that I don't want to have the values in my annotation to be hard coded strings. Idealy I'm looking for a way to just specify those values in some config file that will be recognized by JBoss and the class. Anybody run into this problem or something similar?

Apologies if this isn't clear enough.....If it isn't I can specify further.

Thanks
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: putting values from a config file into @WebserviceProvider annotation