Hi
Since two days iam trying to run chap3 .. tutorial provided by the vishal.
I could not able to run it , i have done all the steps exactly.
Finally when i run client, getting exception ...21 more.
I commented database connection part , i returned String "userIdtest".
After that i did not get exception ....21 more and server returned "userIdtest".
I hope error at the line (con= jdbcFactory.getConnection();)
can any body help me to solve this problem, i would be great full to them
vamsi




public String longinUser(String username ,String password)
{
/* Connection con =null;
PreparedStatement ps =null;
ResultSet rs = null;
String userId =null;
try{
con= jdbcFactory.getConnection();
String qureyString ="userid from storeaccess where username=? and password=?";
ps=con.prepareStatement(qureyString);
ps.setString(1,username);
ps.setString(2,password);
rs=ps.executeQuery();
boolean result =rs.next();
if(result)
{
userId=rs.getString("userid");
System.out.println(userId);
}
} catch(SQLException e)
{
e.printStackTrace();
System.out.println("error in the loginuser" +e);
}
finally
{
try{
rs.close();
ps.close();
con.close();
}
catch(Exception e)
{
}
}*/
return "userIdtest";
}




-------------------------------------------------------
This SF.Net email is sponsored by: IBM Linux Tutorials
Free Linux tutorial presented by Daniel Robbins, President and CEO of
GenToo technologies. Learn everything from fundamentals to system
administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to