Member-only story

How to Connect EMC XDB and Read Content with JAVA

Ramesh Ponnusamy
5 min readFeb 15, 2023

In this article, covered how to connect EMC XDB with JAVA and extract the data from the database.

By using the Xhive library, we can establish the connection.

XhiveLibrary also has the feature to read the library and its child nodes. and following libraries have to import

import com.xhive.XhiveDriverFactory;
import com.xhive.core.interfaces.XhiveDatabaseIf;
import com.xhive.core.interfaces.XhiveDriverIf;
import com.xhive.core.interfaces.XhiveObjectIf;
import com.xhive.dom.DomDocument;
import com.xhive.dom.interfaces.*;
import com.xhive.versioning.interfaces.XhiveVersionIf;

Establish Database Connection:

First, Generate the driver URL and Initiate the connection with the XDB server

Initialize the local page cache shared by the sessions for this driver

Only initialize a specific driver once in your application. Use the “initialized()” method to verify whether the driver has been initialized.

String host = "192.999.99.99";
String port = "1236";
String DriverUrl = "xhive://" + host+":"+port ;
System.out.println(DriverUrl);
XhiveDriverIf xhiveDriver = XhiveDriverFactory.getDriver(DriverUrl);
//Initiate the connection
//Initialize the local page cache shared by the…

--

--

Ramesh Ponnusamy
Ramesh Ponnusamy

Written by Ramesh Ponnusamy

Data-Architect, SQL Master,Python ,Django, Flask dev, AI prompting, Linked-in: https://www.linkedin.com/in/ramesh-ponnusamy/ mail : ramramesh1374@gmail.com

No responses yet