Win a copy of Think Java: How to Think Like a Computer Scientist this week in the Java in General forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Datasource connection in Client application

 
Rajesh Balu
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,


I have a running application with EJB 2 to connect with database. There is a method to validate the user credentials against database. I want to use that method in client application to validate the user.

I have imported the EJB client jar in client application and able to access EJB. But i am getting different datasource instead of Oracle datasource. Hence i am getting ResultSet as null value. I have attached the debug screen of generated datasource in client application.

Can someone please help me?

Below is the code snippet of client.

Datasource.jpg
[Thumbnail for Datasource.jpg]
Datasource
 
E Armitage
Rancher
Posts: 989
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is your client accessing the datasource or the EJB? Does the EJB work?
 
Rajesh Balu
Ranch Hand
Posts: 55
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,


Client is accessing EJB but not data source directly. I fed up with failure results from database hence i configured the datasource manually.

And EJB is working perfectly.

Thanks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic