title: How to develop a Java Web Service that request database credentials when it deploys?
body: <p>First, thank you for reading, and I'm sorry about my English.</p>
  
  <p>I have developed a <strong>Java Web Service</strong> with <strong>Eclipse</strong>, with a <strong>JDBC</strong> connection to <strong>Oracle Database</strong>, which contains some methods that gets information from this database (<em>that I created in my local machine for tests</em>), like getEmployee(int id), getAllEmployees(), etc.</p>
  
  <p>I can generate the <strong>.wsdl</strong> and the <strong>.war</strong>, but I don't know how to request database credentials when the administrator deploys my WebService in the server (IBM WebSphere Application Server v7.0).</p>
  
  <p><strong>The problem:</strong> in my tests, I connect to Oracle Database with <em>my</em> host, user and pass, which are hardcoded in a Java file as constants, but I need that server's administrator can change this values for connect to its database, or something like this. (He said me that WebService WAR had to request for database configuration, like user-pass-host.., but I don't know if it's posible or there are other ways)</p>
  
  <p>Again, thanks for reading until here, and all answers will be welcome.</p>
  
  <p>Regards.</p>
  
  <p>PD: If you need some extra info, tell me.</p>