Problem with Multiple Data Source Retrieval

Hi,
We are working on a Project that is concerned with JSF and XML parsing. We have successfully parsed the XML and made an object model- Lists out of it to display it using JSF. Additionaly we also want to display some data from the database compare it with the XML data and then display it on the GUI.
So e.g we have an attribute code in the XML structure which is a number. Before displaying it on the GUI we first have to query the database what this number or code actually means i.e its description text . get it and display alongside the other data from the XML. So the question is
1) How to get data from different data sources
2) Compare the data
3) and merge and display into GUI .
And we have to display it with JSF and as far as i know JSF has no comparison mechanism ..??!!
Thanks for any help,

You can compare stuff in the EL, but I don't think this is what you need.
You can just use Java code in the backing bean class for all the business logic. You can use DAO classes for database access logic. Finally for displaying you can use the JSF tags such as h:outputText.

Similar Messages

  • BI+ Reporting With Multiple Data Sources

    Hi -
    We've been using BI+ Reports with multiple data sources on separate grids. We are wondering if there is a better way to ensure the user has their point of view bar in sync between the the data sources. In our case, both Data Sources are separate HFM applications with all the dimensions identical except the account which is defined on the report. We are not using Metadata Management.
    I'm aware of the "Merge Equivalent Prompts" in the Preferences > Financial Reporting window, but this does not always ensure the users have the same point of view.
    What practice are other companies using to make sure the user runs the reports accurately with both point of view bars pulling the same entity/year/period.
    Thanks in advance.

    Thanks for your answer, however my question - I know it looks quite messy - is not directly related to data templates, my problem is that at the moment I am using a stored procedure following - almost exactly - what another procedure does in oracle EBS to call a BI publisher report.
    1. This procedure populates some temporary table with the xml data where the concurrent request picks it up and uses it to populate the BI publisher template.
    2. However I can't go and specify the XML location in my data template as this is not an option for us (i.e. reading the xml from the temporary table), so I am looking for another way to populate the BI publisher template (Note: I can't as well include the SQL queries in my Data template).
    Thanks ;)

  • Adhoc Query Requirement with Multiple Data Source

    Hi All,
    I have a Adhoc Query Requirement with Multiple Data Source. Is there any way to achive it. Other than Resultant set and bring into Model.
    Thanks
    SS

    You can compare stuff in the EL, but I don't think this is what you need.
    You can just use Java code in the backing bean class for all the business logic. You can use DAO classes for database access logic. Finally for displaying you can use the JSF tags such as h:outputText.

  • Web Analysis : populate the same table with multiple data sources

    Hi folks,
    I would like to know if it is possible to populate a table with multiple data sources.
    For instance, I'd like to create a table with 3 columns : Entity, Customer and AvgCostPerCust.
    Entity and Customer come from one Essbase, AvgCostPerCust comes from HFM.
    The objective is to get a calculated member which is Customer * AvgCostPerCust.
    Any ideas ?
    Once again, thanks for your help.

    I would like to have the following output:
    File 1 - Store 2 - Query A + Store 2 - Query B
    File 2 - Store 4 - Query A + Store 4 - Query B
    File 3 - Store 5 - Query A + Store 5 - Query B
    the bursting level should be give at
    File 1 - Store 2 - Query A + Store 2 - Query B
    so the tag in the xml has to be split by common to these three rows.
    since the data is coming from the diff query, and the data is not going to be under single tag.
    you cannot burst it using concatenated data source.
    But you can do it, using the datatemplate, and link the query and get the data for each file under a single query,
    select distinct store_name from all-stores
    select * from query1 where store name = :store_name === 1st query
    select * from query2 where store name = :store_name === 2nd query
    define the datastructure the way you wanted,
    the xml will contain something like this
    <stores>
    <store> </store> - for store 2
    <store> </store> - for store 3
    <store> </store> - for store 4
    <store> </store> - for store 5
    <stores>
    now you can burst it at store level.

  • Bursting with multiple data sources

    Hello all,
    I am working in a retail environment and we are building reports for the stores. There are several reports and they all receive the same reports. We are using BIP Entreprise with the bursting feature and it works very well.
    The problem is that there are too many reports and we would like to combine all reports of the same store within the same PDF. We use the multiple data source feature and was able to concatenate all reports together.
    Using this new report and template, we can not make the bursting functionality to work properly: the bursted report do not contain all the required report components.
    For example, I have 2 queries A and B each producing reports for 3 stores: 2, 4 and 5. Without bursting, the output is as is:
    Query A - Store 2
    Query A - Store 4
    Query A - Store 5
    Query B - Store 2
    Query B - Store 4
    Query B - Store 5
    With bursting into a file using the store number, I get the following:
    File 1 - Store 2 - Query A
    File 2 - Store 4 - Query A
    File 3 - Store 5 - Query A
    + Store 2 - Query B
    + Store 4 - Query B
    + Store 5 - Query B
    I would like to have the following output:
    File 1 - Store 2 - Query A
    + Store 2 - Query B
    File 2 - Store 4 - Query A
    + Store 4 - Query B
    File 3 - Store 5 - Query A
    + Store 5 - Query B
    The main question is: can this be done using BI Pub Enterprise? We using version 10.1.3.3.2
    If it is, can you provide me with help on how to configure either/or the requests and template to accomplish this task?
    I create an SR and Oracle Support does not have an answser and suggested that somebody in the Forum might help.
    Thanks in advance,
    Minh

    I would like to have the following output:
    File 1 - Store 2 - Query A + Store 2 - Query B
    File 2 - Store 4 - Query A + Store 4 - Query B
    File 3 - Store 5 - Query A + Store 5 - Query B
    the bursting level should be give at
    File 1 - Store 2 - Query A + Store 2 - Query B
    so the tag in the xml has to be split by common to these three rows.
    since the data is coming from the diff query, and the data is not going to be under single tag.
    you cannot burst it using concatenated data source.
    But you can do it, using the datatemplate, and link the query and get the data for each file under a single query,
    select distinct store_name from all-stores
    select * from query1 where store name = :store_name === 1st query
    select * from query2 where store name = :store_name === 2nd query
    define the datastructure the way you wanted,
    the xml will contain something like this
    <stores>
    <store> </store> - for store 2
    <store> </store> - for store 3
    <store> </store> - for store 4
    <store> </store> - for store 5
    <stores>
    now you can burst it at store level.

  • 11i EBS XML Publisher Report with Multiple Data Source

    I need to create XML Publisher report in 11i EBS pulling data from another 10.7 EBS Instance as well as 11i EBS in single report.
    I am not allowed to create extract or use db links.
    My problem is how to create Data Source Connection using Java Concurrent Program.
    The approach I am trying is
    1. create Java concurrent program to establish connection to 10.7 instance.
    2. Will write the SQL queries in Data Tempalete with 2 Data Source 1 for 11i EBS and 2 for 10.7 EBS
    3. Template will show the data from both query in 1 report..
    Is there any other way to proceed using datasource API...
    thanks

    option1:
    The query should be same @ detail level, only the template has to be different for summary and details.
    @runtime, user can choose to see the detail/summary
    Disadvantage, if the data is huge,
    advantage , only one report.
    option2:
    create two separate reports summary and details
    and create diff data and diff layout and keep it as different report
    Advantage, query will perform based on the user run report, summary/detail, so that you can write efficient query.
    Dis advantage , two reports query/template to be maintained.

  • Error in viewing data in a data template with multiple data sources

    Hello,
    I have designed a data template with two data sources.One is from DEPARTMENTS table and the other datasource is a xml file.Following is the code for the data template :
    <dataTemplate name="EmployeeListing" dataSourceRef="demo">
    <parameters>
    <parameter name="p_DEPTNO" dataType="character" defaultValue="20"/>
    </parameters>
    <dataQuery>
    <sqlStatement name="Q1">
    <![CDATA[SELECT DEPARTMENT_NAME,DEPARTMENT_ID,LOC from DEPARTMENTS]]>
    </sqlStatement>
    <xml name="empxml" expressionPath=".//ROW[DEPARTMENT_NAME =$DEPARTMENT_NAME]">
    <url method="GET" realm="" username="" password="">file:///D:\OraHome_1\xmlp\XMLP\DemoFiles\Employee Salary Report.xml</url>
    </xml>
    /dataQuery>
    </dataTemplate>
    The problem is when i am trying to view the data, only data from SQL Query Q1 is getting displayed and the data from Employee xml is not at all getting displayed.
    Could anyone please let me know what i am missing?
    Thanks
    Nutan
    Edited by: user609971 on Oct 23, 2008 8:06 AM

    This is from Documenation sample....
    Did you see the data structure section, where you say, how you wanted the columns ?
    <?xml version="1.0" encoding="WINDOWS-1252" ?>
    <dataTemplate name="Employee Listing" description="List of Employees" v
    ersion="1.0">
    <parameters>- Defines a single parameter for the Department Number
    - with default of 20:
    <parameter name="p_DEPTNO" dataType="character"
    defaultValue="20"/>
    </parameters>
    <dataQuery>
    <sqlStatement name="Q1">
    <![CDATA[SELECT DEPTNO,DNAME,LOC from dept
                      order by deptno]]>
    </sqlStatement>
    <xml name="empxml" expressionPath=".//ROW[DEPTNO=$DEPTNO]"> - Defines name
    - and link to DEPTNO in Q1
    <url method="GET" realm="" username="" password="">
    file:///d:/dttest/employee.xml</url> - Defines url for xml data
    </xml>
    </dataQuery>-
    <dataStructure>- The following section specifies the XML hierarchy
    - for the returning data:
    <group name="G_DEPT" source="Q1"
    <element name="DEPT_NUMBER" value="DEPTNO" />
    <element name="DEPT_NAME" value="DNAME"/>
    - This creates a summary total at the department level based
    - on the salaries at the employee level for each department:      
    <element name="DEPTSAL" value="G_EMP.SALARY"
    function="SUM()"/>
              <element name="LOCATION" value="LOC" />
    <group name="G_EMP" source="empxml">
    <element name="EMPLOYEE_NUMBER" value="EMPNO" />
    <element name="NAME" value="ENAME"/>
    <element name="JOB" value="JOB" />
    <element name="MANAGER" value="MGR"/>
    <element name= "HIREDATE" value="HIREDATE"/>
    <element name="SALARY" value="SAL"/>
    </group>     
    </group>
    </dataStructure>
    </dataTemplate>

  • 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...

  • Problem with a Data Source in Web Logic

    Hi everybody,
    Currently i am deploying a 11g ADF application, i am testing my application in a Web Logic 10.3.2.0, and in the beginning all works OK, but when the user test the application like a half of hour the data source throws this exception:
    Messages
    Test of MOR_DS_ORA2 on server soa_server1 failed, reason:
    Connection test failed with the following exception: weblogic.common.resourcepool.ResourceUnavailableException: No resources currently available in pool MOR_DS_ORA2 to allocate to applications. Either specify a time period to wait for resources to become available, or increase the size of the pool and retry..
    This error only occur in the development server of the company, never in the embed WL of my JDeveloper 11 g
    Checking my code (appModuleImpl where is all the logic and integration with my DB) i don't see any wrong.
    I call SP like this:
    String stmt = "BEGIN XXMOR_FUNCIONAL_PKG.XXMOR_SOL_REPROCESAR_PR(?, ?); END;";
    CallableStatement st = null;
    try {
    st = getDBTransaction().createCallableStatement(stmt, 2);
    st.setInt(1, idSol);
    st.setString(2, rw.getTrackingIdConcom());
    st.execute();
    System.out.println("Exito.");
    catch (SQLException e) {
    throw new JboException(e);
    finally {
    if (st != null) {
    try {
    st.close();
    catch (SQLException e) {}
    Execute some querys like this:
    public ArrayList getElementsByArguments(String query){
    ArrayList al = new ArrayList();
    ResultSet rs = null;
    try {
    rs = getDBTransaction().createStatement(0).executeQuery(query);
    ResultSetMetaData rsMeta = rs.getMetaData();
    int numColumnas = rsMeta.getColumnCount();
    while(rs.next()) {
    for (int i = 1; i <= numColumnas; i++) {
    al.add(rs.getString(i));
    } catch (SQLException e) {
    getDBTransaction().commit();
    return al;
    And some insert and update like this:
    public String setNewFzaVta(Number idSegNeg, String idenFzaVta, String nomFzaVta, String region, String copysOrden,
    String copysFecha, String mutlifuerza, String rtcrdAut, String autCorreo, String mercadotecnia,
    String divCanal, String conCom, String activa, String notificacion, String createBy, Date currentDate,
    String matloc, Number tolerancia, String rate){
    XxmorFzasVtasTabViewImpl u = (XxmorFzasVtasTabViewImpl)getXxmorFzasVtasTabView1();
    XxmorFzasVtasTabViewRowImpl newRow = (XxmorFzasVtasTabViewRowImpl)u.createRow();
    SequenceImpl seq = new SequenceImpl("XXMOR_ID_FZAVTA_SQ", getDBTransaction());
    Number seqNextval = seq.getSequenceNumber();
    newRow.setIdSegNeg(idSegNeg);
    newRow.setIdFzaVentas(seqNextval);
    newRow.setIdentFzaVentas(idenFzaVta);
    newRow.setNombreFzaVentas(nomFzaVta);
    newRow.setRegion(region);
    newRow.setCopysXOrden(copysOrden);
    newRow.setCopysXFecha(copysFecha);
    newRow.setMultifuerza(mutlifuerza);
    newRow.setRtcrdAuthAut(rtcrdAut);
    newRow.setAutXCorreo(autCorreo);
    newRow.setMercadotecnia(mercadotecnia);
    newRow.setDivXCanal(divCanal);
    newRow.setCondicionesComerciales(conCom);
    newRow.setActiva(activa);
    newRow.setNotificacionExtInt(notificacion);
    newRow.setCreatedBy(createBy);
    newRow.setCreatedDate(currentDate);
    newRow.setMatloc(matloc);
    newRow.setAutTolerancia(tolerancia);
    newRow.setGetRate(rate);
    u.insertRow(newRow);
    getDBTransaction().commit();
    return seqNextval.toString();
    Can anybody help me ! ????

    Hi,
    from the original post it is not obvious from where the code is called and if the AM is released properly. So if you face the same issue, maybe you can explain more
    Frank

  • Problem with the data source and web.xml

    I have an issue where JSC is removing my resource reference:
    <resource-ref>
    <description>Creator generated DataSource Reference</description>
    <res-ref-name>jdbc/localOracleDatabase</res-ref-name>
    <res-type>javax.sql.DataSource</res-type>
    <res-auth>Container</res-auth>
    </resource-ref>
    from the web.xml and sun-web.xml.
    The application has been working great in the IDE for months then wham, no more data source definition. I try and add the reference manually and the IDE takes it out. I am "NOT" adding it to the .xml's in the build area. Why is JSC removing the data source entry?

    This continues to be a problem. The only way that I can get around the problem is to drag a table from the data source onto the design pallete and then the datasource is added back to the web.xml. I can run fine for 10 or 15 runs then the entry is once again removed from the web.xml.
    Help please!

  • Problem with finding data-source

    I get the following exception: javax.naming.NameNotFoundException: jdbc/localDatabaseDS not found
    when i try to initiate my ds (datasource). Does anybody know what to do?
    class =
    import java.sql.Connection;
    import java.sql.SQLException;
    import javax.sql.DataSource;
    import javax.naming.Context;
    import javax.naming.InitialContext;
    import javax.naming.NamingException;
    import javax.naming.NameNotFoundException;
    * This class handles handles the connectionpool business <br>
    * @author Taeke de Jong
    public class DbConnectionPool {
    private DataSource ds = null;
    * constructor with datasource from JNDI
    public DbConnectionPool(String dataSource)
    try {
    Context context = new InitialContext();
    ds = (DataSource) context.lookup('jdbc/localDatabaseDS');
    catch(NameNotFoundException nox) {System.out.println(nox.toString());}
    catch(NamingException nex) {System.out.println(nex.toString());}
    web.xml =
    <servlet>
    <servlet-name>DbConnectionServlet_2</servlet-name>
    <servlet-class>minlnv.ifw.common.connection.DbConnectionServlet</servlet-class>
    <init-param>
    <param-name>databaseName</param-name>
    <param-value>localDatabase</param-value>
    </init-param>
    <init-param>
    <param-name>dataSource</param-name>
    <param-value>jdbc/localDatabaseDS</param-value>
    </init-param>
    <load-on-startup>2</load-on-startup>
    </servlet>
    <resource-ref>
    <description>JNDI DataSource localDatabase IFW</description>
    <res-ref-name>jdbc/localDatabaseDS</res-ref-name>
    <res-type>javax.sql.Datasource</res-type>
    <res-auth>APPLICATION</res-auth>
    </resource-ref>
    data-sources.xml =
    <data-source class="com.evermind.sql.DriverManagerDataSource"
    connection-driver="oracle.jdbc.driver.OracleDriver"
    ejb-location="jdbc/localDatabaseDS"
    inactivity-timeout="30"
    location="jdbc/localDataseCorDS"
    name="localDatabase"
    pooled-location="jdbc/localDatabasePooledDS"
    url="jdbc:oracle:thin:@10.160.140.30:1521:ifwt"
    // left out password and username
    min-connections="7" max-connections="10" connection-retry-interval="1" xa-location="jdbc/xa/OracleXADS"
    />

    Do not use the "hardcoded" examples from the book. Check the deployed data-sources and use them as parameter calling lookup method.
    The following have been tested using a simple servlet with Jdeveloper 9.0.5.2 but I think other Jdeveloper/OC4J versions work similar.
    My application is called ds.
    The following command lists the datasources which are deployed with the application.
    I ran the following command against the %JDEV_HOME%\j2ee\home standalone OC4J server but it should work against the embedded OC4J server too.
    Here is the command to list the available datasources:
    C:\jdev9052\j2ee\home>\jdk142_04\bin\java -jar admin.jar ormi://localhost admin welcome -application ds -dataSourceInfo
    And here is the output of the command.
    DataSource info:
    com.evermind.sql.DriverManagerXADataSource/ds/jdbc/xa/BookDBXADS - cached: 0 used: 0 total: 0
    com.evermind.sql.OrionPooledDataSource/ds/jdbc/BookDBPooledDS - cached: 0 used: 0 total: 0
    com.evermind.sql.OrionCMTDataSource/ds/jdbc/BookDBDS - cached: 0 used: 0 total: 0
    com.evermind.sql.DriverManagerXADataSource/ds/jdbc/xa/DEVXADS - cached: 0 used: 0 total: 0
    com.evermind.sql.OrionPooledDataSource/ds/jdbc/DEVPooledDS - cached: 1 used: 0 total: 1
    com.evermind.sql.OrionCMTDataSource/ds/jdbc/DEVDS - cached: 1 used: 0 total: 1
    ds = ds my application
    jdbc/DEVDS = string parameter used in lookup method
    jdbc/DEVPooledDS = string parameter used in lookup method
    Checking the j2ee application directory we can find the same:
    C:\>dir C:\jdev9052\j2ee\home\applications\ds\META-INF
    Volume in drive C has no label.
    Volume Serial Number is A83F-C94A
    Directory of C:\jdev9052\j2ee\home\applications\ds\META-INF
    08/12/2004 10:14 AM <DIR> .
    08/12/2004 10:14 AM <DIR> ..
    08/12/2004 10:14 AM 395 application.xml
    08/12/2004 10:14 AM 933 data-sources.xml
    08/12/2004 10:14 AM 283 orion-application.xml
    3 File(s) 1,611 bytes
    2 Dir(s) 10,078,003,200 bytes free
    The orion-application.xml points the data-sources.xml file in the same directory. ds application uses the datasources which are listed in this file, not data-sources.xml in C:\jdev9052\j2ee\home\config directory.
    And here is the content of C:\jdev9052\j2ee\home\applications\ds\META-INF\data-sources.xml
    C:\>more C:\jdev9052\j2ee\home\applications\ds\META-INF\data-sources.xml
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!DOCTYPE data-sources PUBLIC "Orion data-sources" "http://xmlns.oracle.com/ias/dtds/data-sources.dtd">
    <data-sources>
    <data-source name="jdev-connection-BookDB" class="com.evermind.sql.DriverManagerDataSource" location="jdbc/BookDBCoreDS" x
    a-location="jdbc/xa/BookDBXADS" ejb-location="jdbc/BookDBDS" pooled-location="jdbc/BookDBPooledDS" connection-driver="oracle
    .jdbc.driver.OracleDriver" username="myname" password="mypw" url="jdbc:oracle:thin:@122.118.222.17:1521:DXX" inactivity-timeout
    ="30"/>
    <data-source name="jdev-connection-DEV" class="com.evermind.sql.DriverManagerDataSource" location="jdbc/DEVCoreDS" xa-loca
    tion="jdbc/xa/DEVXADS" ejb-location="jdbc/DEVDS" pooled-location="jdbc/DEVPooledDS" connection-driver="oracle.jdbc.driver.Or
    acleDriver" username="myname" password="mypw" url="jdbc:oracle:thin:@122.118.222.17:1521:DXX" inactivity-timeout="30"/>
    </data-sources>
    ...location="jdbc/DEVDS"
    or
    ...location="jdbc/BookDBPooledDS"
    The lookup method needs the string(s) above (between "")

  • Problem with embedded data-sources.xml and custom UserManager

    Hi all,
    Our application uses a custom UserManager, which is basically extended from the JDBC UserManager, declared as follows in orion-application.xml:
         <user-manager class="com.infocorpnow.a2g.security.oracle.A2GUserManager">
              <property name="table" value="pos.users" />
              <property name="userNameField" value="username" />
              <property name="passwordFiled" value="password" />
              <property name="dataSource" value="jdbc/A2GDS" />
              <property name="groupMemberShipTableName" value="pos.user_roles" />
              <property name="groupMemberShipGroupFieldName" value="role_name" />
              <property name="groupMemberShipUserNameFieldName" value="login_id" />
         </user-manager>
    Since we want to be able to deploy the application several times on the application server, and therefore have each deployment of the ear point to its own datasource (i.e. its own local "A2GDS"), we've found out how to embed data-sources.xml inside the EAR file we're deploying, and modify the orion-application.xml as follows:
         <data-sources path="./data-sources.xml" />
    And then place data-sources.xml in the same meta-inf folder as the orion-application.xml.
    This has worked fine when deploying to the standalone OC4J.
    Now when I try to deploy the exact same EAR file in Oracle 9iAS, and I get to the User Manager screen, the Custom User Manager does not show up correctly. It did show up prior to me embedding the data-sources.xml. Please help? This is fairly urgent.
    Thanks
    Jason

    I should also mention I'm using the Java Edition of 9iAS R2 (9.0.3 container) on Solaris.

  • RDA Problems with financial data sources- new FI-GL

    I have created a generic DataSource/extractor based on view on tables FAGLFLEXA and BSEG. The extractor is marked at Real-Time, with 300s Safety-Interval (lower) and Time Stamp.
    On ECC side I have created a function module to post transactions to Delta Queue directly and got it configured using BTE. This is event based and event is GL Transaction posting.
    In BI I have a created an Infopackage to Init Delta without Data and Initialized it.
    I created another Infopackage for delta, marked it Real-Time, and assigned it to a Daemon that would run every 5 minutes.
    PROBLEM: 1.  am not able to see posted GL entries in Delta Queue.
                    2.  As there is nothing in delta Queue daemon is not pulling anything.
    I have gone through most of SDN Blogs and forums. One message that I am getting is that this is because of FI-GL DataSources.
    Its also mentioned somewhere that FI-GL has to be handled specially. But how its not told anywhere.
    Thanks and looking forward,
    Ram

    Hello,
    See this [Financial Accounting: Procedure for Line Item Extraction |http://help.sap.com/saphelp_nw04/helpdata/en/af/16533bbb15b762e10000000a114084/frameset.htm]
    Also see
    SAP Note 1006650 NewGL: Performance problems for Delta Init extractor
    SAP Note 551044 Detaching the extractors for the InfoSources 0FI_*_4
    [How to Improve the Runtime of the 0FI_GL_4 Extractor (NW7.0)|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/d0366a92-424e-2a10-569a-cc711dc1cfde]
    Thanks
    Chandran

  • Using OPM in tandem with multiple data sources

    We are working on a scenario where rules built in OPM need to run validations on data received from multiple applications (legacy applications and Java / .Net based applications), and the rule output is to be presented to another system. From what I read on OPA, the Oracle Determinations Server should be able to support such a scenario. Is my understanding correct? Please also advise on relevant material I could refer to within OTN for help on such a configuration.
    Thanks,
    Srinath

    user11101031 wrote:
    We are working on a scenario where rules built in OPM need to run validations on data received from multiple applications (legacy applications and Java / .Net based applications), and the rule output is to be presented to another system. From what I read on OPA, the Oracle Determinations Server should be able to support such a scenario. Is my understanding correct? Please also advise on relevant material I could refer to within OTN for help on such a configuration.
    Thanks,
    SrinathSrinath,
    It does sound like you want to use the Determinations Server for this sort of thing. The Determinations Server is a SOAP/XML webservice, so you can call it from both Java and .NET applications. Its a stateless service and works on the principle that you send information and requests for answers, and it returns those answers in the response.
    There are some tutorials that will help you integrate the determinations server with Java and .NET applications on OTN (Oracle Policy Automation on OTN > Tutorials).
    Also there is more general help documentation on using OPA.
    http://www.oracle.com/technology/products/applications/policy-automation/index.html

  • Query problem with multiple date fields.

    I need to select the greatest date from six different fields in each record and identify from which column was selected.
    date01 date02 date03 date04 date05 date06
    010190 010107 010190 010190 010190 010190
    010190 010190 010105 010190 010190 010190
    010103 010190 010190 010190 010190 010190
    1)if greatest is in date01 then S = 1
    2)if greatest is in date02 then S = 2
    3)if greatest is in date03 then S = 3
    4)if greatest is in date04 then S = 4
    5)if greatest is in date05 then S = 5
    6)if greatest is in date06 then S = 5
    Do you have any idea on how to acomplish this?
    Thanks

    Another way (won't work for null dates):
    with
    the_data as
    (select to_date('01011990','DDMMYYYY') col1,to_date('01012007','DDMMYYYY') col2,to_date('01011990','DDMMYYYY') col3,
            to_date('01011990','DDMMYYYY') col4,to_date('01011990','DDMMYYYY') col5,to_date('01011990','DDMMYYYY') col6
        from dual union all
    select to_date('01011990','DDMMYYYY'),to_date('01011990','DDMMYYYY'),to_date('01012005','DDMMYYYY'),
            to_date('01011990','DDMMYYYY'),to_date('01011990','DDMMYYYY'),to_date('01012005','DDMMYYYY')
        from dual union all
    select to_date('01012003','DDMMYYYY'),to_date('01011990','DDMMYYYY'),to_date('01012003','DDMMYYYY'),
            to_date('01011990','DDMMYYYY'),to_date('01012003','DDMMYYYY'),to_date('01011990','DDMMYYYY')
        from dual
    the_setup as
    (select rownum the_row,col1,col2,col3,col4,col5,col6,greatest(col1,col2,col3,col4,col5,col6) the_greatest,
            to_char(col1,'DDMMYYYY') || to_char(col2,'DDMMYYYY') || to_char(col3,'DDMMYYYY') ||
            to_char(col4,'DDMMYYYY') || to_char(col5,'DDMMYYYY') || to_char(col6,'DDMMYYYY') dates
       from the_data
    the_columns as
    (select the_row,
            max(decode(position,1,'1,')) || max(decode(position,2,'2,')) || max(decode(position,3,'3,')) ||
            max(decode(position,4,'4,')) || max(decode(position,5,'5,')) || max(decode(position,6,'6,')) the_cols
       from (select distinct the_row,level position
               from the_setup
              where substr(dates,8 * (level - 1) + 1,8) = the_greatest
             connect by level <= 6
    group by the_row
    select col1,col2,col3,col4,col5,col6,the_greatest,rtrim(the_cols,',') the_columns
      from the_setup s,the_columns c
    where s.the_row = c.the_row
    order by s.the_row
    ==========================================================================================================
    COL1       | COL2       | COL3       | COL4       | COL5       | COL6       | THE_GREATEST | THE_COLUMNS
    ==========================================================================================================
    01.01.1990 | 01.01.2007 | 01.01.1990 | 01.01.1990 | 01.01.1990 | 01.01.1990 | 01.01.2007   | 2
    01.01.1990 | 01.01.1990 | 01.01.2005 | 01.01.1990 | 01.01.1990 | 01.01.2005 | 01.01.2005   | 3,6
    01.01.2003 | 01.01.1990 | 01.01.2003 | 01.01.1990 | 01.01.2003 | 01.01.1990 | 01.01.2003   | 1,3,5Regards
    Etbin

Maybe you are looking for