JDev 10.1.3 ADF- eliminate XML

We are evaluating JDeveloper 10.1.3 and OC4J for a critical project. We are committed to moving to EE5 as rapidly as possible. The ADF Faces components are very useful. However, creating the necessary data controls produces too many extraneous XML files. We are trying to reduce source files, not add more. In fact, we would like this application to be entirely free of XML within the enterprise.
So, back to just plain JSF. My question is, is it possible to do JNDI lookups using the @EJB annotation in the managed bean to the session facade? I can't seem to make it work. Also, how soon before EE5 JDeveloper will be available for Solaris? Please advise on both questions. Thank you.
Josh Foster

Thanks kindly for your responses. I should have re-phrased my questions better. What I meant to say was:
I have the following architecture:
- JSF on the View/Controller
- a Business Delegate session bean that calls Session Facades that encapsulate Entity Beans on the Model
QUESTION 1. I can inject @EJB annotations on my Business Delegate to call Session Facade interfaces just fine. Similarly, I can use an @Resource annotation on the Session Facades to inject an EntityManager to call Entity Beans. No problem.
But, when I try to inject @EJB(name="ejb/BusinessDelegate") on my JSF backing-beans (or some other JSF managed bean), OC4J just ignores the injection. I have the JNDI name registered in web.xml as <ejb-local-ref>.
Now, it works fine if I go through the trouble of writing a service locator, using an InitialContext lookup. But I want to avoid writing this ugly code.
So, my question is, should the @EJB annotation work from View to Model?
QUESTION 2. I'm not against having a couple of standard XML files such as web.xml and faces-config.xml. I didn't mean to imply that those were troubling. But, when I create a data control on the Business Delegate so that I can use ADF Faces components on my JSPs, JDeveloper insists on creating XML files for ALL of my Session Facades, AND, for each one of my Entity Beans. This literally DOUBLES the number of source files I have to carry around.
Is it possible this information can be annotated on the bean itself, preferably generated automatically by the IDE?
3. Will JDeveloper 10.1.3 production work on Solaris? We have many new Solaris workstations on our team. This is imperative if we are going to be able to switch over to Oracle AS from BEA.
Please kindly advise. And thank you again.
Josh

Similar Messages

  • Updating defaultTimeout in adf-config.xml through WLST

    Hello,
    I hope i have this in the right area. I'm cross posting because I think I put it in the wrong place originally. If I get an answer, I'll cross link the two.
    I'm trying to change the default, min and maximum timeouts for portlets that come from our WSRP portlet producing application. The documentation I found on the time outs says to edit adf-config.xml 1 and when editing the adf-config.xml do that via WLST ^2^.
    1) portlet time out: [http://docs.oracle.com/cd/E17904_01/core.1111/e10108/webcenter.htm#BABIGHDC|http://docs.oracle.com/cd/E17904_01/core.1111/e10108/webcenter.htm#BABIGHDC]
    <adf-portlet-config>
    <defaultTimeout>5</defaultTimeout>
    <minimumTimeout>2</minimumTimeout>
    <maximumTimeout>100</maximumTimeout>
    <adf-portlet-config>
    2) editing adf-config.xml: [http://docs.oracle.com/cd/E17904_01/webcenter.1111/e12405/wcadm_app_config_files.htm#WCADM5019|http://docs.oracle.com/cd/E17904_01/webcenter.1111/e12405/wcadm_app_config_files.htm#WCADM5019]
    I can not find the MBean in the bean browser that seems to hold this setting.
    There is a bit of a conflicting message in the docs though. "If you must modify these properties, post deployment, you must edit adf-config.xml manually." But the doc that describes editing adf-config.xml says that using WLST are
    So... Questions:
    1) Are these three elements (defaultTimeout, minimumTimeout, and maximumTimeout) some exception to being set from WLST?
    2) If not, what is the MBean I should find this setting in?
    Thank you very much,
    Marc
    Edited by: MarcDavenport on Jun 26, 2012 12:37 PM

    Marc,
    This is just a guess(have'nt done this), but I think the settings are not an exception, and you should be able to find the MBean here:
    http://docs.oracle.com/cd/E17904_01/webcenter.1111/e12405/wcadm_intro.htm#BHCCJJED
    This section of the doc seems to walk through an example setting properties in adf-config.xml
    I would interpret those instructions in the official doc to mean :
    1. If you don't mind changing this at deploy time and re-deploying(like we do when we're in deep development), you can change this and redeploy.
    2. If you have a deployed application, you can make changes through WLST. But keep in mind that the changes you make through WLST will not be overwritten later when you change the adf-config in Jdev and redeploy.
    (This lets you fine tune the timeouts for specific environments. ex: bigger timeouts for dev envs hosted with smaller resources/unstable un-optimized code, rather than guess a timeout that works for all environments )
    Now comes the conflicting parts :
    "If you must modify these properties, post deployment, you must edit adf-config.xml manually."
    I think,they mean "manually using WLST". This can probabaly be done with both WLST commands and the MBeans.
    Now once you make these changes to a deployed application, the changes you made are stored in MDS. This means that this "tuning" will survive a re-deployment.
    So if we :
    set the timeout to 1 minute initially at design time,
    then change that to 5 minutes through WLST,
    and then edit adf-config again in Jdev to a 10 minute value and redeploy,
    the MDS still has the 5 minute value, and it will overwrite the 10 minute value we set later at design time and redeployed.
    MDS documents are always applied on top of the deployed stuff.
    The doc you refered to : http://docs.oracle.com/cd/E17904_01/webcenter.1111/e12405/wcadm_app_config_files.htm#CHDGEDGJ
    does make a good explanation of how the changes persisted in MDS affects the final configuration.
    Hop that helps !

  • Issue Connecting from Oracle Business Component Browser - adf-config.xml

    There are similar posts in the forum to this, but I wasn't able to glean from them what I should do.
    Essentially, I tried Connecting by:
    right clicking on a node under a Model project, and selected TEST.
    When the Oracle Business Component Browser - Connect Dialog window opened, I clicked CONNECT.The Oracle Business Component Browser (Local) seems to have opened fine, but in the message log I see this:
    "jar:file:/C:/JDeveloper/jdev/doc/studio_doc/ohj/bc4j_f1.jar!/bc4j_f1.hs"
    Feb 10, 2007 10:16:30 AM oracle.adf.share.config.ADFConfigFactory findOrCreateADFConfig
    INFO: oracle.adf.share.config.ADFConfigFactory No META-INF/adf-config.xml found
    I'm not experienced enough to know whether this is significant or not, nor if so what I need to do about this.
    Thank you to anyone who can help a newer person out with this.
    Matt
    Studio Edition Version 10.1.3.1.0.3984
    Build JDEVADF_10.1.3.1.0_NT_061009.1404.3984
    ADF Business     Components 10.1.3.39.84
    BPEL Designer     10.1.3.1.0 (Build 061009.0802)
    Java™ Platform     1.5.0_06
    CVS Version     Internal to Oracle JDeveloper (client-only)
    I found this release note, which mentions both adf-client.xml and JClient; I'm still too new to know whether this helps with this or not, but I'm hoping it does for someone out there.
    Thanks again.
    ON: http://www.oracle.com/technology/products/jdev/htdocs/10.1.3.0.3/readme.html
    JClient Security Still Requires AM Property Setting (4889913)
    JClient applications should continue to use application module configuration property jbo.security.enforce for enabling authentication and authorization.
    The authorizationEnforce property in adf-config.xml new in 10.1.3 is not yet supported for JClient
    Message was edited by: Matt
    matt.tech

    Hi,
    the adf-config.xaml file is not created by default and not needed by default. you need this to define custom skins or ADF Security.
    For an example of adfs-config.xml doe skins see SRDemo sample app
    Frank

  • Correct root XML node for adf-settings.xml?

    I'm finding contradictory documentation for what the root XML node of the adf-settings.xml file should be:
    1) Frank & Lynn's Oracle Fusion Dev Guide on pg93: <adf-settings>
    2) Fusion Dev Guide Example 21-2: <adf-config>
    http://download.oracle.com/docs/cd/E14571_01/web.1111/b31974/adf_lifecycle.htm#CHDHCBGF
    3) Fusion Web Guide Example A-6: <adf-settings>
    http://download.oracle.com/docs/cd/E14571_01/web.1111/b31973/ap_config.htm#BABCBJAB
    From my own testing only #2 appears to work as follows:
    <?xml version="1.0" encoding="UTF-8" ?>
    <adf-config xmlns="http://xmlns.oracle.com/adf/config">
      <adfc-controller-config xmlns="http://xmlns.oracle.com/adf/controller/config">
        <lifecycle>
          <phase-listener>
            <listener-id>MyAdfListener</listener-id>
            <class>waosr.common.view.MyAdfListener</class>
          </phase-listener>
        </lifecycle>
      </adfc-controller-config>
    </adf-config>...though it seems contradictory that the root node of the adf-settings.xml file is adf-config. Am I doing something wrong or is this intended?
    With thanks,
    CM.
    PS. JDev 11.1.1.2.0

    Chris,
    I can confirm that
    <adf-config xmlns="http://xmlns.oracle.com/adf/config">
    <adfc-controller-config xmlns="http://xmlns.oracle.com/adf/controller/config">
    xmlns="http://xmlns.oracle.com/adf/controller/config">
    <lifecycle>
    <phase-listener>
    <listener-id>AdfInteractiveAppListener</listener-id>
    <class>adf.interactiv.view.AdfInteractiveAppListener</class>
    </phase-listener>
    </lifecycle>
    </adfc-controller-config>
    </adf-config>
    works. I did re-run the sample I wrote for the book and that worked by then - and now needs the change. I need a bit to follow up on whether the book and the web developer guide are wrong or if the ADF framework has it wrong. I can't believe that it got documented wrong two time - so there either has been a format change later on, or there is an issue with the current implementation.
    Frank

  • How to create adf-settings.xml

    hi
    The blog post "How to configure an ADF Phase Listener and where to put the file " by Frank Nimphius
    at http://blogs.oracle.com/jdevotnharvest/entry/how_to_configure_an_adf_phase_listener_and_where_to_put_the_file
    says "... To configure the adf-settings.xml file, create the file as shown below in the .adf\META-INF directory of your application ..."
    But how to create a file in the .adf\META-INF directory using JDeveloper seems to have some confusing documentation:
    - section "A.5.1 How to Configure for ADF Faces in adf-settings.xml"
    at http://docs.oracle.com/cd/E21764_01/web.1111/b31973/ap_config.htm#ADFUI9840
    in "Oracle® Fusion Middleware Web User Interface Developer's Guide for Oracle Application Development Framework 11g Release 1 (11.1.1.5.0) Part Number B31973-09 "
    says
    "To create and edit adf-settings.xml:
    1. If not already created, create a META-INF directory for your project.
    2. Right-click the META-INF directory, and choose New from the context menu. ..."
    Using JDeveloper 11.1.1.5.0 creating a Fusion Web Application (ADF) the .adf\META-INF directory seems to exist, but there does not seem to be a way to "Right-click the META-INF directory, and choose New from the context menu." as documented.
    - section "A.5.1 How to Configure for ADF Faces in adf-settings.xml "
    at http://docs.oracle.com/cd/E24382_01/web.1112/e16181/ap_config.htm#ADFUI9840
    in "Oracle® Fusion Middleware Web User Interface Developer's Guide for Oracle Application Development Framework 11g Release 2 (11.1.2.1.0) Part Number E16181-02 "
    says
    "To create and edit adf-settings.xml:
    1. If not already created, create a META-INF directory for your project in the Application Sources folder (.adf\META-INF).
    2. Right-click the META-INF directory, and choose New from the context menu. "
    Using JDeveloper 11.1.2.1.0 creating a Fusion Web Application (ADF) there seems to be a ViewController\src\META-INF\adf-settings.xml file created by default. Note that it is not in .adf\META-INF but in ViewController\src\META-INF .
    - (q1) What are the specific steps to create adf-settings.xml in the correct location using JDeveloper?
    many thanks
    Jan Vervecken

    Jan,
    I am actually testing this with 11g R2 PS2 (upcoming) and for me the adf-settings.xml file is not created, which I am confused of. The 11.1.1.6 documentation has been updated with
    *"By default, there is an adf-settings.xml file created for you in the view_project/src/META-INF directory."*
    This leaves room for interpretation
    i) adf-settings.xml are created in th eproject directory for the reason mentioned in an older thread that this is better for workspaces that contain two projects with controller settings
    ii) where there is a "by-default" there must be a non-default, which could indicate the location I used in the blog
    The documentation then goes:
    To create and edit adf-settings.xml:
    If one does not already exist, create a META-INF directory in the src directory of your view project (you will need to do this outside of JDeveloper).
    Note:*
    If you are using ADF Model in your application, then the directory will already exist in the application_name/.adf directory.*
    Which seems odd. Though it confirms the application wide configuration I used, why would you have the default created for the View Layer project and the manual one you create in the application wide configuration. So it seems that there indeed is a missing guidance on where this file should go into.
    So it seems you still will have to wait for a final answer on this. Note that adf-settings.xml is not only used by the controller, which may mean you can have multiple locations (and multiple files?). I'll try and do a bit more research on this. For now, as you say the listeners work for you, I suggest you leave them with the ViewLayer project. I am wondering if the adf-settings.xml file gets deployed with an Adf Library (will check this) in which case the right answer would be to save it in the view project.
    Frank

  • META-INF & adf-settings.xml not found ...

    HI All,
    I am using JDeveloper 11.1.1.4 .
    I try to register my custom phase listeners to adf-settings.xml file .But it's not available in my View Controller project .
    Meta-Inf folder & adf-settings.xml file  will create default or not ? ...
    I read the below post but I am not able to understand completely .....
    Correct root XML node for adf-settings.xml?
    Thanks ,
    David ...

    Hi David,
    Did you see this post?
    https://forums.oracle.com/thread/2133229

  • Adf-config.xml file gets corrupted

    Hello,
    I have observed in many instances that adf-config.xml file get corrupted in the sense it looses (wipes out) mds conenction string and as a result the projects won't compile or you will not be able to fecth anything from MDS like wsdls ect. Making this file as read only or backing it up seems to be the work around. I have seen this in 11.1.1.3.0 version.
    But can you please suggest why this happens and any permanent solution to fix this?
    Thanks
    SathyaP

    In your adf-config.xml the password property is not properly closed and your property name is incorrect.
    Replace following:
    <property name="password" value="p$ssword1"*with this in your adf-config.xml
    <property name="jdbc-password" value="p$ssword1"/>

  • Oracle.adf.share.config.ADFConfigFactory No META-INF/adf-config.xml found

    I just install jdeveloper10.1.3.3.0 4157, and test ,When I run test ,
    display:"oracle.adf.share.config.ADFConfigFactory No META-INF/adf-config.xml found
    Please help me how to solve this problem!

    Just now I test jdeveloper 11g 4 preview
    test project display log:
    2008-6-15 22:38:14 oracle.security.jps.internal.config.xml.XmlConfigurationFactory handleLocation
    警告: [XmlConfigurationFactory.handleLocation] Exception occurred when handling origLocation=/D:/jdevstudio11114949/j2ee/home/config/system-jazn-data.xml : no protocol: /D:/jdevstudio11114949/j2ee/home/config/system-jazn-data.xml
    2008-6-15 22:38:14 oracle.security.jps.internal.config.xml.XmlConfigurationFactory handleLocation
    警告: [XmlConfigurationFactory.handleLocation] Exception occurred when handling origLocation=/D:/jdevstudio11114949/j2ee/home/config/system-jazn-data.xml : no protocol: /D:/jdevstudio11114949/j2ee/home/config/system-jazn-data.xml
    [JpsAuth] For permisson ( CredentialAccessPermission credstore.provider.credstore.ADF.anonymous#HR001 read), domain that failed: ProtectionDomain cs(file:/D:/jdevstudio11114949/BC4J/lib/adf-share-support.jar), []
    BC4J Tester exit code(0)
    Message was edited by:
    user616170

  • Adf-config.xml

    Hallo everybody,
    Can anyone tell me where i can find the adf-config.xml for webcenter spaces PS3?
    Thanks in advance.

    In DesignWebCenterSpaces application navigating Application Resources -> ADF META-INF you can edit adf-config.
    Try to change it and share the results.
    Regards.

  • About ADF logging.xml

    hello everyone, configure a loghandler in logging.xml like this:
    <property name='path' value='${domain.home}/servers/${weblogic.Name}/logs/owsm/msglogging/diagnostic.log'/>
    where the ${domain.home} and ${weblogic.Name} set up, then can I set up other variable and how?

    hello my jdev is 12c,
    please look this url about ADF log 
    thanks

  • How to get JDev 10.1.2/ADF working with MS SQL Server Identity Column

    Hello JDevTeam & JDevelopers,
    I want to use JDev/ADF with a MS SQL Server 2005 database that contains tables employing IDENTITY Columns.
    Using JDev/ADF and DBSequence with an Oracle database employing before triggers/sequences accomplishes what I am trying to do except I want to accomplish the same thing using a MSSQL Server 2005 database. Unfortunately I cannot change the database.
    I have been able to select records but I am unable to insert records (due to my lack of knowledge) when using MS/SQL Server Identity Columns with JDev/ADF.
    The following are the steps taken thus far.
    Step1: Create table named test in the 2005 MSSQL Server (see script below).
    Step2: Register 3rd Party JDBC Driver with JDeveloper; Using use Tools/Manage Libraries. Create a new entry in User Libraries with the following;
         Library Name     = Ms2005Jdbc
         Class Path     = C:\dev\Ms2005Jdbc\sqljdbc_1.0\enu\sqljdbc.jar
         (note: Latest TYPE 4 JDBC driver for Microsoft SQL Server 2005 - free at http://msdn.microsoft.com/data/ref/jdbc/)
    Step3:Create New Database Connection;
         Connection Name = testconn1
         Type = Third Party JDBC Driver
         Authentication Username = sa, Password = password, Check Deploy Password
         Connection
              Driver Class = com.microsoft.sqlserver.jdbc.SQLServerDriver     
              Library = Ms2005Jdbc     
              Classpath = C:\dev\Ms2005Jdbc\sqljdbc_1.0\enu
              URL = jdbc:sqlserver://192.168.1.151:1433;instanceName=sqlexpress;databaseName=test
         Test Connection = Success!
    Step5: Create a new application workspace using Web Application default template
    Step6: In Model project, Create new Business Components Diagram.
    Step7: Create new Entity Object. Goto to connections/testconn1, open tables and drag table test onto the diagram.
    Step8: Generate Default Data Model Components by right-clicking on Entity Object. Except all the defaults.
    When I test the Appmodule I select the view object and can scroll through all the records without error. If I try to insert a record, I get JBO-27014: Attribute testid in test is required.
    Going back to the EntityObject I deselect the Mandatory attribute and re-run the test. Now when I try to insert it accepts the value for testname but it does not update the PK testid like it would using an "JDev/ADF/DBSequence/Oracle database/before trigger/sequence" solution.
    Going back to the EntityObject and selecting refresh on insert does not solve this problem either. Changing the URL connection string and adding "SelectMethod=cursor" did not help and changing the SQl Flavor to SQLServer produced errors in the Business Components Browser. I've tried overriding isAttributeChanged() and other things as well.
    I am totally stuck! Can anyone provide a solution?
    Thanks for you help,
    BG...
    Create table named test
    use [testdb]
    go
    set ansi_nulls on
    go
    set quoted_identifier on
    go
    create table [test](
         [testid] [int] identity(0,1) not null,
         [testname] [nvarchar](50) collate sql_latin1_general_cp1_ci_as not null,
    constraint [pk_test] primary key nonclustered
         [testid] asc
    )with (pad_index = off, ignore_dup_key = off) on [primary]
    ) on [primary]

    Figured it out!
    When using the MS SQL Server 2000 Database with the MS JDBC 2000 Driver you specify the SQL Flavor to SQLServer. However setting the SQL Flavor to SQLServer with MS SQL Server 2005 Database and the MS JDBC 2005 Driver will *** fail ***.
    When working with the MS SQL Server 2005 Database and the MS JDBC 2005 Driver you set the SQL Flavor to SQL92 and the Type Map to Java.
    If using a named instance like I am you would specify the URL = jdbc:sqlserver://<db host ip address>:<listening port>;instanceName=<your instance name>;selectMethod=cursor;databaseName=<your database name> (note: leave out the < >)
    The 2005 Driver Class is different then the 2000 and is specified as com.microsoft.sqlserver.jdbc.SQLServerDriver
    Note: In a default MS SQL Server 2005 installation the listening port will change *** everytime *** the host is restarted! You can override this though.
    For the primary key you need to deselect the Mandatory attribute in the EntityObject editor.
    Set Refresh on insert/update = no.
    Set Updateable = never.
    Now my Primary Keys which get their values from the Identity Column are working with ADF in a predictable way.
    Simple enough but I have been away from this stuff for awhile.
    BG...

  • ADF Mobile - XML Parsing

    Previously I posted on calling a remote webservice - Calling remote service using ADF Mobile and I get my weather application working already.
    The webservice returned me a string which is a XML form. I want to parse the XML to make it easy-read.
    The currently output from the webservice (http://www.webservicex.com/globalweather.asmx) is as below.
    *<string><NewDataSet>*
    *<Table>*
    *<Country>Singapore</Country>*
    *<City>Singapore / Paya Lebar</City>*
    *</Table>*
    *<Table>*
    *<Country>Singapore</Country>*
    *<City>Singapore / Changi Airport</City>*
    *</Table>*
    *</NewDataSet></string>*
    How do I parse this output so I can display the string properly in mobile?
    Singapore / Paya Lebar
    Singapore / Changi Airport
    Any direction on how to do this? Or is there any built-in function inside JDeveloper?

    Try to go to this link - http://www.webservicex.com/globalweather.asmx?op=GetCitiesByCountry and use Singapore as CountryName or any country you prefer
    The output is a string
    +<string></string>
    -<string>
    <NewDataSet>
    <Table>
    <Country>Singapore</Country>
    <City>Singapore / Paya Lebar</City>
    </Table>
    <Table>
    <Country>Singapore</Country>
    <City>Singapore / Changi Airport</City>
    </Table>
    </NewDataSet>
    </string>
    The tutorial for ADF Mobile from Oracle website is able to drag the output from data control - return -> value/class. But this webservice only return a single value of string. How do I change it to display properly in ADF Mobile?

  • JDev Extensions: Register only a particular XML file with custom Editor?

    Hi Guys,
    I have extended the Editor class and created my own Editor - MyCustomEditor. Below is the part of 'extension.xml', where I am registering any XML document with this editor.
    <editors xmlns="http://xmlns.oracle.com/ide/extension">
    <!-- Register our custom editor -->
    <editor id="myCustomEditor.design"
    label="My Design"
    editor-class="oracle.xxx.xxx.MyCustomEditor" >
    <node-type class="oracle.bali.xml.addin.XMLSourceNode" />
    </editor>
    </editors>
    But my actual requirement is to register my custom (design) editor to a particular XML file which has a fixed name, lets say MyApplicationFile.xml. I don't want this Custom Editor for any other XML document. How can I achieve this?
    Thanks,
    Rajesh.

    No JDev version??
    Here is what you can try.
    1. Subclass XMLSourceNode to CustomXMLSourceNode. Mention this class in editor tag.
    2. In addition to <editor> you may need to have <xml-recognizer> along with <include-filenames>MyApplicationFile.xml</include-filenames>.

  • Where should i put the file adf-config.xml ?

    hi,
    I want to enable adf authorization,according to B25947(developer guide for 4gl/form developer),this file should put to <application_ name>/.adf/META-INF
    Is it correct?I'm feel odd. Another thing is :why container binding authorization user/role come from system-jazn-data.xml?
    thanks everyone advance
    lixinzhu
    2007/4/25

    Hi,
    yes, .adf\META-INF is located in the root workspac directory. It is created automatically if you se JDeveloper 10.1.3.2, which has an ADF Security wizard to automate the setup.
    The system-jazn-data.xml usage is a requirement coming from OC4J and has to do with ADF Security using JAAS for authorization. This is subject tochange in a future version in which JAAS definitions will be possible on an application scope (jazn-data.xml) as well
    Frank

  • Can JDev 10.1.3 ADF application run in Oracle Fusion Middleware 11g?

    Hi,
    We have a 10.1.2.0.2 application server and our JDeveloper 10.1.3 ADF application is running in a separate 10.1.3 home because it was unable to run in the first one. We are thinking about upgrading to Fusion Middleware 11g and I'm wondering if anyone knows will I be able to set it up somehow so that the JDev application runs in this or would I leave it in the 10.1.3?
    Thanks
    Adam

    I dont think this would be feasible till project fusion is through.
    Thanks
    Tapash

Maybe you are looking for