• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Bear Bibeault
  • Ron McLeod
  • Jeanne Boyarsky
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Liutauras Vilda
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • fred rosenberger
  • salvin francis
Bartenders:
  • Piet Souris
  • Frits Walraven
  • Carey Brown

putting values from a config file into @WebserviceProvider annotation

 
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
CAUTION! Do not touch the blades on your neck propeller while they are active. Tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
    Bookmark Topic Watch Topic
  • New Topic