Subversion Repositories XServices

Rev

Rev 190 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 190 Rev 197
Line 13... Line 13...
13
 *   See the License for the specific language governing permissions and
13
 *   See the License for the specific language governing permissions and
14
 *   limitations under the License.
14
 *   limitations under the License.
15
 */
15
 */
16
package net.brutex.xservices.ws.impl;
16
package net.brutex.xservices.ws.impl;
Line -... Line 17...
-
 
17
 
-
 
18
import java.io.BufferedInputStream;
-
 
19
import java.io.IOException;
17
 
20
import java.io.InputStreamReader;
18
import java.net.URL;
21
import java.net.URL;
19
import java.time.format.DateTimeFormatter;
22
import java.time.format.DateTimeFormatter;
20
import java.util.ArrayList;
23
import java.util.ArrayList;
21
import java.util.GregorianCalendar;
24
import java.util.GregorianCalendar;
Line 25... Line 28...
25
 
28
 
26
import javax.activation.DataHandler;
29
import javax.activation.DataHandler;
27
import javax.jws.WebParam;
30
import javax.jws.WebParam;
Line 28... Line 31...
28
import javax.jws.WebService;
31
import javax.jws.WebService;
29
 
32
 
30
import org.apache.commons.configuration.ConfigurationException;
33
import org.apache.commons.configuration2.ex.ConfigurationException;
31
import org.apache.commons.configuration.PropertiesConfiguration;
34
import org.apache.commons.configuration2.PropertiesConfiguration;
32
import org.apache.commons.jcs.JCS;
35
import org.apache.commons.jcs.JCS;
33
import org.apache.commons.jcs.access.exception.CacheException;
36
import org.apache.commons.jcs.access.exception.CacheException;
Line 462... Line 465...
462
			logger.debug("Loading Open Air connection details from " + this.getClass().getClassLoader().getResource("/")
465
			logger.debug("Loading Open Air connection details from " + this.getClass().getClassLoader().getResource("/")
463
					+ config);
466
					+ config);
Line 464... Line 467...
464
 
467
 
Line 465... Line 468...
465
			final URL configloc = this.getClass().getClassLoader().getResource(config);
468
			final URL configloc = this.getClass().getClassLoader().getResource(config);
-
 
469
 
466
 
470
			props = new PropertiesConfiguration();
467
			props = new PropertiesConfiguration(configloc);
471
			props.read( new InputStreamReader( new BufferedInputStream( configloc.openStream() )));
468
			final String user = props.getString("user");
472
			final String user = props.getString("user");
469
			final String password = props.getString("password");
473
			final String password = props.getString("password");
470
			final String company = props.getString("company");
474
			final String company = props.getString("company");
Line 479... Line 483...
479
			logger.error(e);
483
			logger.error(e);
480
			e.printStackTrace();
484
			e.printStackTrace();
481
		} catch (ConfigurationException e) {
485
		} catch (ConfigurationException e) {
482
			logger.error(e);
486
			logger.error(e);
483
			e.printStackTrace();
487
			e.printStackTrace();
-
 
488
		} catch (IOException e) {
-
 
489
			logger.error(e);
-
 
490
			e.printStackTrace();
484
		} finally {
491
		} finally {
Line 485... Line 492...
485
 
492
 
486
		}
493
		}
487
		return null;
494
		return null;