Some questions about JDBC

464 views
Skip to first unread message

jess...@gmail.com

unread,
Mar 2, 2016, 4:34:13 AM3/2/16
to Fujitsu RunMyProcess Developer Community
Hi,

I'm trying a JDBC connector, at present I have a problem with the SEC and I can not test it.
For this reason I would like test JDBC connector in local, i.e. only I want to know the necessary parameters for to invoke, in command line, JDBC.jar.

Other question, in this url: http://docs.runmyprocess.com/User_Guide/Development_Environment/Toolbox/My_Connectors/Connectors

I can see how to configure RDCP provider and in this support I've seen snapshot like (image attached), but I don't know where is this configuration in RMP IDE.

I need some help.

Thank you and regards,

Jessica

RDCP.png

Pankaj Kumar

unread,
Mar 2, 2016, 6:19:20 AM3/2/16
to Fujitsu RunMyProcess Developer Community
Hi,

To connect to local db, using RDCP provider, you need to setup SEC. I have highlighted the text below in blue from User Guide.

User name
Id : Unique ID of the service. The ID is generated and cannot be modified.
Provider url : Address to access server where JDBC connector is set up. It can be localhost if using Secured Entreprise Connector


Thank you,
Pankaj Kumar
Fujitsu RunMyProcess Support


--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.
To view this discussion on the web visit https://groups.google.com/a/runmyprocess.com/d/msgid/supportforum/513f31d2-a0da-4f72-8460-1aac4032d127%40runmyprocess.com.
For more options, visit https://groups.google.com/a/runmyprocess.com/d/optout.

jessi mj

unread,
Mar 2, 2016, 6:52:06 AM3/2/16
to Fujitsu RunMyProcess Developer Community
Then is not possible to test JDBC.jar without to setup SEC previously ?, but it's a .jar I can execute it ( java -jar JDBC.jar). Maybe, I can to put some parameters in command line, like the port.

My other question was
I can see how to configure RDCP provider and in this support I've seen snapshot like (image attached), but I don't know where is this configuration in RMP IDE.


Thanks again and regards,

Jessi


You received this message because you are subscribed to a topic in the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this topic, visit https://groups.google.com/a/runmyprocess.com/d/topic/supportforum/S1HP0-mYkNI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to supportforum...@runmyprocess.com.

To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.

jess...@gmail.com

unread,
Mar 4, 2016, 5:01:36 AM3/4/16
to Fujitsu RunMyProcess Developer Community, jess...@gmail.com
Hi again,

I have another question. Is it possible to connect rmp with a local DB with https protocol, or is necessary to use rdcp protocol?

Because I have configured a provider with https and I would like to use it.

By the way, I found the configuration of the connector for rdcp provider.

Thanks and regards,

Jessica

Pankaj Kumar

unread,
Mar 7, 2016, 2:08:00 AM3/7/16
to Fujitsu RunMyProcess Developer Community
Hi,

You can create mysql adaptor and access the database from RunMyProcess by http post request.

Reference link:-

Thank you,
Pankaj Kumar
Fujitsu RunMyProcess Support


Jessica

--
Fujitsu - RunMyProcess
---
You received this message because you are subscribed to the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this group and stop receiving emails from it, send an email to supportforum...@runmyprocess.com.
To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.

jess...@gmail.com

unread,
Mar 7, 2016, 4:51:09 AM3/7/16
to Fujitsu RunMyProcess Developer Community
Ok,

thank you for the reply, but, Is it possible to call JDBC.jar with eclipse. I'd try it before using it from RMP. Other possibility could be to call JDB.jar from command lines adding the necessaries parameters( but I don't know).

Can you help me?

Regards,

Jessi

Pankaj Kumar

unread,
Mar 9, 2016, 11:17:32 PM3/9/16
to Fujitsu RunMyProcess Developer Community
Hi,

You can connect to mysql database by Eclipse using JDBC jar and mysql connector jar. However to integrate RunMYProcess to your Database, you need to use Secure Enterprise connector (SEC).

Thank you,
Pankaj Kumar
Fujitsu RunMyProcess Support

jessi mj

unread,
Mar 10, 2016, 4:31:21 AM3/10/16
to Fujitsu RunMyProcess Developer Community
Hi and thanks for your reply,

but I have another question, if I import JDBC.jar and mysql-connector.jar in a java project, how I can to use this classes? Because I don't see the implementación. Inside of JDBC.jar there are a package named:  org.runmyprocess.sec. then for test this JAR also is necessary to have SEC, no? 

Maybe, I  have to create a different project instead of java project, or is necessary to import more libraries, or... I don't know.

Can someone help me? 

Regards,

Jessi




You received this message because you are subscribed to a topic in the Google Groups "Fujitsu RunMyProcess Developer Community" group.
To unsubscribe from this topic, visit https://groups.google.com/a/runmyprocess.com/d/topic/supportforum/S1HP0-mYkNI/unsubscribe.
To unsubscribe from this group and all its topics, send an email to supportforum...@runmyprocess.com.

To post to this group, send email to suppor...@runmyprocess.com.
Visit this group at https://groups.google.com/a/runmyprocess.com/group/supportforum/.

Pankaj Kumar

unread,
Mar 12, 2016, 8:12:08 AM3/12/16
to Fujitsu RunMyProcess Developer Community
Hi Jessica,

In JDBC.jar, JDBC.class file method, connection to database is as follows:-

 private Connection getConnection(String userName, String password, String sqlSource, String sqlDriver, String driverPath) throws Exception {
        this.LOG.log("Connecting to " + sqlSource, Level.INFO);
        Connection conn = null;
        Properties connectionProps = new Properties();
        connectionProps.put("user", userName);
        connectionProps.put("password", password);
        URL[] urls = new URL[1];
        File f = new File(driverPath);
        urls[0] = f.toURL();
        URLClassLoader ucl = URLClassLoader.newInstance(urls);
        Driver driver = (Driver)Class.forName(sqlDriver, true, ucl).newInstance();
        DriverManager.registerDriver(new DriverShim(driver));
        conn = DriverManager.getConnection(sqlSource, userName, password);
        this.LOG.log("Connected to database", Level.INFO);
        return conn;
    }

Here, string sqlSource is the database address either it is local machine or remote server, also kindly do not relate this jar to Java™ JDBC API jar provided by Oracle which consist mainly two package "java.sql" and "javax.sql" and database driver is implementation of this API.

org.runmyprocess.sec.SECLogManager.JDBC class inside uses the JDBC API for connection and executing query, this class converts the resultset to JSONObject by resultSet2JSONObject method.


Thank you,
Pankaj Kumar
Fujitsu RunMyProcess Support

Reply all
Reply to author
Forward
0 new messages