aspose file tools*
The moose likes EJB and other Java EE Technologies and the fly likes Datasource connection in Client application Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » EJB and other Java EE Technologies
Bookmark "Datasource connection in Client application" Watch "Datasource connection in Client application" New topic
Author

Datasource connection in Client application

Rajesh Balu
Ranch Hand

Joined: Nov 07, 2011
Posts: 55
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]

E Armitage
Rancher

Joined: Mar 17, 2012
Posts: 892
    
    9
Is your client accessing the datasource or the EJB? Does the EJB work?
Rajesh Balu
Ranch Hand

Joined: Nov 07, 2011
Posts: 55
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Datasource connection in Client application