Quantcast

how to configure jndi for oracle 11g XE in context.xml file ?

classic Classic list List threaded Threaded
6 messages Options
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

how to configure jndi for oracle 11g XE in context.xml file ?

batkhuyag13
This post has NOT been accepted by the mailing list yet.
hello guys. I wanted to configure jndi for oracle and i'm having some problems. I was little confused for that context.xml config file. is there someone who has already configured context.xml for oracle can u share it with me ?
thanks.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: how to configure jndi for oracle 11g XE in context.xml file ?

David BRASSELY
Administrator
This post has NOT been accepted by the mailing list yet.
Hello guy,

Some users / customers are already using Oracle.
Perhaps you can share your context.xml (without your credentials).

Regards,
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: how to configure jndi for oracle 11g XE in context.xml file ?

Jakub Grabowski
This post has NOT been accepted by the mailing list yet.
Here you are:

<?xml version="1.0" encoding="UTF-8"?>

<context xmlns="http://www.open-esb.net/standalone/jndi/">
   
   
    <dataSource-pool-properties>
        <dbConnector-name>oracleXAPool</dbConnector-name>
        <datasource-classname>oracle.jdbc.xa.client.OracleXADataSource</datasource-classname>       
        <resource-type>Datasource</resource-type>
        <database-name>Oracle</database-name>       
        <database-vendor>Oracle</database-vendor>
        <database-version>11</database-version>               
        <dbconnector-description>DBConnector for Oracle XA</dbconnector-description>
        <dataSource-properties>
            <property>
                <name>user</name>
                <value>***</value>
                <description></description>
            </property>
            <property>
                <name>password</name>
                <value>***</value>
                <description></description>
            </property>
            <property>
                <name>serverName</name>
                <value>localhost</value>
                <description></description>
            </property>
            <property>
                <name>portNumber</name>
                <value>1521</value>
                <description></description>
            </property>
            <property>
                <name>databaseName</name>
                <value>XE</value>
                <description></description>
            </property>
            <property>
                <name>driverType</name>
                <value>thin</value>
                <description></description>
            </property>   
        </dataSource-properties>
        <pool-properties>
            <property>
                <name>initialSize</name>
                <value>1</value>
                <description></description>
            </property>
            <property>
                <name>maxActive</name>
                <value>5</value>
                <description></description>
            </property>
            <property>
                <name>maxIdle</name>
                <value>2</value>
                <description></description>
            </property>
            <property>
                <name>minIdle</name>
                <value>2</value>
                <description></description>
            </property>
        </pool-properties>
    </dataSource-pool-properties>
       
    <dataSource-pool-properties>
        <dbConnector-name>oracleNonXAPool</dbConnector-name>
        <datasource-classname>oracle.jdbc.pool.OracleDataSource</datasource-classname>       
        <resource-type>Datasource</resource-type>
        <database-name>Oracle</database-name>       
        <database-vendor>Oracle</database-vendor>
        <database-version>11</database-version>               
        <dbconnector-description>DBConnector for Oracle NonXA</dbconnector-description>
        <dataSource-properties>
            <property>
                <name>user</name>
                <value>***</value>
                <description></description>
            </property>
            <property>
                <name>password</name>
                <value>***</value>
                <description></description>
            </property>
            <property>
                <name>serverName</name>
                <value>localhost</value>
                <description></description>
            </property>
            <property>
                <name>portNumber</name>
                <value>1521</value>
                <description></description>
            </property>
            <property>
                <name>databaseName</name>
                <value>XE</value>
                <description></description>
            </property>
            <property>
                <name>driverType</name>
                <value>thin</value>
                <description></description>
            </property>
        </dataSource-properties>
        <pool-properties>
            <property>
                <name>initialSize</name>
                <value>1</value>
                <description></description>
            </property>
            <property>
                <name>maxActive</name>
                <value>5</value>
                <description></description>
            </property>
            <property>
                <name>maxIdle</name>
                <value>2</value>
                <description></description>
            </property>
            <property>
                <name>minIdle</name>
                <value>2</value>
                <description></description>
            </property>
        </pool-properties>
    </dataSource-pool-properties>

    <jdbc-resources>
        <dbConnector-name>oracleNonXAPool</dbConnector-name>
        <jndi-name>bpelseNonXA</jndi-name>       
        <description>Datasource connection to Oracle NonXA</description>
    </jdbc-resources>

    <jdbc-resources>
        <dbConnector-name>oracleXAPool</dbConnector-name>
        <jndi-name>bpelseXA</jndi-name>       
        <description>Datasource connection to Oracle XA</description>
    </jdbc-resources>
   
</context>

I'll try to add it to sample context.xml in repo.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: how to configure jndi for oracle 11g XE in context.xml file ?

batkhuyag13
This post has NOT been accepted by the mailing list yet.
Thanks for your reply. it works good  after changing few things and jndi name bpelseXA.  
But changing jndi name to previous project jndi name of jdbc/bpelseXA  then restarting OE instance following error occured.
 javax.naming.NameNotFoundException: Name [jdbc/bpelseXA] is not bound in this Context. Unable to find [jdbc].
Is there anything i need to do change jndi name without error ?
thanks.
Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: how to configure jndi for oracle 11g XE in context.xml file ?

David BRASSELY
Administrator
This post has NOT been accepted by the mailing list yet.
Hi,

It’s because, at this time, openesb standalone does not support subcontext in JNDI hierarchy.

Regards,

Le 13 avr. 2015 à 06:45, batkhuyag13 [via OpenESB Community Forum] <[hidden email]> a écrit :

Thanks for your reply. it works good  after changing few things and jndi name bpelseXA.  
But changing jndi name to previous project jndi name of jdbc/bpelseXA  then restarting OE instance following error occured.
 javax.naming.NameNotFoundException: Name [jdbc/bpelseXA] is not bound in this Context. Unable to find [jdbc].
Is there anything i need to do change jndi name without error ?
thanks.


To start a new topic under OpenESB Community Forum, email [hidden email]
To unsubscribe from OpenESB Community Forum, click here.
NAML

Reply | Threaded
Open this post in threaded view
|  
Report Content as Inappropriate

Re: how to configure jndi for oracle 11g XE in context.xml file ?

Jakub Grabowski
This post has NOT been accepted by the mailing list yet.
David BRASSELY wrote
It’s because, at this time, openesb standalone does not support subcontext in JNDI hierarchy.
Indeed. I was migrating from GlassfishESB and had to replace "jdbc/something" with "something".

Regards,
Jakub Grabowski.
Loading...