It's not a secret anymore!*
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 Android Security Essentials Live Lessons this week in the Android 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
 
Don't get me started about those stupid light bulbs.
 
subject: Datasource connection in Client application
 
Similar Threads
Connecting to Oracle data source from EJB
How to specify the name of the database
Jboss Migration from 4.0.5 to 4.2.3 (getting context.lookup = NULL)
jboss - mysql Table not found in statement
NoInitialContextException