Oc4j in Production

Hi all,
I'm trying to upgrade from SA to OBIEE 10.1.3.4.1 and I'd like to understand the need for the standalone oc4j. We use ISAPI plug-in and IIS. From the Oracle doc (ID 968223.1), it's not recommended to use oc4j in production environment and Oracle tech support says it's not certified. So besides using OAC/WebLogic/other true application server, what other options do I have? Is oc4j even needed in order to run/deploy OBIEE? I try to stop all oc4j in OBIEE server, presentation server, web server and I still can access OBIEE.
Thanks in advance,
L

Thanks Madan. We do not plan to have BI Publisher or BIOffice installed.
Does that mean there is no need for us to have oc4j?
Edited by: WLam on Feb 9, 2010 12:46 PM

Similar Messages

  • Use OC4J in production system

    Hi together,
    i have a small question: Is it legal to use the oc4j in a production system or it is only for development purpose?
    Marc

    All of the licensing questions should be directed to your local sales rep, they can give you the most accurate answer.
    Hope this helps,
    Rob

  • Best wasy to move OC4J from Production to Test MidTier

    I've read the documents but I am still lost on the best way to move a OC4J instance to another MidTier
    I have 3 separate OC4J instances that are deployed for 3 separate divisions that contain different apps.
    What is the easiest way to move them to a different MidTier in a different environment. (in my case same OS,portal 10.1.2 just slightly different layout)
    I have worked though the create a test from production and have my test up and running. I just need to deploy the production apps to the test environment. Both have separate MidTiers, Infrastures and database.
    I know I can manually recreate OC$J instance names and then manually recreate the apps from the .ear files but is there a easier faster way to do this?
    Thanks

    Hi,
    It's not a simple move, it's an upgrade...
    So perhaps transportable tablespace can help you (export from 10gR1 and import into 10gR2 should be work).
    Read the following doc for more info and sample :
    http://download-west.oracle.com/docs/cd/B14117_01/server.101/b10825/dp_export.htm#i1006840
    http://download-west.oracle.com/docs/cd/B14117_01/server.101/b10739/tspaces.htm#sthref1231
    http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14215/dp_import.htm#BEHFFDCD
    http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14231/tspaces.htm#sthref1267
    Or export your db in dump file, on the new server, precreate your db as well, and import like for an upgrade :
    http://download-uk.oracle.com/docs/cd/B19306_01/server.102/b14238/preup.htm#sthref67
    Nicolas.
    Message was edited by:
    N. Gasparotto

  • OC4J EJBQL and EJB 2.0 features

    Hello Debu Panda and All
    I've got all howtos and I mangaged to get some parts of OC4J [Oracle9iAS (9.0.3.0.0) Containers for J2EE (build 020323.1689)] working.
    There are still some issues that are stalling our development. Could you please comment on them, maybe providing an estimate of when they will be solved/implemented?
    First of all, a little background. Our application uses many Java Swing application clients that connect to the EAR application in the container.
    The ear application has the following structure:
    All database access (Oracle 8i, located in its own server) is done exclusively by means of CMP entity beans. A entity bean may access other entity beans. There are workflow session beans (stateful and stateless) that access the entity beans. All clients see only the workflow session beans (session beans fagade).
    Our applicatoin is complex, having more than 80 session beans and more than 25 entity beans (not counting entity beans that exist only to represent relationships among entity beans).
    There goes the questions:
    1) It seems that entity beans cannot currently be referenced by remote interfaces. We couldn't deploy our application using it. Since we could use only local interfaces fot entity beans, thats what is been done now.
    2) There is no CMR supported. Is this true?
    3) EJBQL seems to be very limited. In the howto examples there are EJBQL statements that compare two numbers. However, when we tried to use String comparisons, it didn't work. Here is the statement:
    "SELECT DISTINCT OBJECT(p) FROM Person p WHERE p.name = ?1"
    If I compile, package and deploy the ear applicatin with the above EJBQL statement, OC4J generates an exception when executing the finder method. The exception is:
    "java.rmi.NoSuchObjectException: Session has timed out
    at com.evermind.server.ejb.StatefulSessionEJBObject.throwPassivisat
    ception(StatefulSessionEJBObject.java:188)
    at Cad023Remote_StatefulSessionBeanWrapper0.obterPessoasPorParteNom
    023Remote_StatefulSessionBeanWrapper0.java:754)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:8
    at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)"
    If I remove the where clause, the expection is gone. However, I get all records. ;-)
    4) It seems that all EJBQL clauses must be capitalized. Is this true?
    FINALY)
    Is there a newer OC4J build that could use to get the development going? Do you know where there will be one? Is there any way of contacting the OC4J development team to report bugs?
    If you would like, we could discuss it in private e-mail (please use my private mail [email protected]).
    Thanks for your attention,
    Luis Fernando Soeiro
    Hi !! OC4J 9.0.3 developer's preview has most features of EJB 2.0. We are working on updating on our docs and samples for EJB 2.0
    Please look at the following URL that has some How Tos on EJB 2.0 features such Local Interfacea, EJB QL, etc : http://otn.oracle.com/tech/java/oc4j/htdocs/oc4j-how-to.html#ejb
    regards
    Debu Panda
    Oracle --------------------------
    Luis Soeiro <mailto:[email protected]> <mailto:[email protected]>Type : Question Date : Apr 11, 2002 15:15 PT Hello
    Some colleagues and I are trying to port a large project from JBOSS to OC4J. We used JBOSS 3.0 (beta) in order to evaluate EJB2.0 features and see if we could use it. We already have OC4J in production, but only as a JSP/Servlet container. The next step would be to deploy our EJB application to OC4J.
    We have read the material and it is written that OC4J (developers preview) is EJB 2.0 compliant. However, the specific documentation and the examples don't show how to specify OC4J specifc XML files. We absolutely need CMR and Local Interfaces, because we don't have the time required to downgrade our JBoss EJB2.0 application to the EJB 1.1 specification. We have over 80 Session Beans and over 20 Entity Beans.
    Is there anybody there that can confirm that OC4J developer's preview is really EJB2.0 compliant? If so, could you send me some pointers to information about OC4J container specifc deployment descriptors? The docs listed at the web site don't have EJB2.0 features listed, nor does the Oracle samples.
    Thanks for your attention,
    desperately,
    Luis Fernando Soeiro

    HI,
    I worked out CMR and EJB-QL with single bean.
    Using CMR, it is possible to get one bean reference through other bean, but
    When I tried EJB-QL with bean to bean navigation then I run into problem.

  • Oc4j generated finders in orion-ejb-jar.xml file causing errors

    Any information or assistance would be greatly appreciated.
    I have encountered a problem with the generated orion-ejb-jar.xml file.
    It looks like the additional finder methods that are generated when the application
    is deployed are incorrect from the 9.0.3 version to the new 10.1.2.0.2 version.
    The original content of orion-ejb-jar.xml before additional finder syntax is added:
    <finder-method query=
    "NO_SYS_USER_OBJECT_HISTORY.USER_ID=UPPER($1) and
      NO_SYS_USER_OBJECT_HISTORY.AUTOID NOT IN(
      SELECT H1.AUTOID                             
      FROM   NO_SYS_USER_OBJECT_HISTORY H1,                                
             (SELECT AUTOID                                     
              FROM   NO_SYS_USER_OBJECT_HISTORY                                    
              WHERE  USER_ID=UPPER($1)                                    
              ORDER BY DATE_TIME DESC) H2                            
      WHERE  ROWNUM &lt;= $2
        AND  H1.AUTOID = H2.AUTOID)">
    <method>
      <ejb-name>NoUserHistoryEntry</ejb-name>
      <method-name>findOldest</method-name>
      <method-params>
       <method-param>java.lang.String</method-param>
       <method-param>java.lang.Integer</method-param>
      </method-params>
    </method>
    </finder-method>
    After deploying in 9.0.3 the following information is added to the orion-ejb-jar.xml file:
    <finder-method query=
    "NO_SYS_USER_OBJECT_HISTORY.USER_ID=UPPER($1) and
      NO_SYS_USER_OBJECT_HISTORY.AUTOID NOT IN(
      SELECT H1.AUTOID
      FROM   NO_SYS_USER_OBJECT_HISTORY H1,
             (SELECT AUTOID                                     
              FROM   NO_SYS_USER_OBJECT_HISTORY
              WHERE  USER_ID=$1   
              ORDER BY DATE_TIME DESC) H2
      WHERE  ROWNUM &lt;= $2
        AND  H1.AUTOID = H2.AUTOID)">
    <!-- Generated SQL:
      "select NO_SYS_USER_OBJECT_HISTORY.autoid
       from   NO_SYS_USER_OBJECT_HISTORY
       where  NO_SYS_USER_OBJECT_HISTORY.USER_ID=UPPER(?)
         and  NO_SYS_USER_OBJECT_HISTORY.AUTOID NOT IN(
              SELECT H1.AUTOID                             
              FROM   NO_SYS_USER_OBJECT_HISTORY H1,
                     (SELECT AUTOID
                      FROM   NO_SYS_USER_OBJECT_HISTORY
                      WHERE  USER_ID=?
                      ORDER BY DATE_TIME DESC) H2
              WHERE ROWNUM <= ?
                AND H1.AUTOID = H2.AUTOID) -->
    <method>
      <ejb-name>NoUserHistoryEntry</ejb-name>
      <method-name>findOldest</method-name>
      <method-params>
       <method-param>java.lang.String</method-param>
       <method-param>java.lang.Integer</method-param>
      </method-params>
    </method>
    </finder-method>
    After deploying in 10.1.2.0.2 the following information is added to the
    orion-ejb-jar.xml file:
    <finder-method query=
    "NO_SYS_USER_OBJECT_HISTORY.USER_ID=UPPER($1) and
      NO_SYS_USER_OBJECT_HISTORY.AUTOID NOT IN(
      SELECT H1.AUTOID
      FROM   NO_SYS_USER_OBJECT_HISTORY H1,
             (SELECT AUTOID
              FROM   NO_SYS_USER_OBJECT_HISTORY
              WHERE  USER_ID=UPPER($1)
              ORDER BY DATE_TIME DESC) H2
      WHERE  ROWNUM &lt;= $2
        AND  H1.AUTOID = H2.AUTOID)">
    <!-- Generated SQL (pk only):
      "select H1.autoid
       from   NO_SYS_USER_OBJECT_HISTORY
       where  NO_SYS_USER_OBJECT_HISTORY.USER_ID=UPPER(?)
         and  NO_SYS_USER_OBJECT_HISTORY.AUTOID NOT IN(
              SELECT H1.AUTOID
              FROM   NO_SYS_USER_OBJECT_HISTORY H1,
                     (SELECT AUTOID
                      FROM   NO_SYS_USER_OBJECT_HISTORY
                      WHERE  USER_ID=UPPER(?)
                      ORDER BY DATE_TIME DESC) H2
              WHERE  ROWNUM <= ?
                AND  H1.AUTOID = H2.AUTOID) -->
    <!-- Generated SQL (all columns):
      "select H1.autoid, H1.USER_ID, H1.OBJECT_CLASS_ID,
                 H1.DATE_TIME, H1.COMMENT_TEXT, H1.ACTION,
                 H1.ACTION_DATA, H1.SITE_DESCRIPTION
       from   NO_SYS_USER_OBJECT_HISTORY
       where  NO_SYS_USER_OBJECT_HISTORY.USER_ID=UPPER(?)
         and  NO_SYS_USER_OBJECT_HISTORY.AUTOID NOT IN(
              SELECT H1.AUTOID
              FROM   NO_SYS_USER_OBJECT_HISTORY H1,
                     (SELECT AUTOID
                      FROM   NO_SYS_USER_OBJECT_HISTORY
                      WHERE  USER_ID=UPPER(?)
                      ORDER BY DATE_TIME DESC) H2
              WHERE  ROWNUM <= ?
                AND  H1.AUTOID = H2.AUTOID) -->
    <method>
      <ejb-name>NoUserHistoryEntry</ejb-name>
      <method-name>findOldest</method-name>
      <method-params>
       <method-param>java.lang.String</method-param>
       <method-param>java.lang.Integer</method-param>
      </method-params>
    </method>
    </finder-method>
    The problem with the 10.1.2.0.2 generated finders is that it is prepending H1 when
    it should be NO_SYS_USER_OBJECT_HISTORY which results in the following error:
    Exception in thread "main" com.cdtelecom.vygroe.configuration.ConfigurationException:
    com.evermind.server.rmi.OrionRemoteException:
    Transaction was rolled back: Database error: java.sql.SQLException:
    ORA-00904: "H1"."SITE_DESCRIPTION": invalid identifier
    ; nested exception is:
            java.sql.SQLException: ORA-00904: "H1"."SITE_DESCRIPTION": invalid identifier
            at com.cdtelecom.vygroe.configuration.ConfigurationSession.internalRecordAction(ConfigurationSession.java:869)
            at com.cdtelecom.vygroe.configuration.ConfigurationSession.recordAction(ConfigurationSession.java:401)
            at com.cdtelecom.vygroe.configuration.Configuration.recordActionSaveOrder(Configuration.java:886)
            at com.cdtelecom.vygroe.configuration.Configuration.getOrder(Configuration.java:239)
            at test10g.main(test10g.java:47)
    I tried to manually edit the file but when I shutdown and restart oc4j it regenerates the file again.

    Jingzhi -- If you define the correct EJB-QL you should get the correct SQL generated for the finder. If that's not happening can you verify it against the OC4J v903 production release and see if it is still happening. I don't know if this helps with the JDeveloper problem specifically but if you don't need to create your own finders then that I hope should help.
    Thanks -- Jeff

  • Cant use log4j or commons logging with ease in OC4J/OAS 10g

    Hi,
    I have a simple JEE 5 app which just uses Log4J for logging. I have a log4j.properties at the right place. But deploying an EAR with this config fails
    Operation failed with error: Lorg/apache/log4j/Logger;
    or if i move to commons logging this...
    Operation failed with error: Lorg/apache/commons/logging/Log;
    Things as simple as using logging, I feel, shouldnt be any complex than what is inferred. Atleast there should more error detailing to it than a bozo message like the above.
    Anyone used logging in just a ejb jar app???

    We've run into this recently and were surprised to find out that Oracle not only "recommends" OAS over OC4J in a production environment, they require it. If you look at the license agreement that you accepted when you downloaded OC4J (you know, the thing that you never read) you'll find that Oracle expressly says that you are not allowed to use OC4J in anything other than a development environment.
    So, after years of using it for several applications, we now have to switch to OAS. Actually, we are doing this not only to stay legal, but also to take advantage of mod_oc4j for reverse proxy. We could not get this to work under OC4J so we started poking around with OAS and then found out that we were not licensed for either in production.
    If you are using OC4J in production, read the not-so-fine print. You are in violation of their license agreement.
    -Bruce Altner
    NASA HQ

  • Oc4j and EJB2.0: not really?

    Hello
    Some colleagues and I are trying to port a large project from JBOSS to OC4J. We used JBOSS 3.0 (beta) in order to evaluate EJB2.0 features and see if we could use it. We already have OC4J in production, but only as a JSP/Servlet container. The next step would be to deploy our EJB application to OC4J.
    We have read the material and it is written that OC4J (developers preview) is EJB 2.0 compliant. However, the specific documentation and the examples don't show how to specify OC4J specifc XML files. We absolutely need CMR and Local Interfaces, because we don't have the time required to downgrade our JBoss EJB2.0 application to the EJB 1.1 specification. We have over 80 Session Beans and over 20 Entity Beans.
    Is there anybody there that can confirm that OC4J developer's preview is really EJB2.0 compliant? If so, could you send me some pointers to information about OC4J container specifc deployment descriptors? The docs listed at the web site don't have EJB2.0 features listed, nor does the Oracle samples.
    Thanks for your attention,
    desperately,
    Luis Fernando Soeiro

    Hello Debu
    I've got alll howtos and I mangaged to get some parts of OC4J [Oracle9iAS (9.0.3.0.0) Containers for J2EE (build 020323.1689)] working.
    There are still some issues that are stalling our development. Could you please comment on them, maybe providing an estimate of when they will be solved/implemented?
    First of all, a little background. Our application uses many Java Swing application clients that connect to the EAR application in the container.
    The ear application has the following structure:
    All database access (Oracle 8i, located in its own server) is done exclusively by means of CMP entity beans. A entity bean may access other entity beans. There are workflow session beans (stateful and stateless) that access the entity beans. All clients see only the workflow session beans (session beans fagade).
    Our applicatoin is complex, having more than 80 session beans and more than 25 entity beans (not counting entity beans that exist only to represent relationships among entity beans).
    There goes the questions:
    1) It seems that entity beans cannot currently be referenced by remote interfaces. We couldn't deploy our application using it. Since we could use only local interfaces fot entity beans, thats what is been done now.
    2) There is no CMR supported. Is this true?
    3) EJBQL seems to be very limited. In the howto examples there are EJBQL statements that compare two numbers. However, when we tried to use String comparisons, it didn't work. Here is the statement:
    "SELECT DISTINCT OBJECT(p) FROM Person p WHERE p.name = ?1"
    If I compile, package and deploy the ear applicatin with the above EJBQL statement, OC4J generates an exception when executing the finder method. The exception is:
    "java.rmi.NoSuchObjectException: Session has timed out
    at com.evermind.server.ejb.StatefulSessionEJBObject.throwPassivisat
    ception(StatefulSessionEJBObject.java:188)
    at Cad023Remote_StatefulSessionBeanWrapper0.obterPessoasPorParteNom
    023Remote_StatefulSessionBeanWrapper0.java:754)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:8
    at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)"
    If I remove the where clause, the expection is gone. However, I get all records. ;-)
    4) It seems that all EJBQL clauses must be capitalized. Is this true?
    FINALY)
    Is there a newer OC4J build that could use to get the development going? Do you know where there will be one? Is there any way of contacting the OC4J development team to report bugs?
    If you would like, we could discuss it in private e-mail (please use my private mail [email protected]).
    Thanks for your attention,
    Luis Fernando Soeiro
    Hi !! OC4J 9.0.3 developer's preview has most features of EJB 2.0. We are working on updating on our docs and samples for EJB 2.0
    Please look at the following URL that has some How Tos on EJB 2.0 features such Local Interfacea, EJB QL, etc : http://otn.oracle.com/tech/java/oc4j/htdocs/oc4j-how-to.html#ejb
    regards
    Debu Panda
    Oracle

  • Missing listener-threads attribute in orion-ejb-jar.xml !!

    Hi All,
    I was trying to do some performance tuning as given in BPEL admin guide. For one of the BPEL property namely 'dspMaxThreads', guide says "Sum of dspMaxThreads of ALL domains should be <= the number of mdb listener threads on the workerbean". Now when i open <SOA_HOME>/j2ee/oc4j_soa/application-deployments/orabpel/orion-ejb-jar.xml and navigate to workerbean, i can not find any listener-threads attribute in message-driven-deployment tag.
    <message-driven-deployment name="WorkerBean" min-instances="100" resource-adapter="BPELjms">
    However there is a ReceiverThreads property set to 40.
    <message-driven-deployment name="WorkerBean" min-instances="100" resource-adapter="BPELjms">
    <config-property-name>ReceiverThreads</config-property-name>
    <config-property-value>40</config-property-value>
    </config-property>
    </message-driven-deployment>
    Now my question is that can i add listener-threads attribute to message-driven-deployment tag and then tune dspmaxthreads accordingly, Or
    i can make use of ReceiverThreads property to match with dspmaxthreads property. I am really confused b/w listener-threads and ReceiverThreads.
    Can anyone clarify the same ?
    I have ORACLE SOA Suite ver 10.1.3.1 (with 10.1.3.3 patch) installed.
    Thanks in advance.

    Jingzhi -- If you define the correct EJB-QL you should get the correct SQL generated for the finder. If that's not happening can you verify it against the OC4J v903 production release and see if it is still happening. I don't know if this helps with the JDeveloper problem specifically but if you don't need to create your own finders then that I hope should help.
    Thanks -- Jeff

  • Do I have to use opmn:ormi in the JNDI Service Provider URL?

    Trying to create a new Enterprise Message Source (JMS) and it's not updating the Data Object. Tested the OC4J queue using a Java POJO listener ... sending and receiving text message seems okay. I created a basic Plan (there's only one data element for now) and it is running.
    Any suggestions would be appreciated!

    Here is a document from Ranga on how to connect BAM to OJMS (hope it helps):
    Database Trigger - OJMS - BAM Integration Sample
    Last updated 07/27/05 Ranga
    OJMS setup
    Step 1 - Oc4j setup
    •     Install Standalone/Developer 10g OC4J or production version Application server.
    Developer version download -http://www.oracle.com/technology/software/htdocs/devlic.html?/technology/software/products/ias/htdocs/utilsoft.html#1012 or from http://bamqa.us.oracle.com/bamqaWiki/attach?page=Downloads%2Foc4j1012_extended.zip
    •     Modify following configuration files
    o     Add entry in <OC4J_Install_location>\j2ee\home\config\data-sources.xml for your database, use below sample replacing HOST, PORT and SERVICE_NAME in url tag
    <data-source
    class="com.evermind.sql.DriverManagerDataSource"
    name="TTTDS"
    location="jdbc/OracleTTTDS"
    xa-location="jdbc/xa/OracleXaBamDS"
    ejb-location="jdbc/OracleEjbBamDS"
    connection-driver="oracle.jdbc.driver.OracleDriver"
    username="scott"
    password="tiger"
    url="jdbc:oracle:thin:@(DESCRIPTION=(ADDRESS_LIST=(LOAD_BALANCE=on)(ADDRESS=(PROTOCOL=tcp)(HOST=stank04)(PORT=1521)))(CONNECT_DATA=(SERVICE_NAME=db10g)))"
    inactivity-timeout="30"
    />
    o     Add a resource provider entry in <OC4J_Install_location>\j2ee\home\config\application.xml
    <resource-provider name="BAMTTT" class="oracle.jms.OjmsContext">
    <description>BAM for Generic</description>
    <property name="datasource" value="jdbc/OracleTTTDS"/>
    </resource-provider>
    Step 2 - Database setup
    •     Install 10g or 9i database, below steps will setup AQ in sample schema scott.
    •     Connect to database as sys and grant AQ permissions to scott user
    connect sys/welcome1@db10g as sysdba
    grant SELECT_CATALOG_ROLE to scott;
    GRANT EXECUTE ON DBMS_APPLY_ADM TO scott;
    GRANT EXECUTE ON DBMS_AQ TO scott;
    GRANT EXECUTE ON DBMS_AQADM TO scott;
    GRANT EXECUTE ON DBMS_CAPTURE_ADM TO scott;
    GRANT EXECUTE ON DBMS_FLASHBACK TO scott;
    GRANT EXECUTE ON DBMS_STREAMS_ADM TO scott;
    execute dbms_aqadm.grant_system_privilege('ENQUEUE_ANY', 'scott', TRUE);
    grant aq_administrator_role to scott;
    grant execute on dbms_lock to scott;
    grant execute on sys.dbms_aqin to scott;
    grant execute on sys.dbms_aqjms to scott;
    •     Connect to database as scott user and create AQ
    connect scott/tiger@db10g
    execute dbms_aqadm.stop_queue( queue_name => 'bam_ttq' );
    execute dbms_aqadm.drop_queue( queue_name => 'bam_ttq');
    execute DBMS_AQADM.DROP_QUEUE_TABLE (queue_table => 'bam_ttq_tab');
    execute dbms_aqadm.create_queue_table( queue_table => 'bam_ttq_tab', queue_payload_type => 'sys.aq$_jms_text_message', multiple_consumers => true );
    execute dbms_aqadm.create_queue( queue_name => 'bam_ttq', queue_table => 'bam_ttq_tab' );
    execute dbms_aqadm.start_queue( queue_name => 'bam_ttq' );
    Database Trigger setup
    Run the following sql connected to database as scott user, it creates a trigger on EMP table.
    create or replace trigger send_recs_Employee AFTER INSERT OR Update ON EMP
    FOR each row
    declare
    xml_complete varchar2(8000);
    v_enqueue_options dbms_aq.enqueue_options_t;
    v_message_properties dbms_aq.message_properties_t;
    v_msgid raw(16);
    temp sys.aq$_jms_text_message;
    v_recipients dbms_aq.aq$_recipient_list_t;
    Begin
    temp:=sys.aq$_jms_text_message.construct;
    v_recipients(1) := sys.aq$_agent('istante',null,0);
    v_recipients(2) := sys.aq$_agent('test',null,0);
         v_message_properties.recipient_list := v_recipients;
    xml_complete :=
              '<?xml version="1.0"?><row>' ||
              '<EMPNO>' || :new.EMPNO || '</EMPNO>' ||
              '<ENAME>' || :new.ENAME || '</ENAME>' ||
              '<JOB>' || :new.JOB || '</JOB>' ||
              '<MGR>' || :new.MGR || '</MGR>' ||
              '<HIREDATE>' || :new.HIREDATE || '</HIREDATE>' ||
              '<SAL>' || :new.SAL || '</SAL>' ||
              '<COMM>' || :new.COMM || '</COMM>' ||
              '<DEPTNO>' || :new.DEPTNO || '</DEPTNO>' ||
              '</row>' ;
              temp.set_text(xml_complete);
    dbms_aq.enqueue(queue_name => 'bam_ttq',
              enqueue_options => v_enqueue_options,
              message_properties => v_message_properties,
              payload => temp,
              msgid => v_msgid );
    End ;
    BAM Setup
    •     Administrator - Fix the classpaths for oc4j jar files for Oracle (AS JMS and OJMS) Message source type using the OC4J_Install_location. If you are using production App Server you need to add extra classpath entry <App Server Location>\opmn\lib\optic.jar
    •     Architect - Create a new Enterprise message source of type Oracle (AS JMS and OJMS)
    Initial Context Factory:      com.evermind.server.rmi.RMIInitialContextFactory
    JNDI Service Provider URL:      o     For Standalone oc4j: ormi://machine name/
    Where machine name is OC4J installed host
    o     For Production App Server: opmn:ormi://<machine name>:<opmn request port>:home
    Where machine name is App server installed host, opmn request port could be found from looking at opmn.xml in <App server install location>/opmn/conf
    TopicConnectionFactory Name:      java:comp/resource/BAMTTT/TopicConnectionFactories/bam_ttq_tab
    Topic Name:      java:comp/resource/BAMTTT/Topics/bam_ttq
    JMS Message Type:      TextMessage
    Durable Subscriber Name (Optional):      Istante
    Message Selector (Optional):      
    Client ID (Optional):      ClientID
    Name     Flow name     Type     Max size     Formatting
    row.     row.     String     4000     (none).
    •     Enterprise Link Design Studio – create a basic plan with
    o     Oracle BAM Enterprise Message Receiver, selecting the message source you created in above step.
    o     Display sink Grid
    •     Create file jndi.properties in C:\Program Files\Oracle BAM\j2re1.4.1_01\lib with entries
    java.naming.security.principal=admin
    java.naming.security.credentials=welcome1 (App server/Oc4j password)
    Running
    •     Start OC4J
    •     To enqueue messages update or insert records in EMP table connected to database as scott user
    Insert into emp values (&empno,'FORD','ANALYST',7566,sysdate,60000,3000,20);
    •     Run update on the enterprise plan
    In above sample no parsing of the data is done, its got as one single string.
    OJMS setup
    Configuring JMS
    http://www.oracle.com/technology/books/pdfs/2352_Ch06_FINAL.pdf
    Oracle® Application Server Containers for J2EE Services Guide 10g Release 2 (10.1.2) for Windows or UNIX
    http://iasdocs/iasdl/101200doc/web.1012/b14012/toc.htm

  • Strange ora-1403 and 6508 errors after compiling forms in 10.1.2.0.2

    Hi, today we migrated our Application Server to 10.1.2.0.2 and totally unexpected (it was not mentioned in the upgrade guide of 400 pages...) we had to recompile all 9.0.4-executables
    So we installed Developer Suite 10.1.2.0.2 and recompiled all libraries, forms and menus. There were no errors reported, so everything should be valid.
    Now we can run the forms again - that is, they start without problems - but on some forms (so not all), after doing Run Query, we immediately get ORA-1403, followed by ORA-6508.
    Could this perhaps be caused by "something" in the Headstart-libraries that can not be used in 10.1.2?
    A quick respons would be perfect, because many users have problems now.
    Regards, JW

    Hi Josef,
    indeed i recompiled them all and the errors are raised in development (running standalone oc4j) and production environment (application server 10.1.2).
    Currently i'm migrating the forms to Headstart 65401 and i will update this thread with the results. I guess/hope that the obsolete forms functions/procedures caused these errors.
    Thanks, JW

  • Finder-method in orion-ejb-jar.xml

    Hi,
    Is there a way to let jdeveloper 9.0.3 preview to automatically generate finder-method descriptors for us? When I was developing a cmp-based entity bean, although I defined the ejb-ql in ejb-jar.xml, JDeveloper still just generated the first orion-ejb-jar.xml shown below. In the first orion-ejb-jar.xml, there is no definition for any finder-method. I have to manually add my own definition to it, which is shown in the second orion-ejb-jar.xml. I know that the oc4j container will generate the finder-method after deployment, but in some situation it generated incorrect finder-method descriptors. One of such situation is the between query like "between ?1 and ?2". Anyway, if JDeveloper can generate the finder-method during development, then we can know whether the descriptor is correct or not before deployment, and we can make modifications before deploying it to oc4j server.
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!DOCTYPE orion-ejb-jar PUBLIC "-//Evermind//DTD Enterprise JavaBeans 1.1 runtime//EN" " " target="_new">http://xmlns.oracle.com/ias/dtds/orion-ejb-jar.dtd"> <orion-ejb-jar>
    <enterprise-beans>
    <entity-deployment name="BooksBean" data-source="jdbc/bookDS" table="BOOKS">
    <primkey-mapping>
    <cmp-field-mapping>
    <fields>
    <cmp-field-mapping name="isbn" persistence-name="ISBN" persistence-type="NUMBER(10)"/>
    </fields>
    </cmp-field-mapping>
    </primkey-mapping>
    <cmp-field-mapping name="isbn" persistence-name="ISBN" persistence-type="NUMBER(10)"/>
    <cmp-field-mapping name="title" persistence-name="TITLE" persistence-type="VARCHAR2(50)"/>
    <cmp-field-mapping name="author" persistence-name="AUTHOR" persistence-type="VARCHAR2(50)"/>
    <cmp-field-mapping name="price" persistence-name="PRICE" persistence-type="NUMBER(6,2)"/>
    </entity-deployment>
    </enterprise-beans>
    <assembly-descriptor>
    <default-method-access>
    <security-role-mapping name="&lt;default-ejb-caller-role>" impliesAll="true"/>
    </default-method-access>
    </assembly-descriptor>
    </orion-ejb-jar>
    <?xml version = '1.0' encoding = 'windows-1252'?>
    <!DOCTYPE orion-ejb-jar PUBLIC "-//Evermind//DTD Enterprise JavaBeans 1.1 runtime//EN" " " target="_new">http://xmlns.oracle.com/ias/dtds/orion-ejb-jar.dtd"> <orion-ejb-jar>
    <enterprise-beans>
    <entity-deployment name="BooksBean" data-source="jdbc/bookDS" table="BOOKS">
    <primkey-mapping>
    <cmp-field-mapping name="isbn" persistence-name="ISBN" persistence-type="NUMBER(10)"/>
    </primkey-mapping>
    <cmp-field-mapping name="isbn" persistence-name="ISBN" persistence-type="NUMBER(10)"/>
    <cmp-field-mapping name="title" persistence-name="TITLE" persistence-type="VARCHAR2(50)"/>
    <cmp-field-mapping name="author" persistence-name="AUTHOR" persistence-type="VARCHAR2(50)"/>
    <cmp-field-mapping name="price" persistence-name="PRICE" persistence-type="NUMBER(6,2)"/>
    <finder-method query="select * from books where $author like $1">
    <method>
    <ejb-name>BooksBean</ejb-name>
    <method-name>findByAuthor</method-name>
    <method-params>
    <method-param>java.lang.String</method-param>
    </method-params>
    </method>
    </finder-method>
    <finder-method query="select * from books where $title like $1">
    <method>
    <ejb-name>BooksBean</ejb-name>
    <method-name>findByTitle</method-name>
    <method-params>
    <method-param>java.lang.String</method-param>
    </method-params>
    </method>
    </finder-method>
    <finder-method query="$price between $1 and $2">
    <method>
    <ejb-name>BooksBean</ejb-name>
    <method-name>findByPriceRange</method-name>
    <method-params>
    <method-param>double</method-param>
    <method-param>double</method-param>
    </method-params>
    </method>
    </finder-method>
    </entity-deployment>
    </enterprise-beans>
    <assembly-descriptor>
    <default-method-access>
    <security-role-mapping impliesAll="true" name="&lt;default-ejb-caller-role>"/>
    </default-method-access>
    </assembly-descriptor>
    </orion-ejb-jar>
    Any one has any idea?
    Thanks,
    Jingzhi

    Jingzhi -- If you define the correct EJB-QL you should get the correct SQL generated for the finder. If that's not happening can you verify it against the OC4J v903 production release and see if it is still happening. I don't know if this helps with the JDeveloper problem specifically but if you don't need to create your own finders then that I hope should help.
    Thanks -- Jeff

  • Configurable data-source in orion-ejb-jar.xml

    Hi,
    In my orion ejb-jar.xml file, I have hard coded data-source entries for all entity beans , i.e.
    <entity-deployment name="Customer" data-source="jdbc/slldev02DS" table="CUSTOMER">
    Is there any way, I can make this customizable, i.e. feed in or define a parameter?
    thanks in advance,
    Kevin

    Jingzhi -- If you define the correct EJB-QL you should get the correct SQL generated for the finder. If that's not happening can you verify it against the OC4J v903 production release and see if it is still happening. I don't know if this helps with the JDeveloper problem specifically but if you don't need to create your own finders then that I hope should help.
    Thanks -- Jeff

  • Designtime cache has not been initialized  error in ESB console

    Designtime cache has not been initialized Please look in logs for following signs of failure. Fix them and restart. (a) Database access errors (b) ESB Bootstrap errors (c) OC4J class load errors (d) Product installation errors (e) Export ESB params and verify if host and port parameters are correct. Please contact Oracle Support if unable to fix the issue.
    I am not able to see any thing other than an alert message wtih "OK" button.

    My Log file shows the following error
    C:\product\10.1.3.1\OracleAS_1\j2ee\home\log\home_default_group_1\oc4j
    C:\product\10.1.3.1\OracleAS_1\opmn\logs
    C:\product\10.1.3.1\OracleAS_1\opmn\bin>opmnctl stopall
    $ORACLE_HOME/j2ee/oc4j_esbdt/log/oc4j_esbdt_default_group_1/oc4j/log.xml
    Re: ESB startup error
    http://blogs.oracle.com/jheadstart/newsItems/departments/deployment
    <MSG_TEXT>ESB bootstrap: Error occured while initializing ESB server from the ping thread</MSG_TEXT>
    <SUPPL_DETAIL><![CDATA[java.lang.NoSuchMethodError: oracle.tip.esb.configuration.ServiceBusConstants.getDesigntimeESBProtocol(Ljava/lang/String;)Ljava/lang/String;
         at oracle.tip.esb.server.bootstrap.ESBBaseResourceAdapter$PingTester.run(ESBBaseResourceAdapter.java:829)
         at oracle.j2ee.connector.work.WorkWrapper.runTargetWork(WorkWrapper.java:242)
         at oracle.j2ee.connector.work.WorkWrapper.doWork(WorkWrapper.java:215)
         at oracle.j2ee.connector.work.WorkWrapper.run(WorkWrapper.java:190)
         at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:819)
         at java.lang.Thread.run(Thread.java:595)                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • OC4J 10.1.3 production: Build problem Adventure Builder 1.0.1 using EJB 3.0

    Hi all,
    I tried to use the migration to EJB 3.0 of the Adventure Builder 1.01 from Debu Panda and had some build problems.
    Does anybody know if this demo was tested with the production version of 10.1.3?
    I used the standalone version and had to tweak a lot of entries in ant-oracle.xml.
    Is it possible that the migration was done with a preview release? Have there been so many changes? I had to include a bunch of additional JARs e.g ${J2EE_HOME}/lib/adminclient.jar, ${ORACLE_HOME}/webservices/lib/wsclient.jar. ${ORACLE_HOME}/lib/xmlparserv2.jar
    and others.
    Also I had to change some task definitions as I guess that the contents of ${ORACLE_HOME}/j2ee/utilities/ant-oracle-classes.jar must have changed...
    If I did not do something terribly wrong it would be nice if you could update the example to save other people from this nightmare of running from one build error to the next!
    Regards,
    Eric

    Hi Debu,
    thanks for your reply. I've used an previously installed ant 1.6.5 from ant.apache.org, but I don't think this should matter, or?
    As far as I could see one of the problems is related to the version of ant-oracle-classes.jar in ${ORACLE_HOME}/j2ee/utilities which the example relies on.
    In the adventure builder ant-oracle.xml you'll find task definitions like that:
    taskdef resource="oracle/ant/taskdefs/deploy/antlib.xml" uri="http://www.oracle.com/ant/taskdefs" loaderRef="oracle.tasks.loader">which does not match with what one can find in ${ORACLE_HOME}/j2ee/utilities/ant-oracle-classes.jar
    So from my point of view this has to be changed to
    <taskdef resource="oracle/antlib.xml" uri="antlib:oracle" loaderRef="oracle.tasks.loader">I also had to change some libs... That's why I thought this example was made and tested with an earlier version of oc4j 10.1.3 (maybe a preview version).
    Regards,
    Eric

  • OC4J 9.0.2 production with JDK 1.4.0: mostly broken

    I have tried OC4J 9.0.2 production with several combinations of JDK 1.3.1 and JDK 1.4.0 for building, deploying, and running a simple, home-grown EJB-based web service. If I build the EAR file using JDK 1.3.1, it will run fine on OC4J using JDK 1.3.1 or JDK 1.4.0.
    I have thus far found it to be impossible to build the EAR file using JDK 1.4.0 and have it run sucessfully on OC4J using either JDK 1.4.0 or JDK 1.3.1. I always get the following when attempting to invoke the web service via the generated Java proxy stubs:
    5/8/02 7:33 PM database: oracle.jsp.runtimev2.JspServlet: init
    5/8/02 7:33 PM database: 9.0.2.0.0 Started
    5/8/02 7:33 PM database: oracle.j2ee.ws.SessionBeanWebService: init
    5/8/02 7:33 PM database: Servlet error
    oracle.j2ee.xanadu.JasperGenerationError: no source generated during code generation!: 1 in getFile name: com\mycompany\common\ejb\Info.class
    1 in getFile name: com\mycompany\common\ejb\Info.java
    error: error message 'class.format' not found
    binary class definition not found: com.mycompany.common.ejb.Info
         at oracle.j2ee.ws.JavaWrapperGenerator.generate(JavaWrapperGenerator.java:267)
         at oracle.j2ee.ws.RpcWebService.generateWrapperClass(RpcWebService.java:662)
         at oracle.j2ee.ws.RpcWebService.generate(RpcWebService.java:436)
         at oracle.j2ee.ws.RpcWebService.getWrapper(RpcWebService.java:767)
         at oracle.j2ee.ws.RpcWebService.doPost(RpcWebService.java:309)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:211)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:309)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:336)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.invoke(ServletRequestDispatcher.java:652)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.ServletRequestDispatcher.forwardInternal(ServletRequestDispatcher.java:269)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.processRequest(HttpRequestHandler.java:735)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].server.http.HttpRequestHandler.run(HttpRequestHandler.java:243)
         at com.evermind[Oracle9iAS (9.0.2.0.0) Containers for J2EE].util.ThreadPoolThread.run(ThreadPoolThread.java:64)
    Notes:
    1) When attempting to deploy onto an OC4J instance running on JDK 1.4.0, I have replaced the tools.jar file and modified the global-web-application.xml as per: ORA-92102 Timeout on Web Forms
    2) I have verified that the EJB deploys correctly regardless of build and/or deployment environment.
    3) Let's pretend that I can configure each of these environments to run under JDK 1.4.0 or JDK 1.3.1: run OC4J (fresh install), build ear, deploy ear, invoke web service. Here are the combinations I have tried:
    BROKEN: run OC4J 1.4.0, build ear 1.4.0, deploy ear 1.4.0, invoke web service 1.4.0
    WORKS: run OC4J 1.4.0, build ear 1.3.1, deploy ear 1.4.0, invoke web service 1.4.0
    WORKS: run OC4J 1.4.0, build ear 1.3.1, deploy ear 1.3.1, invoke web service 1.3.1
    WORKS: run OC4J 1.4.0, build ear 1.3.1, deploy ear 1.3.1, invoke web service 1.4.0
    WORKS: run OC4J 1.3.1, build ear 1.3.1, deploy ear 1.3.1, invoke web service 1.3.1
    WORKS: run OC4J 1.3.1, build ear 1.3.1, deploy ear 1.3.1, invoke web service 1.4.0
    WORKS: run OC4J 1.3.1, build ear 1.3.1, deploy ear 1.4.0, invoke web service 1.4.0
    WORKS: run OC4J 1.3.1, build ear 1.3.1, deploy ear 1.4.0, invoke web service 1.3.1
    BROKEN: run OC4J 1.3.1, build ear 1.4.0, deploy ear 1.3.1, invoke web service 1.3.1
    BROKEN: run OC4J 1.3.1, build ear 1.4.0, deploy ear 1.4.0, invoke web service 1.4.0
    Is Oracle aware of this problem? What is causing it (e.g. class format change in classes compiled in JDK 1.4.0)? Are you working to fix it in the next release (either preview or production)?

    I've also just downloaded JDK 1.4.0 and tried running the "Simple JSP Examples" that come with OC4J R2.
    Of course these simple examples didn't even compile:
    <blockquote>
    500 Internal Server Error
    OracleJSP: oracle.jsp.provider.JspCompileException:
    Errors compiling:/oracle/product/ias9i/j2ee/home/application-deployments/default/defaultWebApp/persistence/_pages/_examples/_jsp/_num/_numguess.java
    error: Invalid class file format in /oracle/product/j2sdk1.4.0/jre/lib/rt.jar(java/lang/Object.class). The major.minor version '48.0' is too recent for this tool to understand.
    /oracle/product/ias9i/j2ee/home/application-deployments/default/defaultWebApp/persistence/_pages/_examples/_jsp/_num/_numguess.java:0: Class java.lang.Object not found in class com.orionserver.http.OrionHttpJspPage.
    package examples.jsp._num;
    ^
    2 errors
    </blockquote>
    So whose fault is this?
    Is it my fault for not reading this forum before downloading the 40MB J2SE 1.4.0 install?
    Is it Oracle's fault for failing to point out that OC4J is compatible with ONLY 1.3.1 ?
    Is it Sun's fault for breaking compatibility with their own product? So much for write once run anywhere. This is not what Java was supposed to be about.

Maybe you are looking for

  • Sample .PDF files from Adobe versions 9, 10, 11, etc.

    I'm a software developer/tester and I'm currently testing a new software we are using to manipulate/upload PDF files to our website.  The software opens the PDF, counts the number of pages, displays the page numbers in a listbox, then lets users sele

  • Migrating from NDS4.x to iDS5.x in a crossplatform  Environment

    I have a Directory server4.16 installed on the NT4.0.As a part of the migration to solaris platform I have installed the iDS5.1 on my solaris 8 box . I have a custom schem on the Dir4.x NT box . How to migrate this custom schema on the NT box to the

  • Why are SOME hyperlink underlines BOLD?

    Hello, I've recently been experiencing a problem with my hyperlink underlines. My original file is in MS Word 2010. When I generate it to PDF (using Word's Acrobat Create PDF plug-in; I have Acrobat X Pro), I've noticed that it turns SOME of my hyper

  • Aif_ogl.dll file missing

    aif_ogl.dll file missing in photoshop element 8 I have my serial number and everything but this message keeps coming up. Is there anyway to fix this or to  reload photoshop elements 8 ?

  • Kind of OT -Who knows the house in the template "Blueprint"

    Dear all, in Keynotes template "Blueprint" (thats how the template is called in the German Version) there is a really cool house pictured. I wonder if anyone of you knows some details about the house or can give me more informations, pictures etc. Th