How to Develop with ADF Business Components for Multiple Databases

Hi,
I developed business component by http://www.oracle.com/technetwork/developer-tools/jdev/multidatabaseapp-085183.html tutorial. it was work on mysql and oracle database. In mysql , Set Up Primary Key Generation is only one sequence share betweeen tables. How to make another sequence each mysql table?

juddi,
As that article states, the built-in capability of ADF BC uses that single table for all entities (tables) - since it's just a surrogate key, it should not matter. If you wanted different sequences for different entities (tables), that is something you'd have to code for yourself.
Best,
John

Similar Messages

  • Building Cascading Lists for Query Screens with ADF Business Components.

    I build “Cascading Lists for Query Screens with ADF Business Components”. When I to select master list first working fine, but when I to select master list second returned error : JBO – 25013 : Too many objects match the primary key oracle.jbo.key[CN]. CN dependences with key to detail list (Countries in this case). Please help me.
    Andrew.

    You would have a better chance, that someone answers your question, if you choose the right forum:
    JDeveloper and ADF

  • Building Cascading Lists for Query with ADF Business components and JSP

    I build “Cascading Lists for Query Screens with ADF Business Components”. When I to select master list first – Ok, but when I to select master list second returned error : JBO – 25013 : Too many objects match the primary key oracle.jbo.key[CN]. CN dependences with key to detail list (Countries in this case). Please help me.
    Excuse me for my English.
    Andrew.

    You would have a better chance, that someone answers your question, if you choose the right forum:
    JDeveloper and ADF

  • Concurrence with ADF business components

    I need know, how do I do the concurrence control (connection of several users ) on business components

    Hi,
    concurrency is handled internally within ADF BC. Each user will have their own instances of Application Modules which represent a transaction and implicitly handle row locking and state management.
    Brenden

  • ADF business components and scalability ?

    Hello,
    I am new to the ADF Framework, I come from an open source background.
    I have a limitation to use Oracle technologies for an internet banking design.
    My concern is the large number of users accessing the system and how we scale up through clustering.
    Do you recommend ADF business components for this application, can ADF be simple POJOs handlers or EJB 3.0 session facades ? if that is the case, would you recommend EJB 3.0 for clustering and scalability for an internet banking system.
    Any guidance is appreciated.
    Thanks.

    Thanks for the reply, I will read the document, however,
    If I try to compare ADF to other frameworks, creating BCms as POJOs would take advantage of the Apache clustering(web tier, same as Tomcat clustering in Jboss), there is no need for OC4J services of the 10gAS, on the other hand, if I go with EJB3 stateless session beans BCms then i would need 10g OC4J container and its clustering capability(AS clustering).
    Your time is appreciated and please respond only if you time, i will go through the doc.

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

  • How execute pl/sql command from Oracle ADF Business Components

    can't find examples for how execute pl/sql command from Oracle ADF Business Components and how call pl/sql package procedure from ADF Business Components.
    insert,update,delete rows in view object instance cache is good but if i must do some complex operations while insert,update,delete rows..it's more better for me to call
    pl/sql procedure from oracle db.Am i wrong ????

    Roman,
    this should be similar to how it worked in JDeveloper 9.0.3. hava a look at <JDev903 Home>\BC4J\samples\StoredProc for a code example.
    Frank

  • Does ADF Business Components  work well with tables without primary Key?

    We have tables using unique index without primary key. Can ADF Business Components relate business objects based on the unique index columns of the tables?

    Hi,
    Regarding my question about the XML syntax for custom properties:
    It turned out to be another problem in the Entity object definition that caused the JDeveloper error. Other entities let me add the custom property without problems. However should anybody ever need that XML syntax, here's how you add a custom property to an entity definition in the XML code:
      <Attribute
        Name="Id"
        IsNotNull="true"
        Precision="10"
        Scale="0"
        ColumnName="ID"
        Type="oracle.jbo.domain.Number"
        ColumnType="NUMBER"
        SQLType="NUMERIC"
        TableName="TABLE"
        PrimaryKey="true">
        <DesignTime>
          <Attr Name="_DisplaySize" Value="22"/>
        </DesignTime>
        <Properties>
          <CustomProperties>
            <Property
              Name="SequenceName"
              Value="SEQ1"/>
          </CustomProperties>
        </Properties>   
      </Attribute>Best regards,
    Bart Kummel
    Edited by: Bart Kummel on Sep 8, 2009 1:14 PM

  • Multiple ADF Business Components projects for one ADF project

    I have an ADF project where I have my own ADF Business Components Model, with View Objects, etc. Can I add another ADF Business Components from another project - they access a different database than I do with queries that I could use.

    I see two options:
    1. rename one of your Model.jpr to somthing else and then try again to add a dependency.
    2. create a jar out of the second model project and import the applcation module out of the jar into the other project. To import use file->import and select 'Business Components' from the list. Check tho docs ("Importing Business Components Created by Someone Else")

  • ADF Business Components with SQLITE db connection

    Dear Experts,
    I just started exploring JDev+ADF. I tried to create business components from a SQLITE db connection, but it seems that the Wizard windows stuck at the first steps even though I have successfully tested the SQLITE db connection.
    Has anyone tried to create ADF Business Components from sqlite db connection using the wizard windows? Do I have to code this manually?
    JDev: 11.1.1.6
    JDBC Driver: sqlitejdbc-v056.jar
    SQLite: 3.6.0
    Thanks

    Since ADF BC are just java classes and jars - I don't see a reason why not.
    But I would be interested to know what specifically are you going to build with velocity.

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

  • Integrating ADF Business Components from heterogenous data sources

    Hi all,
    has anybody experience in integrating ADF Business Components from heterogenous data sources like ViewObjects from a DB2 database as LOV in a ViewObject from a Oracle 11g?
    What is the best practice approach to integrate such different ADF Business Components in declarative and programmatic ways?
    Thank you!

    thank you for the answer! We already updated out BC according to http://www.oracle.com/technetwork/developer-tools/jdev/multidatabaseapp-085183.html
    The DB2 ViewObjects are exported as ADF Libraries and imported in the BC of the project with Oracle DB ViewObjects. In the root AM I created instances from the imported DB2-ViewObjects as well as from the Oracle-ViewObjects, but when I start AM test environment it takes the preconfigured Data Source of the root AM. So I probably will pesneed to create two AMs for the different ViewObject types and for the two connection types. My question is what will be best practices to use data from the DB2-VO of AM_DB2 in the OracleDB-VOs as part of AM_Oracle? Should it be done only programmatically or can it be done also declaratively and any suggestions how to proceed?
    Thank you!
    Edited by: nbo on Jun 3, 2012 2:53 AM

  • Refresh ADF Business Components

    I create view(ADF business components) with my sql statiment
    select e.*,d.* from scott.emp e, scott.dept d where e.deptno=d.deptno
    on my first page JSP I drop ReadOnly table
    on my second page JSP i drop InputForm for edit.
    and so
    I run my project, on first page have the button "Edit" which is bound my JSF Navigation Case with second page.
    I try edit emp.DeptNo and commit change. When I back on first page i see that emp.DEPTNO changed but dept.DNAME not changed.
    How I can refresh my first page that see all changed?

    Hi Frank!
    I use JDeveloper 10.1.3 EA1.
    I Create Application through Application Template (Web application [Default] -
    This application template is configured for building a data-bound web application. It consists of one project for the view components (JSF, JSP) and controller (JSF), and another project for the data model (ADF Business Components))
    I create page through faces-config.xml.
    I create JSPX page. Then I Drag and Drop my VO from Data control palette.
    My CommandButton from ADF Faces core from Component palette.

  • Oracle ADF Business Components Vs PL/SQL Application

    Hi,
    Has anybody used Oracle Application Development Framework's Business Components (ADF BC)? What are the disadvantages and issues that you faced? Can anyone compare PL/SQL with ADF BC?
    Would like to know the advantages and dis-advantages of both the technologies(PL/SQL and ADF BC).
    Can anybody help on this?

    Hi,
    Not sure what exactly you are looking for.
    But let me explain so that you can get some idea of their working and ofcourse difference.
    ADF BC which are nothing but the Entity Objects (EO) and View Objects (VO) which are the Java representation of the DB.
    EO is like database table and is a 1-o-1 representation of the underline database table as a Java class file.
    VO is like database view and is always based upon some custom SQL or combination of one or more EOs.
    For developing a Database based application you always layer where you can handle the database objects and can also write the business logic or validation for the
    data entered at the UI.
    PLSQL is straight forward is the language to write business logic at the database level.
    I hope this will give you some details.
    Thanks,
    KKCHOPRA

  • Developing with ADF BC or TopLink

    We are a Higher Education PeopleSoft Student Administration, Financial and HR shop and are interested in gaining expertise with technology that will benefit us for when we implement Fusion Application technology. We are in the process of developing a web application using JDeveloper ADF and would like to know if we should focus our development using ADF BC or TopLink. I was under the impression that TopLink would be the best way to go, but I encountered a comment on a web site ( http://www.odtug.com/fusionjava_sig.htm ) "Fusion Java Development SIG topics of interest do not include:Non-Fusion technologies supported by JDeveloper (JSP/Struts, TopLink and JClient) and I would like to know if we should rethink our development strategy and focus on ADF BC.
    Thank you

    The decision of whether to go with TopLink or ADF BC as the implementation for persistence usually depends on the background of the developers.
    I wrote about it here:
    http://blogs.oracle.com/shay/2006/03/10
    Since most of the developers at Oracle who are going to work on the Fusion generation of applications are coming from a 4GL background (Forms, BC4J, Peopletools etc) - the decision was made to use ADF Business Components in Fusion Applications.
    This combination also provide us with the most out of the box features and less coding.

Maybe you are looking for