Results 1 to 6 of 6
- 10-29-2009, 07:35 AM #1
Member
- Join Date
- Oct 2009
- Posts
- 2
- Rep Power
- 0
access database connectivity from outside an application
Hi,
I am trying to look for a solution where i need to develop an application component which i need to pluggin to an exisitng application.But the thing is that application component needs to access database for fetching data.So the thing is how will that component access the database based on the type of database connectivity framework used in the existing application.And i dont want to hardcode the database connectivity in the component because each application can have different type of database connectivity frameworks.
If anybody can help me out with this.
Regards,
Suchira
- 10-29-2009, 07:40 AM #2
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
Add a getConnection method to the public interface for your application and have the plugin use that.
- 10-29-2009, 07:41 AM #3
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
If the existing application already accesses the database, why does the component need to access as well? Why can't it request the data it needs from the application that is already connecting?
Edit: Masi is fast todayLast edited by r035198x; 10-29-2009 at 07:44 AM.
- 10-29-2009, 07:51 AM #4
Member
- Join Date
- Oct 2009
- Posts
- 2
- Rep Power
- 0
Hi,
Actually the thing is if the existing application is connecting to some other db and the component needs to connect to another db then in that case howz that possible
Regards,
Suchira
- 10-29-2009, 07:54 AM #5
Senior Member
- Join Date
- Jun 2008
- Posts
- 2,366
- Rep Power
- 7
Then the plugin has to do it itself, of course. Or you have to include the name of the driver class, the url, the user, and the password as arguments to the interface method and hope that the driver jarfile is in the classpath.
- 10-29-2009, 07:56 AM #6
Senior Member
- Join Date
- Aug 2009
- Posts
- 2,388
- Rep Power
- 6
Then you need to explain more clearly because you are skirting on the edges of contradiction.
You askedbut then also you also saidhow will that component access the database based on the type of database connectivity framework used in the existing applicationDo you have one application that you are writing the component for?each application can have different type of database connectivity frameworks
How many types of database connectivity frameworks are in play here?
What is a database connectivity framework?
Similar Threads
-
Database access in bluetooth application
By abhijit in forum JDBCReplies: 0Last Post: 09-21-2009, 11:43 AM -
Database connectivity
By rajiparth in forum JDBCReplies: 1Last Post: 04-07-2009, 07:39 PM -
DSN less connectivity to Ms ACCESS
By sayan751 in forum Advanced JavaReplies: 2Last Post: 03-28-2009, 04:27 PM -
database connectivity
By rilwanfit in forum NetworkingReplies: 1Last Post: 03-13-2009, 07:54 PM -
database connectivity
By vani in forum EclipseReplies: 0Last Post: 11-21-2008, 10:03 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks