Focal Point Banner


As of December 1, 2020, Focal Point is retired and repurposed as a reference repository. We value the wealth of knowledge that's been shared here over the years. You'll continue to have access to this treasure trove of knowledge, for search purposes only.

Join the TIBCO Community
TIBCO Community is a collaborative space for users to share knowledge and support one another in making the best use of TIBCO products and services. There are several TIBCO WebFOCUS resources in the community.

  • From the Home page, select Predict: WebFOCUS to view articles, questions, and trending articles.
  • Select Products from the top navigation bar, scroll, and then select the TIBCO WebFOCUS product page to view product overview, articles, and discussions.
  • Request access to the private WebFOCUS User Group (login required) to network with fellow members.

Former myibi community members should have received an email on 8/3/22 to activate their user accounts to join the community. Check your Spam folder for the email. Please get in touch with us at community@tibco.com for further assistance. Reference the community FAQ to learn more about the community.



Read-Only Read-Only Topic
Go
Search
Notify
Tools
JDBC Code
 Login/Join
 
Member
posted
I am trying to access EDA server throught the Jlink /JDBC library. I keep getting empty record sets. is there any exmples on how to do this?
 
Posts: 12 | Registered: August 21, 2007Report This Post
Virtuoso
posted Hide Post
Simple example:

Make sure jlink.jar is on the classpath.

package ibiexample;

import java.sql.Connection;
import java.sql.DriverManager;
import java.sql.PreparedStatement;
import java.sql.ResultSet;
import java.sql.SQLException;

public class IBIJdbcCall {
	
	public static void main(String args[]) { 
		Connection conn = null;
		PreparedStatement ps = null;
		ResultSet rs = null;
		
		try {
			Class.forName("ibi.jlink.EdaDriver");
			conn = DriverManager.getConnection("jdbc:eda://localhost:8116;server=EDASERVE", "userid", "password");
			ps = conn.prepareStatement("SELECT * FROM CAR WHERE COUNTRY = ?");
			ps.setString(1, args[0]);
			rs = ps.executeQuery();
			
			// If there are rows
			if (rs != null) {
				while ( rs.next() ) {
					for ( int i = 1 ; i <= rs.getMetaData().getColumnCount(); i++ ) {
						System.out.print(rs.getObject(i).toString() + "\t");
					}
					System.out.println(" ");
				}
			}
		} catch (SQLException eSQL) {
			System.out.println("General SQL Exception: " + eSQL);
		} catch (Exception e) {
			System.out.println("General Exception: " + e);
		} finally {
			try {
				ps.close();
				rs.close();
				conn.close();
			} catch (SQLException eSQL) {
				System.out.println("General SQL Exception While closing connections: " + eSQL);
			}
		}
	}
	
}


"There is no limit to what you can achieve ... if you don’t care who gets the credit." Roger Abbott
 
Posts: 1102 | Location: Toronto, Ontario | Registered: May 26, 2004Report This Post
Member
posted Hide Post
where could i download the jlink.jar?
could you send it to me please?
thanks a lot.


webfocus 7.65
windows xp sp3
excel,html ,pdf,and graph
 
Posts: 20 | Registered: January 26, 2010Report This Post
  Powered by Social Strata  

Read-Only Read-Only Topic


Copyright © 1996-2020 Information Builders