473,396 Members | 2,038 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

How to use the connection object which is made in .dll file

Hi,
I'm getting database connection to Oracle in VB as .dll file. Using oledb the connection string will be
Expand|Select|Wrap|Line Numbers
  1. Provider=OraOLEDB.Oracle.1;Password=xyz;Persist Security Info=True; User Id=xyz; Data Source=sis;Extended Properties=""
.
In JSP, I'm importing "com.jacob.com.*;" and "com.jacob.activeX.*;"
My code goes as below for accessing the .dll file,
Expand|Select|Wrap|Line Numbers
  1. ComThread.Release();
  2. ComThread.InitSTA();
  3. ActiveXComponent tb = null;
  4. tb = new ActiveXComponent("Project2.Class2");
  5. Object test = null;
  6. test = tb.getObject();
  7. Variant v1 = null;
  8. String path_str="c://connect.properties";
  9. v1 = Dispatch.Call(test,"makeConnection",path_str);
  10.  
Reading the property file connection will be made in the .DLL. and Database is getting connected.
My question is how to use this connection for accessing my database and write query to retrive data in JSP.

Thanks,
Vigneshwari.
May 31 '11 #1
0 1435

Sign in to post your reply or Sign up for a free account.

Similar topics

14
by: Agoston Bejo | last post by:
Hi! Why doesn't the following code work? Sub Session_OnEnd Dim Conn Set Conn = Server.CreateObject("ADODB.Connection") Conn.ConnectionString = Application("Connection_String") Conn.Open ...
2
by: meng | last post by:
is it possible to use a single connection object shared by several tasks where each task is handled by a thread? these tasks call stored procedures that return record sets, no editing, update or...
1
by: Ryan P. Kennedy | last post by:
Hello: How does one pool a connection object? I have the same application running on 4 different machines, all connecting to the same server/SQL Server 2000 instance for DB activity. Some...
2
by: Frédéric Mayot | last post by:
Hi, In my web application, I need to connect to an SQL Server database. My pages (UI) will use one or more business objects as well as datareaders (I cannot make everything a business object...)...
0
by: Bernard Lebel | last post by:
Hello, First, this is my first post on this list! A little about myself: I'm the lead technical director in a 3D animation studio, in Montreal. A lot of the Python code I write is to be used in...
7
by: Mrinal Kamboj | last post by:
Hi , I am using OracleConnection object from Oracle ODP.net provider and following is the behaviour which i am finding bit strange : To start with my argument is based on followings facts : ...
3
by: thejamie | last post by:
My question: "What is the correct connection object to use in VS 2005 for a text connection?" will need some background. I am placing code at the end showing how I am reading data from a text file...
2
by: blue875 | last post by:
I have created an Access DB and a new MDW file where I have admin privileges. I have several tables and a form that interacts with them. When I click the "Submit" button on the form, I have it...
1
by: =?Utf-8?B?VmVua2F0ZXNhbiBT?= | last post by:
Hi, I have a requirement of consuming a connection object returned from a COM component deployed in COM+ application. I have given the need for this requirement end of my query. My component...
1
by: DivyangK | last post by:
I want to make connection with one connection object and two connecion strings.While I dont want to break first connection that is made with first connection string.
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.