Business Components in JHeadstart

Hi
can any one tell me how to add business components in JHeadstart.

Sohel,
The JHeadstart Designer Generator can only be used if you previously have generated (or reverse engineered) Oracle Forms applications using Oracle Designer. The JDG transfers the Oracle Designer metadata to the XML format that is used by the JHeadstart Application Generator. If you have never used Oracle Designer before, you cannot use the JDG. Instead you should create the ADF Business Components using the wizards in JDeveloper as explained in Steve Muench' JHeadstart tutorial.
Steven Davelaar,
JHeadstart Team.

Similar Messages

  • ADF Faces & business components application crash

    My application crashes with the following stack. Any idea what's causing this?
    06/05/15 17:38:09 Exception in thread "Reference Handler" java.lang.NullPointerException
    06/05/15 17:38:09      at java.lang.ref.Reference$ReferenceHandler.run(Reference.java:123)
    06/05/15 17:38:09 <3>[2785] (0) DCBindingContainer.internalRefreshControl(2311) **** refreshControl() for BindingContainer :effectenPageDef
    Fatal error: Cannot find class java/lang/NullPointerException
    Fatal error: Cannot find class java/lang/NullPointerException
    Fatal error: Cannot find class java/lang/NullPointerException
    Fatal error: Cannot find class java/lang/NullPointerException
    Process exited with exit code 128.
    Thanks,
    Andrej

    May be this additional info helps pinpointing:
    I work with JHeadstart (10.1.3.0.59) and JDeveloper 10.1.3 SU3 and generated default pages on top of two ADF Business Components. No customization done yet. One jspx page works nicely, wheras the other also gives me:
    Fatal error: Cannot find class java/lang/StackOverflowError
    Fatal error: Cannot find class java/lang/NullPointerException
    In the Embedded OC4J server log.
    The only difference between the two Entity Objects and View Objects is the size of them:
    - the working EO/VO page contains 38 attributes (yet, still have to tune and remove unnecessary attributes)
    - the other, error-giving EO/VO page contains nearly 60 attributes (same comment here on the tuning part).
    So, is it possible that the number of attributes and therefor the size of jspx pages can cause these Fatal errors? The JRE seems fine, since some pages work, others do not.
    Toine

  • What are ADF Business Components??

    ADF BC is running in my mind
    Can anyone tell what do they look like??
    are they different from any of the components which we develop such a EJB or any JSF components??
    revert back ASAP

    ADF Business Components is enhanced in 11g, but it is production now in JDeveloper/ADF 10.1.3.
    The ADF Learning Center [http://www.oracle.com/technology/products/adf/learnadf.html] has our latest resources for enterprise 4GL Developers getting started with Oracle ADF. This includes the complete ADF Developer's Guide for Forms/4GL Developers [http://www.oracle.com/technology/documentation/jdev/b25947_01/index.html], a companion sample application [http://www.oracle.com/technology/products/jdev/samples/srdemoadfbc.html], and a companion step-by-step tutorial [http://www.oracle.com/technology/obe/ADFBC_tutorial_1013/10131/index.htm].
    To complement the free Developer's Guide from Oracle, you might be interested in the Oracle Press title Oracle JDeveloper 10g for Forms & PL/SQL Developers: A Guide to Web Development with Oracle ADF [http://www.amazon.com/Oracle-JDeveloper-Forms-SQL-Developers/dp/0072259604].
    There is an instructor-led course for Oracle ADF For Forms/4GL Developers [http://education.oracle.com/pls/web_prod-plq-dad/show_desc.redirect?dc=D18384GC10&p_org_id=1001&lang=US&source_call=].
    Potentially of interest to any former Oracle Forms or Oracle Designer user is the additional Oracle JHeadstart for ADF [http://www.oracle.com/technology/consulting/9iServices/JHeadstart.html]extension for JDeveloper. This is a complete web-tier page generation solution that has its own step-by-step tutorial [http://www.oracle.com/technology/products/jdev/tips/muench/jhstutorial/index.html?_template=/ocom/technology/content/print] so customers can evaluate whether it might benefit their developer productivity. The JHeadstart Features/Benefits document is here [http://www.oracle.com/technology/consulting/9iservices/JHeadstart%20White%20Paper.pdf] (pdf).
    The OTN J2EE for Forms Devs [http://otn.oracle.com/formsdesignerj2ee] home page has additional resources of particular interest to Oracle Forms developers.
    Last but not least, the JDeveloper OTN Discussion Forum JDeveloper and ADF is a great resource to ask JDeveloper/ADF questions of your peers and Oracle employees working on/with the technology.
    Hope this helps

  • Can I ReUse business rule with JHeadStart ?

    Hi All,
    I am looking for tools and methods for our development team to achieve this goal. The keyword is Re-Use as far as we can, in all application layer.
    We will have core application, and for any new customer we will only develope the things that specific to that customer and Re-use the core application.
    Will JHeadStart help us to achieve that goal ?
    Could anybody pls help me with the scenario for maximum reUse ?
    Thank you for your help,
    Krist

    Krist,
    JHeadstart does not 'help' much with your business rule implementation, but it also does not prevent it (I'll get to the bugs you mentioned later). ADF BC is an excellent framework for implementing your business rules, and if you implement these rules on Entity Objects (instead of View Objects) as much as you can, they are highly reusable. Have a look at this paper, which is from the 'before ADF' era but will still contain lots of information on how to implement various types of Business Rules in ADF BC:
    http://www.oracle.com/technology/products/jdev/htdocs/bc4j/BusinessRulesInBc4j.pdf
    The JHeadstart bugs you mention should not hinder you (much). The first should not reproduce in the latest patch version; you can create your own application module subclass as long as it (directly or indirectly) extends the JHeadstart one.
    The bug with respect to View Object extending does not mean the Java class extending of the View Object classes, but rather the situation where one View Object 'inherits' the attribute definitions of another View Object. I would not advice using this type of 'definition inheritance', and furthermore implementing business rules on View Objects should be avoided as much as possible if re-use is your goal; the Entity Objects underneath the View Objects are a much better location.
    The bug with imported Entity Object is more a restriction in how you organise your sources in JDeveloper (i.e. spreading your Business Components across multiple projects) than it is a limitation on reusing business logic.
    Kind regards,
    Peter Ebell
    JHeadstart Team

  • Can not see the menu of New Business Components Package in jdeveloper

    I am just follow the developer guide.
    and when I create the Business Components Package, the guide said that
    ========================================
    In the JDeveloper Navigator, select the OA Project where you want to create your package.
    From the main menu, choose File > New to open the New Object Gallery.
    In the Categories tree, expand the Business Tier node, and select Business Components (BC4J).
    In the Items list, select Business Components Package to open the Business Components Package Wizard. You can also right-click on the OA Project and select New Business Components Package to navigate directly to the Business Components Package Wizard.
    =====================================
    In fact I can not see the menu about Business Components (BC4J) in the File/new/buisness tier/Business Components (BC4J).
    I can only see the File/new/buisness tier/ADF Business Components.
    And can not find the "Business Components Package" under ADF Business Components either.
    I am using the JDev Extension for OA (p5856648_R12_GENERIC.zip) and EBS 12.0.0.
    And I create an OA Workspace and OA Project.
    can anyone help?

    James,
    Use search facility on forum. Chk thread Re: OAF Toolbox Tutorial Help - Search
    --Shiv                                                                                                                                                                                                                                                                       

  • Problem to deploy to a WebService interface for ADF Business Components to Weblogic Server

    Hi,
      I'm trying to deploy a custom application ,in which i have exposed ADF Business Components through a WebService interface, to a standalone weblogic server.
    Application Module is configured with a Service Interface for ordinary ViewObjects.
    Now I want to create a EAR file of this application to deploy it on the weblogic server.
    But I got an error while deploying it.The error i am getting is shown below.
    ERROR: No Java EE modules detected in EAR archive. Deployment aborted. == (oracle.jdevimpl.deploy.ear.WeblogicAssembler)
    I have followed the steps mention in the below link :
    http://technology.amis.nl/2010/12/29/quickly-creating-reploying-and-testing-a-webservice-interface-for-adf-business-components/
    I'm using Jdeveloper 11.1.2.4 on windows.
    Please suggest what i could be doing wrong.
    Regards,
    Himanshu

    Does the deployment profile include Java EE modules?
    Refer
    Java EE Developer: ERROR: No j2ee modules detected in EAR archive. Deployment aborted. == (oracle.jdeveloper.deploy.Veto…

  • Associations and Links does not load when creating Business Components

    Hi guys,
    I am having a problem when I create my business components from table. Let's say that I start a new fusion web application. I then create my business components, enter the proper database connection settings. After everything is done, I am only getting my entities and my views, without any associations and links.
    The thing is that it worked the first time. Everything loaded as it should. I then asked a collegue of mine to try on his computer. Surprise, everything loads perfectly just like it did the first time I did it.
    I then tried on one of my linux virtual machine, via the same PC that I am having the problem. Again, the same problem, even if this is another JDeveloper instance (vm).
    I have read the thread 2187263 that mentions to re-create the DB connection. Again, it is not working.
    Associations and View Links missing in JDeveloper 11.1.1.3 and 11.1.1.4
    I saw this under the "Messages - Log" tab in JDeveloper :
    Aug 7, 2012 11:09:06 AM oracle.jdbc.driver
    SEVERE: 3F794B56 Throwing SQLException: 3
    Aug 7, 2012 11:09:06 AM oracle.jdbc.driver
    SEVERE: 6C9DD8BE Throwing SQLException: ORA-00936: missing expression
    I am using JDeveloper 11.1.1.6.
    Any help would do, since I do not want to uninstall JDeveloper and reinstall it again and again...

    Yes. In SQL Developer, when I click "Modify" on one of my tables, and then on "Foreign Keys", I can see them all.
    Like I said, it worked on a different workstation, and it worked before on my computer.

  • How to use an existing data model using Business Components in OEPE

    I am a beginner in ADF. I am working on a project with an existing data model that uses Business Components (EO, VO and AM). I know that OEPE does not handle the creation of BC, so if I want to modify them, I will have to do that in JDev. That's fine.
    OEPE can create pages with drag and drop like in JDev. In my eclipse ADF projects, I would like to use the existing BC, to be able to use the bindings with ADF Faces. So far I have nothing in the Data Controls tab.
    How to import the BC into the Data Controls tab?
    JDev 11.1.1.6
    WLS 10.3.6
    Eclipse Kepler

    We currently don't support DataControls based on the ADF BC technology. We will consider such support if there is a strong interest in that use case.
    Independent of the IDE's you use, there are ways to expose services based on ADF BC that can then be consumed by the view layer. A Google search will point you to some of the approaches.
    HTH. Thanks for your interest in OEPE.

  • Business packages, Business Functions and Business Components

    Dear All,
    I am new to ESS/MSS.
    We are going to implement the following applications. (Company is Indian based).
    Version : EHP6 and Portal 7.3
    1. Employee Search
    2. Personal Information
    2. Working Time
    3. Benefits and Payments (Reimbursements, Salary Advance, URL iviews have to create for PF and ESI)
    4.Travel Management (No 3rd party integration for booking tickets)
    5. Performance Management Systems (360* Degree Appraisal)
    6. E- Separation
    7. Corporate Information
    8. E- Recruitment
    9. MSS
    What are the Business Packages have to deploy?
    What are the Business Functions have to deploy?
    What are the Business Components have to deploy?
    Regards
    Somu

    What are the Business Packages have to deploy?
    In portal side you need to deploy the below packages.
    ->  BP ERP05 ESS 1.41
    ->  BP ERP05 MSS 1.51
    ->  BP ERP05 COMMON PARTS 1.51
    -> BPERPESSWDA1.50
    ->  BP MSS ADDON 1.0
    -> BP Recruiter
    -> BP Recruiter Administrator
    If you want implement TMS applications then you required below BP's
    ->  BP ERP TMS 1.51              
    ->  BP ERP05 TALENT DEV 1.01
    And the components should be SP level compatibility with SAP ECC system
    -> SAP ESS
    -> SAP MSS
    -> SAP PCUI_GP
    What are the Business Functions have to deploy?
    You need to activate the below BF's in ECC HR system
    HCM_ESS_CI_1
    HCM_ESS_WDA_1 
    HCM_ESS_WDA_2
    HCM_MSS_WDA_1
    HCM_MSS_WDA_2
    FIN_TRAVEL_1
    FIN_TRAVEL_2
    FIN_TRAVEL_3
    HCM_ASR_CI_1
    HCM_ASR_CI_2
    HCM_ASR_CI_3
    HCM_ECM_CI_1
    HCM_ECM_CI_2
    HCM_LSO_CI_1
    HCM_LSO_CI_2
    HCM_LSO_CI_3
    HCM_OSA_CI_1
    HCM_OSA_CI_2
    HCM_PD_UI_1
    HCM_TMC_CI_1
    HCM_TMC_CI_2
    CA_HAP_CI_1
    HCM_OSA_CI_1
    HCM_OSA_CI_2
    HCM_TMC_CI_1
    HCM_TMC_CI_2
    HCM_HCP_CI_1
    HCM_ECM_CI_2
    HCM_ERC_CI_4
    HCM_PD_UI_1
    FIN_CO_MSSBUA_NWBC
    FIN_REP_SIMPL_1
    ERP_ENTERPRISESEARCH
    What are the Business Components have to deploy?
    In ECC side import the addon components based on your system component levels.
    MSS Addon 1.0
    ERECRUTIMENT

  • Business Components not available while using Model Configurator in ID

    Hi,
    In ESR:
    I created a ProcessIntegrationScenario PIS_myScenario (and completed with sender and receiver components, actions etc)
    In ID:
    I created and activated two BusinessComponents: BC_A and BC_B
    I created a new Configuration Scenario: CS_Test, and selected Type of ES Repository Model:"Process Integration Scenario".
    and launched "Model Configurator".
    Now in the step "Assign Components" i see a tab "Assign Business System Components for A2A Configuration" , in that for "Communication Component" value, when i tried to select from the value list, it is only showing the Business Systems and not the Business Components BC_A and BC_B.
    By using the "Model Configurator" how can we create scenarios using the "Business Components" instead of "Business Systems".
    as i am trying the test scenarios, i want to use Business Components, i.e business services in earlier versions.
    I also opened the Business Components BC_A and BC_B and added the corresponding inbound and outbound service interfaces in the receiver and sender tabs.
    after that also, the Business Components are not visible for selecting from within Model configurator.
    let us know if its possible

    thanks abhishek for your reply.
    as mentioned in the reference link given by you, i edited the Process Integration Scenario in ESR, i ticked the checkbox "External Party with B2B Communication", and activated.
    In ID, in Model configurator, i can now see and select the Business Components BS_A and BS_B.
    but when i try to generate the configuration objects, it says: Not Configurable: Component view only contains external application components.
    so cannot proceed with Model configurator with Business components, in my scenario.
    seems i need to use only Business Systems.

  • How to create "Business Components Package" in the Jdeveloper ?

    Hi,
    I installed and set up "Patch 7523554 10G Jdeveloper With OA Extension ARU for R12 RUP6"
    I have ran out the test_fwktutorial.jsp and test_fwklabsolutions.jsp.
    All links work properly on these pages.
    I created HelloWorld page from "Oracle Application Framework Toolbox Tutorials".
    Its works properly too.
    Then I started to create "Search Page".
    I created "Business Component project" in the toolbox.jws.
    I was trying to perform step 2.1 "Create the BC4J Package for Client (UI) Objects".
    But I didn't find "Business Components Package" in the context menu.
    Could you give me advice how can I create package of this kind ?
    Thanks.

    I created "OA Workspace" and simultaneously with it created "Business Components Package" <yourname>.oracle.apps.ak.employee.
    After this it i necessary to creates one more "Business Components Package" <yourname>.oracle.apps.ak.schema.server
    I failed to create Package of this kind.
    In the "BC4J Tutorial" It seems to me I found similr actions.
    I suppose I may perform next step:
    Figure 6-3 http://download.oracle.com/docs/html/A97671_01/wtgbc4j.htm#BABIAIEI
    Figure 6-4 http://download.oracle.com/docs/html/A97671_01/wtgbc4j.htm#BABJIIII
    But I failed to pass these steps.
    Could you tell me, please, how to do this?
    Thanks.

  • NO Links or Associations created with the "Business Components From Tables"

    Hello,
    I have a strange problem. I'm working on a Fusion Web Applicaiton. In the Model project, I try to create some Business Components from Tables with the help of the provided wizard.
    I select one of my IDE Connections, and I choose two of my tables as Entity Objects (*PATIENTS* and COUNTRIES - more details about them bellow), and also as Updatable View Objects. For Read-Only View Objects I select some other tables, afterwards I choose to create a default Application Module, and I press Finish without creating a Business Diagram. Everything works perfectly except of the fact that the wizzard has created everything but the Links and the Associations between my tables.
    To be more precise, COUNTRIES is a simple table, only two columns - ID and NAME, and PATIENTS has some columns like ID, NAME, ADDRESS, DATE_OF_ADMISSION, COUNTRY_ID, where COUNTRY_ID is a foreign key to the COUNTRIES table. Both columns, PATIENTS.COUNTRY_ID and COUNTRIES.ID are NUMBERs. I was expectig the wizard to create a Link and a Association for this foreign key constraint I have between this two tables.
    On the other hand, following one of the tutorials I've found, *"Developing RIA Web Applications with Oracle ADF"*, I've noticed that when I was creating Business Components from Tables based on the HR schema, all the Links and Associations were created as they were expected. I've also tried to create the same Business Components from Tables in my own project, and all the Links and Associations were in place. Somehow, it's not working for my particular schema (the one that contains PATIENTS and COUNTRIES).
    Is there something I do wrong? I've made sure that all the FK constraints are enabled, alive and kicking. From my point of view, the tables are working and behavig as they should, but I can't understand why that feature of automatically creating the Links and Associations works on the HR schema but not on mine.
    Please help!
    Bogdan.
    PS: I am using Oracle JDeveloper Studio Edition Version 11.1.1.1.0, Oracle SQL Developer Version 1.5.5, and Oracle 10g Express Edition installed on localhost.

    Hello John,
    Of course I can post the scripts.
    The schema name is "TEST". But you should know that there are some extra columns in the PATIENTS table, I've not mentioned before. As you can tell from the scripts bellow, the PATIENTS table has the following columns: ID (number), NAME (varchar2), COUNTRY (number), GENDER (number), ADMISSIONDATE (date), DIAGNOSTIC (number), FIRSTNAME (varchar2), SALARY (number). There are actually 3 FK constraints, I've only mentioned one for the simplifying the example. The first FK constraint is towards COUNTRIES, the second one is towards GENDERS, and the final one is towards DIAGNOSTICS. All this 3 tables have only two columns (ID as number, and GENDER as varchar2). I will post the scripts for all.
    Here is the output of the Export DDL to Clipboard from SQL Developer for the COUNTRIES table:
    CREATE TABLE "TEST"."COUNTRIES"
    (     "ID" NUMBER NOT NULL ENABLE,
         "NAME" VARCHAR2(1000 BYTE) NOT NULL ENABLE,
         CONSTRAINT "COUNTRIES_UK1" UNIQUE ("NAME")
    USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "USERS" ENABLE,
         CONSTRAINT "COUNTRIES_PK" PRIMARY KEY ("ID")
    USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "USERS" ENABLE
    ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "USERS" ;
    CREATE UNIQUE INDEX "TEST"."COUNTRIES_PK" ON "TEST"."COUNTRIES" ("ID")
    PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "USERS" ;
    CREATE UNIQUE INDEX "TEST"."COUNTRIES_UK1" ON "TEST"."COUNTRIES" ("NAME")
    PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "USERS" ;
    CREATE OR REPLACE TRIGGER "TEST"."COUNTRIES_TRG"
    BEFORE INSERT ON COUNTRIES
    FOR EACH ROW
    BEGIN
    SELECT COUNTRIES_SEQ.NEXTVAL INTO :NEW.ID FROM DUAL;
    END;
    ALTER TRIGGER "TEST"."COUNTRIES_TRG" ENABLE;
    Here is the same output for the GENDERS table:
    CREATE TABLE "TEST"."GENDERS"
    (     "ID" NUMBER NOT NULL ENABLE,
         "NAME" VARCHAR2(50 BYTE) NOT NULL ENABLE,
         CONSTRAINT "GENDERS_PK" PRIMARY KEY ("ID")
    USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "USERS" ENABLE,
         CONSTRAINT "GENDERS_UK1" UNIQUE ("NAME")
    USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "USERS" ENABLE
    ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "USERS" ;
    CREATE UNIQUE INDEX "TEST"."GENDERS_PK" ON "TEST"."GENDERS" ("ID")
    PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "USERS" ;
    CREATE UNIQUE INDEX "TEST"."GENDERS_UK1" ON "TEST"."GENDERS" ("NAME")
    PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "USERS" ;
    CREATE OR REPLACE TRIGGER "TEST"."GENDERS_TRG"
    BEFORE INSERT ON GENDERS
    FOR EACH ROW
    BEGIN
    SELECT GENDERS_SEQ.NEXTVAL INTO :NEW.ID FROM DUAL;
    END;
    ALTER TRIGGER "TEST"."GENDERS_TRG" ENABLE;
    Here is the same output for the DIAGNOSTICS table:
    CREATE TABLE "TEST"."DIAGNOSTICS"
    (     "ID" NUMBER NOT NULL ENABLE,
         "NAME" VARCHAR2(1000 BYTE) NOT NULL ENABLE,
         CONSTRAINT "DIAGNOSTICS_PK" PRIMARY KEY ("ID")
    USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "USERS" ENABLE,
         CONSTRAINT "DIAGNOSTICS_UK1" UNIQUE ("NAME")
    USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "USERS" ENABLE
    ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "USERS" ;
    CREATE UNIQUE INDEX "TEST"."DIAGNOSTICS_PK" ON "TEST"."DIAGNOSTICS" ("ID")
    PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "USERS" ;
    CREATE UNIQUE INDEX "TEST"."DIAGNOSTICS_UK1" ON "TEST"."DIAGNOSTICS" ("NAME")
    PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "USERS" ;
    CREATE OR REPLACE TRIGGER "TEST"."DIAGNOSTICS_TRG"
    BEFORE INSERT ON DIAGNOSTICS
    FOR EACH ROW
    BEGIN
    SELECT DIAGNOSTICS_SEQ.NEXTVAL INTO :NEW.ID FROM DUAL;
    END;
    ALTER TRIGGER "TEST"."DIAGNOSTICS_TRG" ENABLE;
    And finally, here is the same output for the PATIENTS table:
    CREATE TABLE "TEST"."PATIENTS"
    (     "ID" NUMBER NOT NULL ENABLE,
         "NAME" VARCHAR2(1000 BYTE) NOT NULL ENABLE,
         "COUNTRY" NUMBER,
         "GENDER" NUMBER,
         "ADMISSIONDATE" DATE,
         "DIAGNOSTIC" NUMBER,
         "FIRSTNAME" VARCHAR2(1000 BYTE),
         "SALARY" NUMBER,
         CONSTRAINT "PATIENTS_PK" PRIMARY KEY ("ID")
    USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "USERS" ENABLE,
         CONSTRAINT "PATIENTS_UK1" UNIQUE ("NAME", "ID")
    USING INDEX PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "USERS" ENABLE,
         CONSTRAINT "PATIENTS_GENDERS_FK1" FOREIGN KEY ("GENDER")
         REFERENCES "TEST"."GENDERS" ("ID") ENABLE,
         CONSTRAINT "PATIENTS_DIAGNOSTICS_FK1" FOREIGN KEY ("DIAGNOSTIC")
         REFERENCES "TEST"."DIAGNOSTICS" ("ID") ENABLE,
         CONSTRAINT "PATIENTS_COUNTRIES_FK1" FOREIGN KEY ("COUNTRY")
         REFERENCES "TEST"."COUNTRIES" ("ID") ENABLE
    ) PCTFREE 10 PCTUSED 40 INITRANS 1 MAXTRANS 255 NOCOMPRESS LOGGING
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "USERS" ;
    CREATE INDEX "TEST"."PATIENTS_INDEX1" ON "TEST"."PATIENTS" ("NAME")
    PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "USERS" ;
    CREATE UNIQUE INDEX "TEST"."PATIENTS_PK" ON "TEST"."PATIENTS" ("ID")
    PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "USERS" ;
    CREATE UNIQUE INDEX "TEST"."PATIENTS_UK1" ON "TEST"."PATIENTS" ("NAME", "ID")
    PCTFREE 10 INITRANS 2 MAXTRANS 255 COMPUTE STATISTICS
    STORAGE(INITIAL 65536 NEXT 1048576 MINEXTENTS 1 MAXEXTENTS 2147483645
    PCTINCREASE 0 FREELISTS 1 FREELIST GROUPS 1 BUFFER_POOL DEFAULT)
    TABLESPACE "USERS" ;
    CREATE OR REPLACE TRIGGER "TEST"."PATIENTS_TRG"
    BEFORE INSERT ON PATIENTS
    FOR EACH ROW
    BEGIN
    SELECT PATIENTS_SEQ.NEXTVAL INTO :NEW.ID FROM DUAL;
    END;
    ALTER TRIGGER "TEST"."PATIENTS_TRG" ENABLE;
    If a complete DB dump would be more helpful, please let me know. I am willing to provide any details.
    Thanks for your support.

  • How to load data from XML DOM into tables using Business Components

    <p>
    Hi,
    </p>
    <p>
    I need to upload XML file (it&#39;s not a problem) an load data (DOM tree) from this file into relationan tables. This filelooks like this:
    </p>
    <p>
    <font face="courier new,courier" size="2">&lt;Departments&gt;
       &lt;Department&gt;
          &lt;DepartmentName&gt;OPERATIONS&lt;/DepartmentName&gt;
          &lt;Localization&gt;BOSTON&lt;/Localization&gt;
          &lt;Employees&gt;
             &lt;Employee&gt;
                &lt;LastName&gt;TURNER&lt;/LastName&gt;
                &lt;Job&gt;SALESMAN&lt;/Job&gt;
                &lt;Manager&gt;7698&lt;/Manager&gt;
                &lt;HireDate&gt;1981-09-08&lt;/HireDate&gt;
                &lt;Salary&gt;1500&lt;/Salary&gt;
                &lt;Commerce&gt;0&lt;/Commerce&gt;
             &lt;/Employee&gt;
          &lt;/Employees&gt;
       &lt;/Department&gt;
    &lt;/Departments&gt;</font>
    </p>
    <p>
    Is there any Business Components support to obtain this ? What about primary and foreign keys values (there is no in XML file). How to place this XML data in appropriate tables ?
    </p>
    <p>
    Kuba 
    </p>

    Pl post details of exact OS and database versions, along with a sample of the XML file and description of the tables. What have you tried so far ?
    http://docs.oracle.com/cd/E11882_01/server.112/e22490/ldr_control_file.htm#i1005614
    HTH
    Srini

  • Help required building ADF-Swing/ADF-Faces using ADF Business Components

    My question is in regards to how you can go about building a light swing application to an ADF model?
    In particular if I were to say that we were developing a 3-tier project whereby we had a database tier, a series of EJB-ADF façade session beans to the database (middle-tier), and a swing client communicating with the session beans (view-controller tier), how would you go about developing these screens?
    In particular can we develop these screens using ADF-Faces and also ADF-Swing?
    The EJB session façade beans of course are ADF app modules with customised methods. The methods would return back customised DTO objects. These DTO objects are wrappers to row objects ADF would create. This would be mainly due to making these facade beans web service enabled (Oracle state that these methods cannot return oracle.jbo objects if they are to be web service enabled).
    This would be typically deployed to an app server, like Oracle App Server 10G.
    Could you please have a look at this, as I am doing a lot of research into this.
    eg. Taking example from oracle magazine sept/oct 2006
    with slight enhancements
    package oramag.frameworks.example.common;
    import oracle.jbo.ApplicationModule;
    import oramag.frameworks.customdto.EmployeeDTO;
    public interface HRService extends ApplicationModule {
    void deleteCurrentEmpAndCommit();
    EmployeeDTO findEmployee(int employeeId); // new method
    import oramag.frameworks.customdto.EmployeeDTO;
    public class HRServiceImpl extends ApplicationModuleImpl {
    public void deleteCurrentEmpAndCommit() {
    Row empRow = getEmpView().getCurrentRow();
    if (empRow != null) {
    empRow.remove();
    getDBTransaction().commit();
    public EmployeeDTO findEmployee(int employeeId)() {
    EmployeeDTO employeeDTO = null;
    EmployeesImpl employees = getEmployees();
    employees.setNamedWhereClauseParam("EmployeeId", employeeId);
    employees.executeQuery();
    if(employees.hasNext()) {
    EmployeesRowImpl employee = (EmployeesRowImpl)employees.next();
    employeeDTO = new EmployeeDTO(employee);
    return employeeDTO;
    public EmployeesImpl getEmployees() {
    return (EmployeesImpl)findViewObject("Employees");
    Now given the above code snippet, how could you turn this into an ADF-Swing/ADF Faces application so that if a user using the swing application enters an employee id, then the application will execute the query on the app server, the app server in turn returns the results to the client, and the client finally display the results. Typical MVC example.
    Cheers
    Rodney

    The tutorial is for ADF BC used with JavaServer Faces.
    While the tutorial doesn't cover it, we also support drag and drop development for Swing and visual WYSIWYG layout for Swing panels and windows, too. For a very simple example, watch screencast #4 on my blog here:
    http://radio.weblogs.com/0118231/stories/2005/06/24/jdeveloperAdfScreencasts.html
    One thing I have noticed is that when using ADF business components, when the app module returns a custom DTO object like the above example, it returns the data in a element structure according to the data control palette.
    You don't generally ever need to create your own custom DTO's when working with ADF for use by client UI's. The only situation where can be necessary -- until we simplify this in the JDeveloper/ADF 11g release -- is when you desire to expose custom methods that can return sets/arrays of typed row structures through a web service. However, web services are not involved/required in building 3-tier Swing applications.
    When dropping onto a page it does so like a string and doesnt give option to display the data in a read only form etc. Is there anything we need to do, to get the functionality.
    It's more of what you don't need to do :-)
    Just leverage the active data model that the ADF application module provides. You can read more about it in section 4.5 "Understanding the Active Data Model" of the ADF Developer's Guide for Forms/4GL Developers on the ADF Learning Center at http://www.oracle.com/technology/products/adf/learnadf.html). Your UI's bind to view object instances in the data model, and your UI's are automatically kept up to date without needing to write methods that return data. I short article I wrote that preceeded my writing the ADF Developer Guide content on this topis is here:
    http://radio.weblogs.com/0118231/stories/2006/01/26/theAdfBusinessComponentsActiveDataModel.html
    I know that when dropping a view object you get this functionality. Also was wondering if we were to pass an object of thios type back to the model it might not give us the rich functionality like input forms, like what Oracle provides if we were to drop a enitity view object.
    Just use the active data model and everything becomes totally easy, with no changes required to switch between local or three-tier deployment configurations.
    Trying to do everything with hand-coded DTO beans is really going the hard way.
    Could you help us regarding this?

  • Connecting to a database from Business Components JSP Application

    Hallo All!
    Can anybody give me an advice about connecting to a database from Business Components JSP Application? In all examples I see that Oracle user name and password placed in configuration file.
    How can user provide his own name and password to start Oracle session and how then hi can close this session?
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Dmitri:
    Dear Laura,
    I mean first variant where the database would be the same:
    scott/tiger@database1
    foo/bar@database1
    Of course I understand that we must register every user in database by "CREATE USER XXX" and it is unacceptable for Internet. But it may be very convenient for an Intranet because we can build access restriction based on set of views without any changes in applications.
    Best wishes,
    Dmitri.<HR></BLOCKQUOTE>
    null

Maybe you are looking for

  • How to sort a custom database table ?

    Hi, how do I sort/order a custom (Z) database table (not internal table) ? Couldn't find a suiting option with F1 for the SORT statement. Thanks, Avraham

  • Motion 5 on OS X 10.8.3

    I have Final Cut Pro X on and don't want to upgrade to OS X 9 since I read about all the problems people are having (mainly computer running slow...). My FC runs fine on OSX 10.8.3. Can I purchase Motion thru the app store? System requirements say I

  • Satellite 775 Blu-Ray software

    My Satellite blu ray software just decided to quit reading blu ray discs.  It runs the DVDs just fine, and third party software will read blu-ray discs and play them fine.  I'd prefer to not pay through the nose for some good third party stuff though

  • Chat Server Help

    I'm developing a chat server and I am handling it with threads. I developed a executable class to handle all and I'm putting all the users in two Hashtables. There are two kinds of users. I need to know how many users do you gurus believe it can supp

  • Not able to download OS3

    Connecting with i-tunes, the dowload starts as normal but when finishing (the indicator shows that the whole file has been downloaded) it stops and an error message indicating that hte connection has timed out appears (error 3269). I tried multiple t