Pooled Data Sources in OC4J

Hi all
i have jsut started working with OAS, and i have noticed it manages Data Sources i a very easy way through xml configuration files.
The question is, do i have to write a connection pool of my own, or the server just manages it, as long as it is provided with correct information about the database?
Any help will be appreciated
thank you

For the Developer Preview you can see documentation at
http://otn.oracle.com/tech/java/oc4j/documentation_preview.html
For the production documentation go to
http://otn.oracle.com/docs/tech/java/oc4j/content.html
The book that you want to look for related to data sources and pooling is the J2EE Services Guide and it is located at
http://otn.oracle.com/tech/java/oc4j/pdf/oc4j_j2ee_svcguide_r2.pdf
Thanks -- Jeff

Similar Messages

  • Testing data sources in oc4j-ra.xml

    Is there a way to test the data sources in oc4j-ra.xml from the server? I have a server sitting inside a DMZ that has access back to internal databases. The DMZ has its own set of IP addresses and it has specific openings to the internal resources it needs. that is why i would like to test the connections from the server.

    Hi,
    You're right. I've downloaded JDev 10.1.2.
    The working version:
      <data-source name="jdev-connection-myconn"
                   class="com.evermind.sql.DriverManagerDataSource"
                   location="jdbc/myconnCoreDS" xa-location="jdbc/xa/myconnXADS"
                   ejb-location="jdbc/myconnDS"
                   pooled-location="jdbc/myconnPooledDS"
                   connection-driver="oracle.jdbc.driver.OracleDriver"
                   username="xxx" password="yyy"
                   url="jdbc:oracle:thin:@localhost:1521:mysid"
                   inactivity-timeout="30"/>and:
    DataSource ds = (DataSource) getInitialContext().lookup("jdbc/myconnDS");JDev generates the correct data-sources.xml, if you create the data-sources.xml with its wizard (New Galery/General/DeploymentDescriptors/data-sources.xml). Then you can see in the properties dialog, the default setting is: Auto update data-sources.xml when running or deploying to OC4J.
    So when you first run the embedded OC4J, your data-sources.xml file will be updated with your connections.
    I read these useful things in Olaf Heimburger's blog :) (OC4J: Configuring DataSources, 2007-05-03)
    Regards,
    Kati

  • Pooled data sources

    I've defined a pooled data-source, with an inactivity-timeout="30", min-connections="2" and max-connection="5". I've monitor database connections and when maximum number of connections is reached (5), it never decreases, even past a lot of time (more than 30 obviously) without database access. All 5 connections remains open all the time.
    Any idea?
    Here you are my data-sources.xml
    &lt;data-source
    name="SIAEDS"
    class="oracle.jdbc.pool.OracleConnectionCacheImpl"
    location="jdbc/SIAECOREDS"
    ejb-location="jdbc/SIAEDS"
    xa-location="jdbc/xa/SIAEXADS"
    connection-driver="oracle.jdbc.driver.OracleDriver"
    username="xxxx" password="xxxx"
    url="jdbc:oracle:thin:@xxxx.yyy.zzz:1521:bddes"
    min-connections="2"
    max-connections="5"
    inactivity-timeout="30"
    /&gt;

    I'm using OAS9i 9.0.3. under linux.
    I search my data-source with ejb-location.
    Any more information?
    Thanks in advance.

  • Multiple data sources in OC4J 10g

    I've read through the documentation, searched metalink and searched the posts on the forums. There's so many examples out there that I've gotten myself confused. I haven't been able to locate an example for me, though.
    After all that reading, I still don't quite understand JNDI and data sources. There's 2 problems that I'm running into that are somewhat related.
    First off, most of the examples I've found seem to indicate that I can make up whatever name I want to put in for location. I seem to be missing something, because then my application cannot find that data source.
    The second problem, is the basis for the first problem. I was able to create one data source which used the location jdbc/OracleCoreDS. However, since I work in an environment with multiple oracle databases, I wanted to create data sources for those other databases, the only difference being the URL. Enterprise Manager will not let me create another data source with the same location.
    I was hoping someone could explain to me what else needs to happen to link up my own value for location so that my application can find the data source.
    Thanks

    Hello,
    A data source entry is for one single database, so if you have multiple database to connect into your application you must create 1 entry per database (eg: jdbc/database1 jdbc/database2)
    If you want to manage transactions over multiple databases (2 Phases Commit) you should the distributed transaction coordinator (DTC) provided within OracleAS.
    For these 2 points (multi DB and transaction) I am inviting you to read the chapter 4-Datasources) on the "Oracle Application Server Containers for J2EE: Services Guide"
    Regards
    Tugdual Grall

  • Problem with new data-sources format

    Hi, I m moving to Oracle IAS 10.1.3, so i m testing the application with the standalone version.
    I use the datasource converter just like the manual say.
    this is how datasources looks..
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <data-sources>
    <managed-data-source user="scott" password="tiger" login-timeout="-1" connection-pool-name="OracleDS_connectionPool" jndi-name="jdbc/OracleCoreDS" name="OracleDS_jdbc/OracleCoreDS"/>
    <managed-data-source login-timeout="-1" connection-pool-name="OracleDS_connectionPool" jndi-name="jdbc/OracleCoreDS_non_tx" name="jdbc/OracleCoreDS_non_tx_jdbc/OracleCoreDS_non_tx"/>
    <managed-data-source login-timeout="-1" connection-pool-name="OracleDS_connectionPool" jndi-name="jdbc/OracleDS" name="jdbc/OracleDS_jdbc/OracleDS"/>
    <native-data-source user="user" password="pass" url="jdbc:oracle:thin:@70.101.0.200:1521:DEV" login-timeout="-1" data-source-class="oracle.jdbc.pool.OracleDataSource" jndi-name="jdbc/etgs" name="etgs"/>
    <connection-pool name="etgs_connectionPool" connection-retry-interval="0" inactivity-timeout="30" max-connections="2147483647">
    <connection-factory factory-class="oracle.jdbc.pool.OracleDataSource" user="etgs" password="etgs" url="jdbc:oracle:thin:@70.101.0.200:1521:DEV" login-timeout="-1"/>
    </connection-pool>
    <connection-pool name="OracleDS_connectionPool" connection-retry-interval="0" inactivity-timeout="30" max-connections="2147483647">
    <connection-factory factory-class="oracle.jdbc.driver.OracleDriver" user="scott" password="tiger" url="jdbc:oracle:thin:@//localhost:1521/oracle.regress.rdbms.dev.us.oracle.com" login-timeout="-1"/>
    </connection-pool>
    </data-sources>
    When I start de oc4j, I have the following problem:
    C:\soft\oc4j_101300\bin>oc4j -start
    Starting OC4J from C:\soft\oc4j_101300\j2ee\home ...
    [2006-08-23 17:54:46,210] WARN org.hibernate.cfg.HbmBinder - Could not perform validation checks for component as the c
    lass ar.com.tgs.spac.domain.solicitud.SolicitudProgramada was not found
    [2006-08-23 17:54:49,882] WARN org.hibernate.util.JDBCExceptionReporter - SQL Error: 17002, SQLState: null
    [2006-08-23 17:54:49,882] ERROR org.hibernate.util.JDBCExceptionReporter - Excepci¾n de E/S: Socket is not connected
    [2006-08-23 17:54:49,897] WARN org.hibernate.cfg.SettingsFactory - Could not obtain connection metadata
    java.sql.SQLException: Excepci¾n de E/S: Socket is not connected
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:138)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:175)
    at oracle.jdbc.driver.DatabaseError.throwSqlException(DatabaseError.java:287)
    at oracle.jdbc.driver.T4CConnection.logon(T4CConnection.java:328)
    at oracle.jdbc.driver.PhysicalConnection.<init>(PhysicalConnection.java:430)
    at oracle.jdbc.driver.T4CConnection.<init>(T4CConnection.java:151)
    at oracle.jdbc.driver.T4CDriverExtension.getConnection(T4CDriverExtension.java:32)
    at oracle.jdbc.driver.OracleDriver.connect(OracleDriver.java:608)
    at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:218)
    at oracle.jdbc.pool.OracleDataSource.getConnection(OracleDataSource.java:159)
    at org.springframework.orm.hibernate3.LocalDataSourceConnectionProvider.getConnection(LocalDataSourceConnectionP
    rovider.java:80)
    at org.hibernate.cfg.SettingsFactory.buildSettings(SettingsFactory.java:72)
    at org.hibernate.cfg.Configuration.buildSettings(Configuration.java:1463)
    at org.hibernate.cfg.Configuration.buildSessionFactory(Configuration.java:1004)
    at org.springframework.orm.hibernate3.LocalSessionFactoryBean.newSessionFactory(LocalSessionFactoryBean.java:777
    at org.springframework.orm.hibernate3.LocalSessionFactoryBean.afterPropertiesSet(LocalSessionFactoryBean.java:70
    3)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.invokeInitMethods(AbstractAutowi
    reCapableBeanFactory.java:1058)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapab
    leBeanFactory.java:363)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueRes
    olver.java:176)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionV
    alueResolver.java:105)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAuto
    wireCapableBeanFactory.java:1012)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCap
    ableBeanFactory.java:823)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapab
    leBeanFactory.java:345)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueRes
    olver.java:176)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionV
    alueResolver.java:105)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAuto
    wireCapableBeanFactory.java:1012)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCap
    ableBeanFactory.java:823)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapab
    leBeanFactory.java:345)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueRes
    olver.java:176)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionV
    alueResolver.java:105)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveManagedMap(BeanDefinitionValueRe
    solver.java:225)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionV
    alueResolver.java:117)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.resolveConstructorArguments(Abst
    ractAutowireCapableBeanFactory.java:713)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.autowireConstructor(AbstractAuto
    wireCapableBeanFactory.java:611)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapab
    leBeanFactory.java:329)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueRes
    olver.java:176)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionV
    alueResolver.java:105)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAuto
    wireCapableBeanFactory.java:1012)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCap
    ableBeanFactory.java:823)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapab
    leBeanFactory.java:345)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueRes
    olver.java:176)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionV
    alueResolver.java:105)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAuto
    wireCapableBeanFactory.java:1012)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCap
    ableBeanFactory.java:823)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapab
    leBeanFactory.java:345)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveReference(BeanDefinitionValueRes
    olver.java:176)
    at org.springframework.beans.factory.support.BeanDefinitionValueResolver.resolveValueIfNecessary(BeanDefinitionV
    alueResolver.java:105)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.applyPropertyValues(AbstractAuto
    wireCapableBeanFactory.java:1012)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.populateBean(AbstractAutowireCap
    ableBeanFactory.java:823)
    at org.springframework.beans.factory.support.AbstractAutowireCapableBeanFactory.createBean(AbstractAutowireCapab
    leBeanFactory.java:345)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:226)
    at org.springframework.beans.factory.support.AbstractBeanFactory.getBean(AbstractBeanFactory.java:147)
    at org.springframework.beans.factory.support.DefaultListableBeanFactory.preInstantiateSingletons(DefaultListable
    BeanFactory.java:275)
    at org.springframework.context.support.AbstractApplicationContext.refresh(AbstractApplicationContext.java:318)
    at org.springframework.web.context.support.AbstractRefreshableWebApplicationContext.refresh(AbstractRefreshableW
    ebApplicationContext.java:134)
    at org.springframework.web.context.ContextLoader.createWebApplicationContext(ContextLoader.java:230)
    at org.springframework.web.context.ContextLoader.initWebApplicationContext(ContextLoader.java:156)
    at org.springframework.web.context.ContextLoaderListener.contextInitialized(ContextLoaderListener.java:48)
    at com.evermind.server.http.HttpApplication.initDynamic(HttpApplication.java:1015)
    at com.evermind.server.http.HttpApplication.<init>(HttpApplication.java:649)
    at com.evermind.server.ApplicationStateRunning.getHttpApplication(ApplicationStateRunning.java:428)
    at com.evermind.server.Application.getHttpApplication(Application.java:512)
    at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.createHttpApplicationFromReference(HttpSite
    .java:1975)
    at com.evermind.server.http.HttpSite$HttpApplicationRunTimeReference.<init>(HttpSite.java:1894)
    at com.evermind.server.http.HttpSite.initApplications(HttpSite.java:633)
    at com.evermind.server.http.HttpSite.setConfig(HttpSite.java:302)
    at com.evermind.server.http.HttpServer.setSites(HttpServer.java:273)
    at com.evermind.server.http.HttpServer.setConfig(HttpServer.java:180)
    at com.evermind.server.ApplicationServer.initializeHttp(ApplicationServer.java:2296)
    at com.evermind.server.ApplicationServer.setConfig(ApplicationServer.java:944)
    at com.evermind.server.ApplicationServerLauncher.run(ApplicationServerLauncher.java:113)
    at java.lang.Thread.run(Thread.java:595)
    [2006-08-23 17:54:50,179] WARN net.sf.ehcache.config.Configurator - No configuration found. Configuring ehcache from eh
    cache-failsafe.xml found in the classpath: code-source:/C:/soft/oc4j_101300/j2ee/home/applications/app-web/WEB-INF/lib/e
    hcache-1.1.jar!ehcache-failsafe.xml
    Any idea ?
    really thanks

    Another strange thing..
    My ABAP colleague, debugged the program for me and point out:
          *   get data class (only standard and user values)
    >         SELECT * FROM ddart INTO TABLE l_t_ddart
                                  ORDER BY tabart.
              DELETE l_t_ddart WHERE   ddclass <> 'STD'  AND
                                       ddclass <> 'USR'.
              LOOP AT l_t_ddart INTO l_s_ddart.
    The l_t_ddart table contains only 21 rows (without my new Data Class, which is visible under SE16!)! I checked under oracle sqlplus and SELECT * FROM SAP<SID>.ddart; returned 22 rows WITH my new Data Class!
    I'm a little bit confused...

  • How to get a EAR package for deploying without local data-source setting in JDev9i?

    Hi all,
    I want to use pooled data-sources defined in OC4J's global configuration setting directory in JDEV_HOME\j2ee\home\config.
    But when I packaged my application to an EAR file,it contains it's local data-sources.xml file in the package.Each time the server was restared,the local data-sources.xml file was overwritten by the originally setting in the EAR package,thus I cannot use the pooled settings.
    So could let me know how to package a EAR file without containing it's local data-source setting,but use the global data-source setting?Or how to control the local data-source setting without changed after mannully defined.
    Your reply is greatly appreciated!
    Regards,
    Robbin Woo

    Mike,
    You don't need a File to do what you want. Even if you could, it would be wrong to use a file.
    It would be wrong, because the compiler might not by using a JavaFileManager that is actually backed by a filesystem. It could be backed by some form of repository such as a database, or it could be backed by a transient in memory file system ( An example of the latter is the [annotation processor test framework|https://hickory.dev.java.net/nonav/apidocs/index.html?net/java/dev/hickory/testing/package-summary.html] in hickory)
    But probably of more interest to you, you don't need to because you can simply [get an InputStream|http://java.sun.com/javase/6/docs/api/javax/tools/FileObject.html#openInputStream()] from the FileObject returned from [filer.getResource(...)|http://java.sun.com/javase/6/docs/api/javax/annotation/processing/Filer.html#getResource(javax.tools.JavaFileManager.Location,%20java.lang.CharSequence,%20java.lang.CharSequence)] and read it.
    You might also find the [Compiler Tree API|http://java.sun.com/javase/6/docs/jdk/api/javac/tree/index.html] useful. The Compiler Tree API is available to annotation processors running in Oracle's (Sun's) javac, but not in other compilers (possibly limiting portability).
    With this API you can [convert |http://java.sun.com/javase/6/docs/jdk/api/javac/tree/com/sun/source/util/Trees.html#getPath(javax.lang.model.element.Element)] the Element representing the annotation to a Treepath then [get the leaf node|http://java.sun.com/javase/6/docs/jdk/api/javac/tree/com/sun/source/util/TreePath.html#getLeaf()] and from that tree [obtain its offsets|http://java.sun.com/javase/6/docs/jdk/api/javac/tree/com/sun/source/util/Trees.html#getSourcePositions()] within the source file.
    Bruce

  • Access data sources supporting Tuxedo

    WLS 5.1 states that it does not support two-phase commit.
    In fact, if I try to establish two connections to different Oracle
    databases within the same entity bean or session bean within a
    transactional context then an exception is thrown.
    I need to perform updates to two different resources, the first is an
    Oracle database and the second is a Clarify CRM database.
    The problem is getting the updates to both resources done atomically.
    The Oracle database has a layer of EJB's and will run inside WebLogic.
    The Clarify system only comes with a Java Bean interface (not an EJB
    interface).
    Obviously, at some point a connection needs to be established to the
    underlying Oracle Clarify database and I suspect that the Java Bean
    interface that Clarify provides will perform any transactional stuff per
    method call. Although we may be able to detect Clarify problems through
    exceptions thrown from the Java Bean methods, presumably for each
    successful Java Bean method call the underlying data source changes
    associated with it will be committed. Any subsequent Java Bean method
    call that fails can too be detected but we have no way to roll back the
    changes made in the previous method calls. This is obviously a typically
    transaction based problem.
    So, Clarify supports BEA Tuxedo, presumably for this purpose. Perhaps
    someone can confirm, but I think that BEA Jolt provides a Java API to
    BEA Tuxedo. Is this the currently recommended way to communicate with
    Tuxedo? And does Jolt simply provide the equivalent XA methods such as
    transaction start, prepare, commit methods etc?
    I mentioned at the start that an exception will be thrown if an attempt
    is made to open more than one database connection. Presumably, the
    container will not be able to detect this if the connection is retrieved
    in an independent Java class that is not part of the EJB? this is
    important as BEA Jolt or the underlying Java Bean classes must at some
    point establish a connection.
    If Jolt provides this type of interface then presumable I could have a
    stateless session bean that updates the first Oracle data source through
    the EJB's and then simply starts a transaction using Jolt, then applies
    the clarify changes using the Java Beans and then can use the two-phase
    commit capabilities of Tuxedo to 'prepare' the Clarify changes. If the
    prepare fails then a system exception will be thrown to rollback the
    changes to the first data source, otherwise Jolt will be used to tell
    Tuxedo to commit the changes and then the first data source will be
    committed when the session bean method completes.
    One drawback that I can see is that the transactional calls to Jolt will
    be hardcoded in the beans and not controlled by transactional
    demaraction in the deployment descriptors so we would need to be careful
    when the transactional boundaries changes in the deployment descriptor.
    I can't see how Weblogic 6.0 can assist us here as we don't have an EJB
    intterface to Clarify.
    How does the J2EE Connector stuff fit into this?
    Anyone interfaced with Clarify through Jolt/Tuxedo - is the perfromance
    adequate?
    Many thanks in advance

    Hi,
    You can also have a look at Metalink Note:150766.1 :- Subject:      How to Access a JDBC Data Source From OC4J Using a JNDI Lookup
    Regards,
    Sandeep

  • Dynamically switch phisical data source

    Hi,
    Is it possible to dynamically (during one session) change connection pool data source parameter in OBIEE 11g?
    In my case there are 4 OLAP cubes with the same structure dedicated for different regions. I like to change data source standing behind report after user select region in dashboard prompt.

    It's possible but there is important limitation in AWM when we speak about OLAP data sources. You can't duplicate dimension names within one database schema. Also, I didn't find a way to parametrize database schema. You can only dynamically switch database name so need separate database per OLAP cube.
    1) Define separate database definitions in TNSNAMES.ORA file (in my case db name is country name).
    2) In admin tool create variable and init block that will set default database name.
    Manage -> Variables... -> Action -> New -> Session -> Variable
    3) Use variable as data source:
    Connection Pool -> Data source name -> VALUEOF(NQ_SESSION.COUNTRY_DATABASE_NAME)
    4) In analytics use dashboard prompt with list of countries (same as database names defined in TNSNAMES.ORA). With prompt set request variable (COUNTRY_DATABASE_NAME)
    Let me know if you found better way to achieve similar functionality.

  • Data source login + ServerSession + uow

    Can anyone please provide assistance as to what lines of code is necessary to be able to create a ServerSession, then login using the username and password of the data sources of OC4J, and then acquire a unit of work to be used in doing read and write transactions against a 9i database. My toplink version is 10g (9.0.4). The following are snippets of my java code:
    ServerSession session = null;
    session = (ServerSession)SessionManager.getManager().getSession("session");
    // I didn't put session.login() because I
    // read somewhere that there is already an implicit
    // login when the ServerSession (session variable) was
    // created via the second line above.
    UnitOfWork unitOfWork;
    System.out.println("step3.1");
    Session session1 = (Session) session.acquireClientSession();
    unitOfWork = session1.acquireUnitOfWork();
    // the problem is, at this point of acquiring a unit of
    // work, at runtime, I already encounter a
    // java.lang.NullPointerException. Does it mean that my
    // assumption of an implicit login during the
    // ServerSession creation is not correct?
    Please help. I guess this are still the basic stuff of Toplink but the standard Toplink documentations don't seem to help. Thanks in advance.

    For the benefit of others, my unit of work is now defined as:
    unitOfWork = getServerSession().acquireClientSession().acquireUnitOfWork();
    Likewise, I have included in my session bean the following methods:
    public void login() {
    // Get a Server Session from the sessions xml
    ServerSession aSession = (ServerSession)SessionManager.getManager().getSession("Session");
    aSession.login();
    setServerSession(aSession);
    public static void logout() {
    if (getServerSession() != null) {
    getServerSession().logout();
    protected static ServerSession serverSession = null;
    private static ServerSession getServerSession() {
    return serverSession;
    private void setServerSession(ServerSession session) {
    this.serverSession = session;
    With this, all i have to do is invoke login() to establish a database login.
    Anthony
    Philippines

  • Sessions.xml to point to a data-source

    Hi,
    I'm trying to have the sessions.xml file point and use a data source that is defined in the data-sources.xml file.
    I have checked that the data-source entires are fine(I've used the test-connection feature in AS, to check this).
    Below is the content of my sessions.xml file; Can you please let me know if I am missing some entires in this file.Also sending my data-sources.xml file incase you want to have a look at it.
    Sessions.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <toplink-sessions version="10g release 2 (10.1.3.0.0DP4)" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <session xsi:type="database-session">
    <name>oracle.epcis.common.model</name>
    <event-listener-classes/>
    <primary-project xsi:type="xml">EPCIS_OXM.xml</primary-project>
    <login xsi:type="xml-login">
    <password>5C4C6924B1B14E16</password>
    </login>
    </session>
    <session xsi:type="server-session">
    <name>oracle.epcis.common.model.orm</name>
    <event-listener-classes/>
    <logging xsi:type="toplink-log"/>
    <primary-project xsi:type="xml">EPCIS_ORM.xml</primary-project>
    <login>
    <datasource>jdbc/epcisDS</datasource>
    <uses-external-connection-pool>true</uses-external-connection-pool>
    <uses-external-transaction-controller>true</uses-external-transaction-controller>
    <user-name/>
    </login>
    <connection-pools>
    <read-connection-pool>
    <name>EPCIS Connection Pool</name>
    </read-connection-pool>
    <write-connection-pool>
    <name>EPCIS Connection Pool</name>
    </write-connection-pool>
    </connection-pools>
    <connection-policy/>
    </session>
    </toplink-sessions>
    Data-sources.xml
    <?xml version = '1.0' encoding = 'UTF-8'?>
    <data-sources xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://xmlns.oracle.com/oracleas/schema/data-sources-10_1.xsd" schema-major-version="10" schema-minor-version="1">
    <managed-data-source connection-pool-name="EPCIS Connection Pool" jndi-name="jdbc/epcisDS" name="epcisDS"/>
    <connection-pool name="EPCIS Connection Pool">
    <connection-factory factory-class="oracle.jdbc.pool.OracleDataSource" user="scott" password="tiger" url="jdbc:oracle:thin:@//localhost:1521/ORCL"/>
    </connection-pool>
    </data-sources>
    Thanks in Advance,
    Mahima

    Thanks! That helped.
    I have a project-orm.xml file which also has the database username, pwd, url.How can I get this to point to the same datasource too?
    The project orm.xml file is as below: How can I modify it to point to the datasource jdbc/epcisDS?
    project-orm.xml
    <?xml version="1.0" encoding="UTF-8"?>
    <toplink:object-persistence version="Oracle TopLink - 10g Release 3 (10.1.3.0.0) (Build 060118)" xmlns:opm="http://xmlns.oracle.com/ias/xsds/opm" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:toplink="http://xmlns.oracle.com/ias/xsds/toplink" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
    <opm:name>EPCIS_ORM</opm:name>
    </opm:class-mapping-descriptor>
    <opm:class-mapping-descriptor xsi:type="toplink:relational-class-mapping-descriptor">
    <opm:class>oracle.epcis.common.model.TransactionEvent</opm:class>
    <opm:alias>SdmTransactionEvent</opm:alias>
    <opm:primary-key>
    <opm:field table="SDM_TRANSACTION_EVENT" name="TRANSACTION_EVENT_ID" xsi:type="opm:column"/>
    </opm:primary-key>
    <opm:events xsi:type="toplink:event-policy"/>
    <opm:querying xsi:type="toplink:query-policy"/>
    <opm:attribute-mappings>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>action</opm:attribute-name>
    <opm:field table="SDM_TRANSACTION_EVENT" name="ACTION" xsi:type="opm:column"/>
    </opm:attribute-mapping>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>bizLocation</opm:attribute-name>
    <opm:field table="SDM_TRANSACTION_EVENT" name="BIZ_LOCATION" xsi:type="opm:column"/>
    </opm:attribute-mapping>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>bizStep</opm:attribute-name>
    <opm:field table="SDM_TRANSACTION_EVENT" name="BIZ_STEP" xsi:type="opm:column"/>
    </opm:attribute-mapping>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>bizTransactionListId</opm:attribute-name>
    <opm:field table="SDM_TRANSACTION_EVENT" name="BIZ_TRANSACTION_LIST_ID" xsi:type="opm:column"/>
    </opm:attribute-mapping>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>disposition</opm:attribute-name>
    <opm:field table="SDM_TRANSACTION_EVENT" name="DISPOSITION" xsi:type="opm:column"/>
    </opm:attribute-mapping>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>eventTime</opm:attribute-name>
    <opm:field table="SDM_TRANSACTION_EVENT" name="EVENT_TIME" xsi:type="opm:column"/>
    </opm:attribute-mapping>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>rawXmlEventId</opm:attribute-name>
    <opm:field table="SDM_TRANSACTION_EVENT" name="RAW_XML_EVENT_ID" xsi:type="opm:column"/>
    </opm:attribute-mapping>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>readpoint</opm:attribute-name>
    <opm:field table="SDM_TRANSACTION_EVENT" name="READPOINT" xsi:type="opm:column"/>
    </opm:attribute-mapping>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>transactionEventId</opm:attribute-name>
    <opm:field table="SDM_TRANSACTION_EVENT" name="TRANSACTION_EVENT_ID" xsi:type="opm:column"/>
    </opm:attribute-mapping>
    </opm:attribute-mappings>
    <toplink:descriptor-type>independent</toplink:descriptor-type>
    <toplink:instantiation/>
    <toplink:copying xsi:type="toplink:instantiation-copy-policy"/>
    <toplink:change-policy xsi:type="toplink:deferred-detection-change-policy"/>
    <toplink:tables>
    <toplink:table name="SDM_TRANSACTION_EVENT"/>
    </toplink:tables>
    </opm:class-mapping-descriptor>
    <opm:class-mapping-descriptor xsi:type="toplink:relational-class-mapping-descriptor">
    <opm:class>oracle.epcis.common.model.TransactionEventMap</opm:class>
    <opm:alias>SdmTransactionEventMap</opm:alias>
    <opm:primary-key>
    <opm:field table="SDM_TRANSACTION_EVENT_MAP" name="CHILD_EPC_ID" xsi:type="opm:column"/>
    <opm:field table="SDM_TRANSACTION_EVENT_MAP" name="TRANSACTION_EVENT_ID" xsi:type="opm:column"/>
    </opm:primary-key>
    <opm:events xsi:type="toplink:event-policy"/>
    <opm:querying xsi:type="toplink:query-policy"/>
    <opm:attribute-mappings>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>childEpcId</opm:attribute-name>
    <opm:field table="SDM_TRANSACTION_EVENT_MAP" name="CHILD_EPC_ID" xsi:type="opm:column"/>
    </opm:attribute-mapping>
    <opm:attribute-mapping xsi:type="toplink:direct-mapping">
    <opm:attribute-name>transactionEventId</opm:attribute-name>
    <opm:field table="SDM_TRANSACTION_EVENT_MAP" name="TRANSACTION_EVENT_ID" xsi:type="opm:column"/>
    </opm:attribute-mapping>
    </opm:attribute-mappings>
    <toplink:descriptor-type>independent</toplink:descriptor-type>
    <toplink:instantiation/>
    <toplink:copying xsi:type="toplink:instantiation-copy-policy"/>
    <toplink:change-policy xsi:type="toplink:deferred-detection-change-policy"/>
    <toplink:tables>
    <toplink:table name="SDM_TRANSACTION_EVENT_MAP"/>
    </toplink:tables>
    </opm:class-mapping-descriptor>
    </opm:class-mapping-descriptors>
    <toplink:login xsi:type="toplink:database-login">
    <toplink:platform-class>oracle.toplink.platform.database.oracle.Oracle10Platform</toplink:platform-class>
    <toplink:user-name>admin</toplink:user-name>
    <toplink:password>77F9BCD65FABB4501B550455987A268F</toplink:password>
    <toplink:sequencing>
    <toplink:default-sequence xsi:type="toplink:native-sequence"/>
    </toplink:sequencing>
    <toplink:driver-class>oracle.jdbc.driver.OracleDriver</toplink:driver-class>
    <toplink:connection-url>jdbc:oracle:thin:@localhost:1521:EPCIS</toplink:connection-url>
    </toplink:login>
    </toplink:object-persistence>
    Thanks,
    Mahima

  • 903/902/BC4J can't get OC4J data-sources.xml conn pooling to work in production: help

    [cross posted to the j2ee forum]
    I have several BC4J ears deployed to a 903 instance of OC4J being configured as a standalone
    instance. I've had this problem since I started deploying in development on 902. So it's
    some basic problem that I've not mastered.
    I can't get data-sources.xml managed connection pooling to actually pool conn's. I'm wanting
    to declare my jndi jdbc source connection pool in j2ee/home/config/data-sources.xml and
    have all BC4J apps get conns from this JNDI JDBC pool. I've removed all data-sources.xml from
    my BC4J ears, and published the jndi jdbc source in my oc4j common data-sources.xml.
    I've tested that this is the place controlling the conn URL/login passwd by commenting it
    out of config/data-sources.xml and my BC4J apps then throw exceptions, can't get conn.
    I've set the oc4j startup cmd line with the BC4J property to enabled connection pooling:
    -Djbo.doconnectionpooling=true
    symptom
    Connections are created and closed. Instead of being put back into the pool managed by oc4j,
    what ever BC4J is doing or my data-sources.xml is doing, the connections are just being created and
    closed.
    I can verify this via (solaris) lsof and netstat, where I see my oc4j instance under test load
    with only 1 or 2 conns to the db box, and the ephemeral port is tumbling, meaning a new socket is
    being opened for each conn. ;( grrrrrrr
    Does anyone have a clue as to why this is happening?
    Thanks, curt
    my data-sources.xml
    <data-sources>
         <data-source
            class="com.evermind.sql.DriverManagerDataSource"
            connection-driver="oracle.jdbc.driver.OracleDriver"
            ejb-location="jdbc/DEVDS"
            location="jdbc/DEVCoreDS"
            name="DEVDS"
            password="j2train"
            pooled-location="jdbc/DEVPooledDS"
            url="jdbc:oracle:thin:@10.2.1.30:1521:GDOC"
            username="jscribe"
            xa-location="jdbc/xa/DEVXADS"
            inactivity-timeout="300"
            max-connections="50"
            min-connections="40"
        />
    </data-sources>

    Thanks Leif,
    Yes, set it to the location jndi path.
    A piece of info is that the 903 oc4j release notes states that global conn pooling doesn't
    work. Infering that the j2ee/home/config/data-sources.xml data sources aren't pooled or ??
    I just tested so called local connection pooling, where I edited the data-sources.xml that
    gets packaged in the ear, to include the min/max params and re-ran my test.
    Still, the AM creates a new conn, it's to a new socket, and closes the conn when done. Causing
    each conn to not be pooled, rather opened then closed to the DB box. As verified with lsof and
    netstat, checking the ephemeral port # on the DB box side, always changes, meaning it's a
    new socket and not an old pooled conn socket.
    ???? What the heck??
    Surely if the AM conn check out / return code works properly, OC4J's pooling JDBC driver would
    pool and not close the socket??
    Has anywone gotten JDBC Datasource connections in BC4J to actually be pooled under OC4J??
    Since I couldn't get this to work in my early 902 oc4j testing, and now can't get it to work
    still under 903 OC4J, either it's my config or BC4J AM's code or OC4J?
    Any thoughts on how to figure out what's not configed correctly or has a bug?
    Thanks, curt

  • 903/902/BC4J can't get data-sources.xml conn pooling to work in production; help

    I have several BC4J ears deployed to a 903 instance of OC4J being configured as a standalone
    instance. I've had this problem since I started deploying in development on 902. So it's
    some basic problem that I've not mastered.
    I can't get data-sources.xml managed connection pooling to actually pool conn's. I'm wanting
    to declare my jndi jdbc source connection pool in j2ee/home/config/data-sources.xml.
    Have all BC4J apps get conns from this JNDI JDBC pool. I've removed all data-sources.xml from my BC4J ears,
    and published the jndi jdbc source in my oc4j common data-sources.xml. I've tested that this is
    the place controlling the conn URL/login passwd by commenting it out of config/data-sources.xml
    and my BC4J apps then throw exceptions, can't get conn.
    I've set the oc4j startup cmd line with the BC4J property to enabled connection pooling:
    -Djbo.doconnectionpooling=true
    symptom
    Connections are created and closed. Instead of being put back into the pool managed by oc4j,
    what ever BC4J is doing or my data-sources.xml is doing, the connections are just being created and
    closed.
    I can verify this via (solaris) lsof and netstat, where I see my oc4j instance under test load
    with only 1 or 2 conns to the db box, and the ephemeral port is tumbling, meaning a new socket is
    being opened for each conn. ;( grrrrrrr
    Does anyone have a clue as to why this is happening?
    Thanks, curt
    my data-sources.xml
    <data-sources>
         <data-source
            class="com.evermind.sql.DriverManagerDataSource"
            connection-driver="oracle.jdbc.driver.OracleDriver"
            ejb-location="jdbc/DEVDS"
            location="jdbc/DEVCoreDS"
            name="DEVDS"
            password="j2train"
            pooled-location="jdbc/DEVPooledDS"
            url="jdbc:oracle:thin:@10.2.1.30:1521:GDOC"
            username="jscribe"
            xa-location="jdbc/xa/DEVXADS"
            inactivity-timeout="300"
            max-connections="50"
            min-connections="40"
        />
    </data-sources>

    I've run another test using local data-source.xml, that's packaged in the .ear. Still
    pooling under BC4J doesn't work??
    A piece of info is that the 903 oc4j release notes states that global conn pooling doesn't
    work. Infering that the j2ee/home/config/data-sources.xml data sources aren't pooled or ??
    I just tested so called local connection pooling, where I edited the data-sources.xml that
    gets packaged in the ear, to include the min/max params and re-ran my test.
    Still, the AM creates a new conn, it's to a new socket, and closes the conn when done. Causing
    each conn to not be pooled, rather opened then closed to the DB box. As verified with lsof and
    netstat, checking the ephemeral port # on the DB box side, always changes, meaning it's a
    new socket and not an old pooled conn socket.
    ???? What the heck??
    Surely if the AM conn check out / return code works properly, OC4J's pooling JDBC driver would
    pool and not close the socket??
    Has anywone gotten JDBC Datasource connections in BC4J to actually be pooled under OC4J??
    Since I couldn't get this to work in my early 902 oc4j testing, and now can't get it to work
    still under 903 OC4J, either it's my config or BC4J AM's code or OC4J?
    Any thoughts on how to figure out what's not configed correctly or has a bug?
    Thanks, curt

  • Data source for application using both pooled and non pooled connections

    Hi guys.
    I am integrating Oracle's connection pooling into an existing application that had formerly used dbConnectionBroker. It looks like this task should be quite straightforward. However, for consistency, I would also like to replace other Connection logic within the application to use Oracle classes. This will involve using OracleDataSource to obtain a Connection object. ( without pooling ).
    So in this case, the application will use both pooled and non pooled Oracle connections. They will be connecting to the same database. The question I have is in regard to the use of data-sources.xml.
    Are there any special considerations for the required attribute values within data-sources.xml under this scenario ?
    Help will be greatly appreciated.
    Regards.
    Steve.

    Hi Steve -
    It should be feasible for you to define a single datasource using multiple location entries to indicate what sort of pooling behaviour you wish to use.
    If you lookup and use the "location" attribute, you will receive a javax.sql.DataSource object which will not provide connection pooling.
    If you lookup and use the "ejb-location" attribute you will receive a DataSource object that will support connection pooling operations.
    Note that this is using the emulated datasource approach, and transaction support is limited to a single resource (one database) for these datasources - you won't get 2PC support for transactions.
    If you need a transaction to span two separate resources (ie two databases in same tx) then you will need to use the non-emulated datasource approach.
    There is a chapter in the J2EE Services Guide which describes the datasource model we have with OC4J. This might provide you with some more useful information. See Chapter 11 - http://otn.oracle.com/docs/products/ias/doc_library/903doc_otn/generic.903/a97690/ds3.htm#1004903
    cheers
    -steve-

  • How to define pool size of a data source

    In OC4J,How do I configure the behaviour of connection pools such as maxStatements, initialPoolSize,minPoolSize,maxPoolSize,maxIdleTime,propertyCycle which is defined in the JDBC specification?

    <BLOCKQUOTE><font size="1" face="Verdana, Arial, Helvetica">quote:</font><HR>Originally posted by wang haitao ([email protected]):
    Thanks.From the example,I have known how to configure the minPoolSize and MaxPoolSize.
    But,where can I find a example include all the datasource properties?
    When I configure a property, I want to know the XML tag for the property.
    IS this what you are looking for: http://www.orionserver.com/docs/data-sources.xml.html
    <data-sources>
    This file contains the configuration for the installed DataSources of an application-server.
    <data-source ...>
    An installed DataSource. The installed DataSources are bound to the JNDI-paths specified by the location attribute.
    class - The classname of the DataSource. The core classes are com.evermind.sql.DriverManagerDataSource, com.evermind.sql.DriverManagerXADataSource, com.evermind.sql.DriverManagerConnectionPoolDataSource, com.evermind.sql.OrionPooledDataSource, com.evermind.sql.OrionCMTDataSource. There is also a special name; com.evermind.sql.AliasDataSource, which copies the data-source at the source-location to the specified location. See the API docs for further info on the other types.
    connection-driver - The JDBC-driver classname for this DataSource, needed by some DataSources that deal with java.sql.Connections.
    connection-retry-interval - How long to wait before retrying in seconds if a connection attempt fails. The default is 1.
    ejb-location - The JNDI-path to bind an EJB-aware and pooled version of this DataSource to. (only applies to ConnectionDataSources). This version of the datasoruce will automatically take part in container-managed transactions and is the type of source that should be used from within EJBs and similar (if you use a "clean" datasource you loose the container-managed transactions support).
    inactivity-timeout - Time to cache unused connections before closing them (seconds).
    location - The JNDI-path to bind this DataSource to.
    max-connect-attempts - How many times to retry making a Connection. This is useful when the network isnt stable or the environment is unstable for any other reason that will make connection attempts fail at times. The default is 3.
    max-connections - The maximum number of open connections for pooling DataSources.
    min-connections - The minimum number of open connections for pooling DataSources. The default is zero.
    name - The displayed name of the DataSource.
    password - The password to user when logging in using the DataSource, optional.
    pooled-location - The JNDI-path to bind a pooled version of this DataSource to. (only applies to ConnectionDataSources).
    schema - The relative/absolute path to a database-schema for this database connection.
    source-location - The underlying DataSource of this specialized DataSource.
    url - The JDBC URL for this DataSource, needed by some DataSources that deal with java.sql.Connections.
    username - The username to log in as when using the DataSource, optional.
    wait-timeout - The number of seconds to wait for a free connection if the pool is used up (ie reached max-connections used). The default is 60.
    xa-location - The JNDI-path to bind a transactional version of this DataSource to. (only applies to ConnectionDataSources). XA-datasources are automatically pooled internally.
    xa-source-location - The underlying XADataSource of this specialized DataSource (used by OrionCMTDataSource).
    <description>The description</description>
    A short description.
    <property name="theName" value="theValue" />
    A property to set when using a custom/3rd-party DataSource.
    name - The name of the property.
    value - The property value.
    <HR></BLOCKQUOTE>
    null

  • Problems with OC4J EJB deployment and the data-sources.xml file

    I am running 2 Windows 2000 Machines one with the 8.1.7 database another with iAS 1.0.2.2.1 and OC4J.
    I am trying to deploy a 3rd party EJB-based application whic seems to have deployed successfully except when I try to test the EJB deployment via a jsp it can't connect to the database, giving the error:
    1/16/02 4:52 PM VerySimple: Servlet error
    java.lang.NoClassDefFoundError: com.netexp.user.UserManagerHome
    at com.netexp.beans.BeanHelper.class$(Unknown Source)
    at com.netexp.beans.BeanHelper.getUserManagerBean(Unknown Source)
    at /very_simple.jsp._jspService(/very_simple.jsp.java:48) (JSP page line 27)
    at com.orionserver[Oracle9iAS (1.0.2.2.1) Containers for J2EE].http.OrionHttpJspPage.service(OrionHttpJspPage.java:54)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.HttpApplication.serviceJSP(HttpApplication.java:5459)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.JSPServlet.service(JSPServlet.java:31)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:508)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:177)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:576)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:189)
    at com.evermind[Oracle9iAS (1.0.2.2.1) Containers for J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:62)
    I try to update the file using the installdatasource switch thus:
    C:\Oracle\iSuites\j2ee\home>java -jar admin.jar ormi://localhost admin adm_pwd -application apptricityII -installDataSource -jar %ORACLE_HOME%\jdbc\lib\classes12.zip -url jdbc:oracle:thin:@db_host.unitas.com:1521:db_name -connectionDriver oracle.jdbc.driver.OracleDriver -location jdbc/pool/OracleDataSource -username scott -password tiger
    And get the following error:
    Exception passing by from remote server: java.lang.InstantiationException: No class specified for jdbc/pool/OracleDataSource
    java.lang.InstantiationException: No class specified for jdbc/pool/OracleDataSource
    <<no stack trace available>>
    Error adding source: No class specified for jdbc/pool/OracleDataSource
    Please advise.
    I have followed the instructions in 'EJB Primer' and 'Using Oracle9iAS Containers for J2EE' to no avail. And I can't find any meaningfull data-sources.xml samples. I have been struggling with this for some time.
    Is there any other file, do I need to bind anything?
    I'd appreciate your assistance.
    Thank you
    Louiza

    Hi Louiza,
    Show us your web.xml and ejb-jar.xml files as well as your
    data-source.xml file.
    Thanks,
    Avi.

Maybe you are looking for

  • Keyboard not working in Google Web Designer

    I just installed google web designer from AUR. ( https://aur.archlinux.org/packages/google-webdesigner/ ) And I have the weirdest problem, the keyboard seems to stop working in the program somehow the keyboard does work after launch, but it seems to

  • Error while integrating Exchange Calendar with SharePoint Calendar Overlay

    Hello All, I'm trying to integrate Exchange Calendar with SharePoint Calendar using Overlay option. I have added root certificate in my central admin, but it still show an error Could not establish trust relationship for the SSL/TLS secure channel wi

  • Beat synching in premiere cs5

    Hi I'm trying to beat synch to some fast electronica.  Does anyone know if there's an easy way to do this?  I'd prefer not to have to put a marker on each beat using the "*" button if possible. Cheers Jibb

  • I am trying to download the latest flashplayer 10.1.

    Hi there, Please can someone help. I am trying to download the latest flahplayer 10.1. I manage to get to the point where it asks me to accept the terms. I click yes and then it says it can not continue beacuse I need to close windows messanger. I do

  • How to install iLife in exterior hard drive

    I have successfully installed Snow Leopard in an exterior Hard Drive. But iLife is not installed. How do I installed iLife in my secondary Hard Drive?