Business Components for Java & XML

In the application I am currently developing, I am using XML metadata to communicate between a web browser and servlets (the xml is parsed by a servlet using an XSL stylesheet to output plain html). To build the XML, I am using the XML SQL utility and the following code:
try{
dset = new OracleXMLDataSetExtJdbc(conn, (Reader)sqlStr);
dset.refreshDataSet();
}catch (Exception ex){}
OracleXMLDocGen doc = (OracleXMLDocGen) new OracleXMLDocGenString();
OracleXMLQuery qry = new OracleXMLQuery(dset);
qry.setRaiseException(true);
qry.getXML(doc, qry.DTD);
My question involves Oracle's Business components for Java. We have recently been doing more research into this technology and the features of it are quite appealing. However, as far as I can tell, there is no way to use the Oracle XML Utilities in conjunction with the BC4J. ie. XML is created based on a view object, not a SQL query to the Database.
Does anyone know of any way of acheiving this XML generation based on a BC4J foundation?

A BC4J View Object is effectively a Java component that represents a database query.
The key difference is that the view object exposes a rowset API to work with which is
fully updateable, fully scrollable, and automatically coordinated with underlying business logic which you have encapsulated into your companion entity objects (another BC4J Framework building-block component). View objects can also be used to create any interesting hierarchy of master/detail/detail queried database information using "View Links" to link the View Objects together. This allows you to effectively work with a "tree" of data that is perfectly shaped and filtered to the needs of the task at hand -- including self-referential "parts-explosion" kind of view links.
In JDeveloper 3.1, BC4J ships with a utility class called oracle.jbo.xml.XmlRowSetRenderer which automatically supports rendering the results
of any view object (and its "tree" of view-linked view objects) as XML, either in DOM format or into a Writer.
In JDeveloper 3.2 (the next major release) the B2B XML features of the BC4J framework are further enhanced by supporting true, bidirectional XML-in and XML-out for any view object. This means that an XML message can be "fed" to any view object and it natively knows how to handle inserts, update, deletes and (most importantly) enforcement off all shared business logic from the underlying, related entity objects.

Similar Messages

  • Business Components for Java - Pooling

    I need a little bit of clarification regarding business components for java...
    I would like to create a jdbc connection pool for my application to avoid the overhead of creating new jdbc connections each time a client connects.
    Since I'm using BC4J, and the jdbc connect is contained within the bc4j components, I connect to the database using:
    session.getTransaction().connect("jdbc:oracle:thin:test/test@ccmain:1521:clincare");
    Does the BC4J architecture do any connection pooling itself? My plan was to create a pool of ApplicationModules that could be easily and quickly accessed, but if bc4j already pools the jdbc connections internally, then I'm not sure I would gain any performance with my ApplicationModule pool.
    Any input would be appreciated! Thanks!

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Steve Muench ([email protected]):
    [b]Does the BC4J architecture do any connection pooling itself?
    Strictly speaking, in JDev/BC4J 3.1, the answer is no. BC4J 3.1 offer Application Module pooling and since AM's are paired one to one with connections, using a pool of AM's is pretty much the same as using a pool of connections.
    However, in JDev 3.2 we've dramatically improved the features for use in a high-throughput Web application scenario and in doing so have implemented a more flexible application module pooling mechanism as well as a connection pooling mechanism that work together to allow developers to exploit application module instances to retain pending state without "pinning" that pending state to a particular AM instance and without "pinning" a dedicated database connection.
    Early customer previews we've done on our 3.2 features have been receving rave reviews, so we'll excited to get it out to a wider audience this Fall.
    For now, you're best bet is to exploit the application module pooling mechanism.<HR></BLOCKQUOTE>
    Is JDev 3.2 going to include a support for registering application module not from the property file, but using specific database username and password for the underlying connection ?

  • Business Components for Java entity beans of J2EE

    What is the future of Business Components for Java with the new standard entity beans of the sun Java 2 Entreprise Edition?
    Thanks.
    null

    The Standard Entity Beans are a component (JavaBean) that can be a small piece of the ultimate application needs.
    Oracle Business Component for Java is a complete framework that has numerous features that make developing COMPLETE applications easy.
    Please download the white paper on Business Components, try your hand at creating an application with Business Components (using the wizards) and you will see that Business Components for Java is much more than a simple (/complex) reusable component, it is a complete framework which maked developing N-tier applications almost trivial by allowing you to focus on writing your business logic while the framework takes care of all the application infrastructure and the necessary plumbing.
    Sincerely,
    John@Oracle JDeveloper Team http://technet.oracle.com
    null

  • Change Business System for Java Proxy Client

    I have created Web AS Java business system for Java proxy.
    Is it possbile to send message from client Java Proxy as another business system (Third party)?
    For example to specify this system
    MessageSpecifier messageSpecifier = proxy.$messageSpecifier();
    messageSpecifier.setSenderService("MY_BUSINESS_SYSTEM");
    proxy.$messageSpecifier(messageSpecifier);

    Yes, it is.
    That's the way to do it.
    Stefan

  • Error Loading Business Components for Project

    Good Afternoon,
    I am running JDeveloper ver. 10.1.2
    when I open JDeveloper I get the pop up:
    Error Loading Business Components for Project
    U:\Jdev\mywork\CUSTLEVR\CUSTLEVR\CUSTLEVR.jpr

    You could simply edit the .jpr file outside the Jdeveloper and remove <ownerMap /> element.
    Additionaly, there are some <properties> in the bottom of the file, that need to be removed as well - try experimenting with them.

  • Business Graphics for Java

    Hi,
    What are the java API supported for Business Graphics? I find a few on java but on [ABAP|http://help.sap.com/saphelp_nw04/helpdata/en/45/644c3e873e2f95e10000000a155369/content.htm] the support is richer.
    - Nikhil

    Hi,
    What do you mean by "java API supported for Business Graphics? "
    Web Dynpro for JAVA has following graphic UI elements:
    http://help.sap.com/saphelp_nw04/helpdata/en/9b/d9883672d57c73e10000009b38f889/frameset.htm
    regards,
    ganga

  • Standard XSLT for Java(XML) Doclet

    I've just found "Java Doclet" <http://wwws.sun.com/software/xml/developers/doclet> for generating XML documentation from Java source code files rather than generating HTML. It is just what I want because I can easily create customized HTML versions out of the XML using XSLT sheet.
    I've wondered if there's available an XSLT for generating standard HTML just like the output of the standard doclet, to use as starting point for modifications?

    BTW, the closest thing I can think of is xmlroff which uses the output of this
    XML doclet to produce PDF (without cross-reference links, I believe)
    http://xmlroff.sourceforge.net/
    See the Javadoc example:
    http://xmlroff.sourceforge.net/examples/javadoc/index.html
    The source is at sourceforge:
    http://sourceforge.net/projects/xmlroff/
    Also now available on SourceForge is the related PangoPDF project at
    http://pangopdf.sourceforge.net/
    and
    http://sourceforge.net/projects/pangopdf/
    Please let me know what you think of these.
    -Doug Kramer

  • Business system for java proxy

    i use xi system as java AS for java proxy. in receiver communication channel i use URL ADDRESS or HTTP destination?????

    please help me its showing following error
    <Trace level="2" type="T">Switch back to normalized party (HTTP response)</Trace>
      <Trace level="1" type="T">Sender scheme external =</Trace>
      <Trace level="1" type="T">Sender agency external =</Trace>
      <Trace level="1" type="T">Sender party external =</Trace>
      <Trace level="1" type="T">Sender party normalized =</Trace>
      <Trace level="1" type="T">Party normalization: receiver</Trace>
      <Trace level="1" type="T">Receiver scheme external =</Trace>
      <Trace level="1" type="T">Receiver agency external =</Trace>
      <Trace level="1" type="T">Receiver party external =</Trace>
      <Trace level="1" type="T">Receiver party normalized =</Trace>
      <Trace level="2" type="T">Undo header mapping (HTTP response)</Trace>
      <Trace level="1" type="T">Sender: Header before undo of mapping</Trace>
      <Trace level="1" type="T">Party =</Trace>
      <Trace level="1" type="T">Agency =</Trace>
      <Trace level="1" type="T">Scheme =</Trace>
      <Trace level="1" type="T">Service = BS_Debashish</Trace>
      <Trace level="1" type="T">Receiver: Header before undo of mapping</Trace>
      <Trace level="1" type="T">Party =</Trace>
      <Trace level="1" type="T">Agency =</Trace>
      <Trace level="1" type="T">Scheme =</Trace>
      <Trace level="1" type="T">Service = XIT4Java</Trace>
      <Trace level="2" type="T">Sender: Header after undo of mapping</Trace>
      <Trace level="2" type="T">Party =</Trace>
      <Trace level="2" type="T">Agency =</Trace>
      <Trace level="2" type="T">Scheme =</Trace>
      <Trace level="2" type="T">Service = BS_Debashish</Trace>
      <Trace level="2" type="T">Receiver: Header before undo of mapping</Trace>
      <Trace level="2" type="T">Party =</Trace>
      <Trace level="2" type="T">Agency =</Trace>
      <Trace level="2" type="T">Scheme =</Trace>
      <Trace level="2" type="T">Service = XIT4Java</Trace>
      </Trace>
      </Trace>
    - <Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_LOG_TO_PERSIST">
      <Trace level="3" type="T">Persisting message after plsrv call</Trace>
      <Trace level="3" type="T">Message-Version = 007</Trace>
      <Trace level="3" type="T">Message version 007</Trace>
      <Trace level="3" type="T">Pipeline CENTRAL</Trace>
      </Trace>
      <Trace level="3" type="System_Error">Error exception return from pipeline processing!</Trace>
      <Trace level="1" type="B" name="CL_XMS_MAIN-WRITE_MESSAGE_TO_PERSIST" />
    - <!--  ************************************
      -->
      <Trace level="3" type="T">Persisting message Status = 014</Trace>
      <Trace level="3" type="T">Message version 008</Trace>
      <Trace level="3" type="T">Pipeline CENTRAL</Trace>
      </SAP:Trace>

  • Manual patch application for java/xml files

    Hi,
    I am searching for a utility similar to FNDLOAD (which is used for applying a ldt file on an environment) which i can use if i need to apply a single or multiple java and xml files onto an environment. The environment that i am referring to here is a dev instance and waiting for the patching windows for testing integration with the R12 applications is very time consuming.
    Thanks,
    Ankit

    Ankit,
    A little bit of clarification here: FNDLOAD is a necessary program which loads flat files as data objects in the system whereas in case of java classes, it requires to be copied. Again, page and region, xml will need the import process for upload to MDS, while VO, EO just needs to be copied.
    So in all, you can write a script to copy the relevant java class files and XMLImport command for xml files.
    --Shiv                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • 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

  • Business scenario for mapping XML-EDI

    Hi,
    Can anyone explain me the process of mapping xml-edi to SAP and validations with respect to business.
    An example could really help.
    Thanks

    The inbound xml file contains data that needs to be put into a format that sap can understand. There are several ways to do this. You can use XI or any other transaltion utility. Alternately, your xml file can be converted using custom programs using XSLT as a translation tool.
    SAP has a number of ways of loading  external transactional data into the system. You can use IDOCs or web services, or other methods. The jist of it is you will need to convert your xml file into a format SAP understands.

  • Development without Business Components

    We have to support two other databases beside Oracle.
    1) Is it possible to develop applications and EJB's with JDeveloper 3.1 without using Business Components for Java ?
    2) Is it possible to use the infobus enabled Swing components without BC4J ? Or do we have to implement the data-awareness by ourselves ?
    Thank you
    Andreas
    null

    1) Is it possible to develop applications >>and EJB's with JDeveloper 3.1 without
    using Business Components for Java?Absolutely, EJB's are a Middle Tier component
    that are always available.
    Business Components __CAN__ be deployed as an EJB, but an EJB can serve many other needs.
    Q2: Unsure, but I believe so. Please consult the JavaDoc of the InfoSwing/InfoProducer controls.
    -John
    null

  • Business components Clob

    I tried to modify a query for a View Object. The modification is just adding a property in the SELECT. I tried to modify the query manually or by using the Query Builder. I have an exception that I don't understand:
    Business Components: Java type java.sql.Clob referenced by TopDescrEn is currently not supported.
    and the associated SDO schema file is now empty.
    I checked in the database and the data type is Clob.
    JDev 11.1.1.6

    The Standard Entity Beans are a component (JavaBean) that can be a small piece of the ultimate application needs.
    Oracle Business Component for Java is a complete framework that has numerous features that make developing COMPLETE applications easy.
    Please download the white paper on Business Components, try your hand at creating an application with Business Components (using the wizards) and you will see that Business Components for Java is much more than a simple (/complex) reusable component, it is a complete framework which maked developing N-tier applications almost trivial by allowing you to focus on writing your business logic while the framework takes care of all the application infrastructure and the necessary plumbing.
    Sincerely,
    John@Oracle JDeveloper Team http://technet.oracle.com
    null

  • Jdeveloper 3 & Oracle Business Components

    Can i use Oracle 8i 8.1.5 for the deployment of Oracle Business
    Components for Java or must i wait at 8.1.6 for support of EJB
    1.1 (V I don't want use an application server such as OAS 4.0.8)
    null

    Oracle 8i's JServer will support Java 2 in the next release
    8.1.6.
    - PSW
    Frank Garber (guest) wrote:
    : I'm sorry, I was wondering when 1.2 would be supported in
    : the Oracle 8i JVM??
    : Thanks,
    : Frank
    : ~~~~~~~~~~~~~~~~~~~~~~~~~~
    : JDev Team (guest) wrote:
    : : JDeveloper 3.0 will ship with JDK 1.1.8 and Java 2. Other
    JDK's
    : : can be used via the JDK switching feature.
    : : -PSW
    : : Frank Garber (guest) wrote:
    : : : Hi,
    : : : I skimmed through the document: "JDeveloper 3.0 Oracle
    : Business
    : : : Components for Java Technical White Paper" and could not
    find
    : : out
    : : : which version of the VM 3.0 is going to support.
    : : : 2 questions:
    : : : - 1: Which version of the JVM?
    : : : - 2: General availability date?
    : : : Thanks,
    : : : Frank
    Oracle Technology Network
    http://technet.oracle.com
    null

  • Using Java XML 1.5 toolkit instead of sapxmltoolkit for xslt mappings

    Hi All
       We have a case whereby our xlst requires a number of customised java class functions as we are porting webmethods systems across to PI.
    eg in the xslt adding
    <xsl:when test="function-available('java:concat">
        <xsl:value-of select="java:concat($first, $last, $inputparam)"/>
    We are running sap PI 7.1 ehp1. I have been referring to a number of posts on how to complete these tasks.
    namely we have implemented the example as provided in:
        http://help.sap.com/saphelp_nwpi71/helpdata/EN/73/f61eea1741453eb8f794e150067930/frameset.htm
    This only works if "Sap XML Toolkit" is enabled in the operational mapping.
    Left unticked (default setting in the mapping) whenever a testcase is run I end up with the error "could not compile sytle sheet".
    I would like to use the Java 1.5 xml processing capability as it is supposed to perform better than the sapxmltoolkit option and support for the latter will be discontinued in future.
    Has anyone been able run the case with sapxmltoolkit enabled?
    If so did you add any other libraries for java xml 1.5?
    thanks

    Thanks, I would have thought as much, but theres no guide on the deployment.
    For now i assume this will fit into the java/ext area and Pi would need a reboot after the libraries are copied.
    Has anyone deployed the additional libraries to PI.

Maybe you are looking for

  • Unable to change purchasing group in SC

    Hi,   While creating shopping cart,I can see purchasing group field in describe requirement,if it is a limit item,purchasing group field is not available in shopping cart. Any suggestions

  • Inserting records into Table with check table logic in place

    I want to insert records into a table, and have the check table to not allow invalid entries.  Is there a function out there that will allow this?  I am currently using the insert statement and it is working except that it is not giving an error when

  • Not Working-LexicalParamater used to send multiple values with one prameter

    Hi, I am calling a reportname.rdf from the web(using apache webserver and url as follows: http://localhost/cgi-bin/rwcgi60.exe?server=reportservername&report=acctActivity.rdf&userid=bizsystest/[email protected]&destype=cache&desformat=pdf&placeholder

  • (Grub) Dual booting with XP on sdb

    My goal is to be able to dual boot with two hard drives: Arch on sda and Windows XP on sdb.  With help in the #archlinux IRC I've managed to get Windows XP to boot by getting the menu.lst correct but when I click "Start Windows Normally", or "Start i

  • Setting empty Selections in Variables

    When setting a user-exit variable to initial for unassigned values, the variable value in the planning level displays the '#'.  When entering data for this selection in a layout and saving it, everything looks fine.  The data records are written to t