Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- **
- *
- */
- package com.xxxxx.www.testprocess;
- import javax.jws.*;
- import java.sql.*;
- import java.util.*;
- /**
- * @author Suryasol6
- *
- */
- @WebService(name="TestProcess",targetNamespace ="http://www.example.org/TestProcess")
- public class TestProcess {
- private Connection connect = null;
- private Statement statement = null;
- private PreparedStatement ps = null;
- private ResultSet rs = null;
- private static final String CONNECTION_URL = "jdbc:mysql://localhost:3306/java_test?user=root&;password=";
- @WebMethod(action="http://www.example.org/TestProcess/TestLogin")
- @WebResult(name="TestLoginresponse")
- public String TestLogin(@WebParam(name="name")
- String name,@WebParam(name="password")
- String password)
- {
- try
- {
- Class.forName("com.mysql.jdbc.Driver").newInstance();
- }
- catch(Exception e)
- {
- return "fail here";
- }
- return "pass";
- }
- }
- <JBoss_home>/server/default/lib
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement