This week's book giveaways are in the Refactoring and Agile forums.
We're giving away four copies each of Re-engineering Legacy Software and Docker in Action and have the authors on-line!
See this thread and this one for details.
Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization 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
Datasource
[Thumbnail for Datasource.jpg]
 
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