Managed Beans vs. POJO Data Control for sharing data

Hi,
I am currently using JAX-WS proxy client and POJO Data Controls to retrieve data from web services. This data needs to be shared across users. Normally I would use application scoped managed beans for this, but since I prefer using data controls and the binding layer, would using static POJO Data Control classes achieve the same thing?

Hi,
Data Controls don't exist across user sessions so in your use case use a managed bean in application scope. If you want to make this available from a Data Control
- create a POJO
- Use EL in the POJO to access the managed bean
- Create a DataControl from the POJO
This way the Data Control exposes the data as an API but itself always reaches out to the managed bean as a data store/cache
Frank

Similar Messages

  • Links to Web Service Data Control for complex data types

    Hello Forum members,
    Could anyone please post good reference links to docs/blogs illustrating how to create and use a Data Control for a Web Serice Proxy Client providing interfcae for a complex xml schema ?
    Any help highly appreciated :)

    http://blogs.oracle.com/shay/2010/05/updateinsert_with_adf_web_serv.html

  • Should we really go for bean data controls for a new project?

    Hi,
    I am still new data controls and trying to figure out the advantages of using bean data controls for our new project. Our UI is going to have customized UI components and our back end is going to be a tcp/ip server.
    Is it a good idea to develop java beans and then create data controls to bind to UI layer? I think it makes sense to use data controls if we want to use existing java beans. Maybe we would be separating the model layer by using data controls, but only thing it would be doing for us would be the simple object calls to my java beans. Would it be better to use data controls or use I choose to make object calls?
    Thanks,
    Manoj

    Hi,
    the POJO data control will always give you a benefit and develope productivity, unless what you have to build fits on a single page - in which case you may not mind the burdon of manual UI component binding
    Frank

  • Data-control-scope=shared is not working

    Steve Muench said in January 2010 in that post {thread:id=1012099}
    "In order to share the connection/transaction when data-control-scope=shared, today as an implementation detail we do AM nesting for you at runtime when using task flow calls”
    From that thread I understood that: by setting *"data-control-scope"* to *"shared"* +(this is the default in 11.1.1.3.0)+ in _task flow definition file_ +(in behavior section)+, it should make the task-flow using the same database connection than the _parent’s application module_.
    *Is that true?*
    If so, it is not working for me.
    <li>I’ve created 2 _independents_ ADF Fusion Applications : *MyMainApp* and *MyTFlow* </li>
    <li>Each application has a Model and a ViewController projects.</li>
    <li>Each application has one ViewObject and one Application Module.</li>
    <li>MyMainApp/Model contains MyMainService Application Module & AllEmployeesView ViewObject </li>
    <li>MyTFlow/Model contains MyTFlowService Application Module & AllDepartmentView ViewObject</li>
    <li>MyMainService and MyTFlowService have the same JDBC Datasource (jdbc/GCCDS).</li>
    <li>_In MyTFlow/ViewController project_</li>
    <li>I’ve created one page fragment and dragged & dropped AllDepartmentView as an ADF Read-Only Table</li>
    <li>I’ve created one Task Flow (allDept-task-flow-definition) and added the pageFragment onto it.</li>
    <li>I’ve set the “data-control-scope” to “shared” (it was the default) </li>
    <li>I’ve created a new deployment profile (ADF Library Jar) and deployed the jar file </li>
    <li>_In MyMainApp/ViewController project_</li>
    <li>I’ve created a JSF Page (home.jspx)</li>
    <li>I’ve dragged & dropped AllEmployeesView as an ADF Read-Only Form. </li>
    <li>I’ve dragged & dropped the “allDept-task-flow-definition” from “Resource Palette” onto the JSF Page. It automatically put it inside an af:region and imports the jar file to the Libraries (ADF Library)</li>
    <li>I run the home.jspx page. It works fine but with *2 database connections!*</li>
    I think I’ve missed something.
    Best Regards
    Nicolas

    Hi,
    the problem is that the Application Modules are root modules and therefore open a new database connection. Only nested application modules reuse the connection of the parent AM. Andrejus Baranovski did blog about this and came up with the suggestion to build reusable projects such that the model and the view controller parts are deployed separately into ADF Libraries and then combined in a super ADF Librery. This way you can use nested application modules (a single datase connection)
    http://andrejusb.blogspot.com/2010/10/how-to-reduce-database-connections-and.html
    http://andrejusb.blogspot.com/2010/06/adf-regions-and-nested-application.html
    Note that IMO the real power of shared Data Controls comes when you use ADF Regions in an application as a mean of modularization.
    Frank

  • Best practice for sharing data with model window

    Hi team,
    what would the best practice for sharing data with a modal
    window be ? I use a modal window to display record details from a
    record list, but i am not quite sure how to access the data from
    the components in the main application in the modal window.
    Any hints would be welcome
    Best
    Frank

    Pass a reference to the parent into the modal popup. Then you
    can reference anything in the parent scope.
    I haven't done this i 2.0 yet so I can't give you code. I'll
    post if I do.
    Oh, also, you can reference the parent using parentDocument.
    So in the popup you could do:
    parentDocument.myPublicVariable = "whatever";
    Tracy

  • Why we are not using "Message Control" for Master data ?

    Hi friends,
    We are using Message control as output determination for Transactional data, <b>what is the main reason for not using the msg control for Master data.</b>Please explain with details...
    I am very thankful to them...
    Thanks and Regards.
    <i><b>Naveen Kumar. Chamala</b></i>

    Hi Naveen,
       Listing down those I know -
       1. Master data is expected to be changed/created less frequestly.
       2. Transactional data is expected to be chnaged/created more frequestly.
       3. Transactions to create/change/display master data do no have message control integration, since you are not supposed to print/fax/mail master data to your partners.
       4. Distribution of master data in generally supposed to happen within Enterprise boundry and typically you will have one central server maintaining master data which will be distributed to multiple downstream operation system (Some thing where MDM fits). So ideally when distributing master data using ALE you will be sending it to multiple systems.
       5. Distributing transactional data PO/SO etc is same as sending fax/print which fits with the requirement of message control.
    Hope this helps,
    Regards,
    Sanjeev

  • Web service data control for asynchronous bpel process

    I have an async BPEL process that I want to call from a JSP page. I followed the tutorial for creating a data control for web services. When the DC was created, it created an initiate operation that requires the ReplyTo and MessageID. I thought these are internal to the runtime stack, so why are they part of the data control? How do I get around it?
    Thanks,
    Rico

    http://blogs.oracle.com/shay/2010/05/updateinsert_with_adf_web_serv.html

  • How to create custom Data Control for Iterator?

    Hi,
    I have seen somewhere that is possible to customize set of data controls for all iterators in Data Controll Palette e.g. by adding custom data control (I remember JDev uses Velocity to display data controls). Is there any documentation or tutorial how to do it. Meybe any Oracle ACE will write some steps on his blog.
    Kuba

    I'm looking for any documentation or better some examples to customize files:
    jdev/system/oracle.adfm.dt.faces.10.1.3.41.57/jsp_databinding_templates.xml
    jdev/system/oracle.adfm.dt.faces.10.1.3.41.57/faces_creator_configuration.xml
    This customization may be very useful while developing appliations
    Kuba

  • Error while creating Data Source for master data attributes

    Hi BI Experts,
    Well its been some time for me that I have been part of Extraction in BI.I primarily handled reporting in my last assignments.
    I was trying extraction with flat files in SAP BI 7(new to sap bi 7 but very much familiar with BW3.5) but failed in the activity during master data attributes and text upload in infoobject (say IOSP_Mat).
    Here is the procedure that I did after creation of characteristic IOSP_Mat.I created a source system for flat file followed by data source for Master data attributes, i selected all the parameters correctly.i.e. csv file format, data seperator as   ,
    and other settings, now when i am trying to look at the proposed data in the next tab using Load example data.its not showing the desired result.The columns that I have maintained in Flat File is  MAT_NUMBER and MAT_NAME (with say 100 data in the file)
    same is the result when I am trying to load the text data too columns maintained are
    (LANGUAGE MAT_NUMBER Short Description)(same 100 data).
    now i used to rsa1old transaction  to upload the file using 3.5 version.i created info source for master data/text/hierarchies for  IOSP_Mat
    now when trying to upload it using info package for master and text data,I observe its(the data) not maintained in the characteristic IOSP_Mat.
    When I monitored ,I figured the data has not been even uploaded to the PSA level.
    Can you BI experts tell me the answer for this.
    Thanks,
    Srijith

    apologies to all of you for late response,
    was busy with some other activities.
    I don't remember the exact message,but I remember it was not loaded to even the PSA level.I will try it again and post the exact message.
    Thanks again for your quick response.
    Once again sorry to all of you for my late response
    Thanks,
    Sri

  • Data Type field read only in Data source for transaction data (PC_FILE)

    Hi folks,
    I need to change Data Type for some of the fields in "Field" tab in data source for transactional data. It became read only after I activate the data source. Need help in making it editable. All fields now have Data type=CHAR.
    Thanks

    Nevermind folks. I got it.

  • Date range for key date in hierarchy

    Dear Friends,
    Is there a work around for single key date restriction for time dependent hierarchy.Bcos i can only select one key date in teh report for my hierarchy so that it will take that hierarchy which falls in this date and display the result accordingly.
    But is there a way to select the date range for key date so that more than one hierarchy can be used to display my report accrding to the time range.
    Say,i have 4 hierarchies (time dependent) like v1,v2,v3,v4 and v5 for jan 08,feb 08,mar 08,apr 08 & may 08 respectively.
    In my report,i want to display the result for the time interval say mar to May.
    So my report should diplay the result according to the 3 different hierarchies for the time period i.e.v3,v4&v5.
    How do i acheive this.
    Thanks.
    ragu

    Hi
    I think we may do with the Char with text with replecement path.
    take time char as Calmonth and set the offet value as -1 and -2 and design the report and use the hierarchies in that query.
    Am not surt it willwork but better to try with this.

  • Problem in data sources for transaction data through flat file

    Hello Friends,
    While creating the data sources for transaction data through flat file, I am getting the following error "Error 'The argument '1519,05' cannot be interpreted as anumber' while assigning character to application structure" Message no. RSDS016
    If any one come across this issue, please provide me the solution.
    Thanks in Advance.
    Regards
    Ravi

    Hallo,
    just for information.
    I had the same problem.
    Have changed the field type from CURR to DEC and have set external instead of internal.
    Then, the import with flatfile worked fine.
    Thank you.

  • Data source for this data connection isn't registered for Power BI

    Hi, I am getting this error when I set Schedule Data Refresh to refresh data from db.  How do I register my connection to the data source?  Is this a fix on SQL server or Power BI?
    FAILURE INFORMATION
    Failure
    Correlation ID: c5132b7a-3c54-4f12-a048-3ddcf0b95f26
    Data connection Status
    SqlServer twcperfsql1 OfficePerf OnPremise error: Sorry, the data source for this data connection isn't registered for Power BI. Tell your Power BI admin the admin needs to register this connection to this on-premises data source.
    Thanks for your help.

    I'm running into the same issue, I did configure the Gateway and then the data source in Power Bi.
    When I go to the Power BI Admin Center and click on "Test Connection" it seems to be working. But when I refresh the data from Power BI it doesn't work. Now if I edit the spreadsheet in excel and refresh the data in PowerPivot then it works. So
    not sure why the solution doesn't refresh from the automated service in Power BI without this useless error.
    Thanks
    Fabian
    In case it helps this is the actual error:
    Failure Correlation ID: ecc73a16-7264-45b2-9baf-e3448f007211                                                     
    Power Query - dbo_TableAOnPremise error: Sorry, the data source for this data connection isn't registered for Power BI. Ask your Power BI admin to register the data source in the Power BI admin center.
    Also further information I have found so far is that the Gateway is receiving the requests for the refresh and it shows the message below, so the data source is found and communication seems to be happening from server to client and back, not sure why server
    doesn't seem to like the data the Gateway is sending back to server.
    The feed 'dbo_TableA' was successfully accessed at 7/15/2014 4:23:26 PM.
    The request took 00:00:00.0000105 seconds.
    Activity ID: e8464e5d-3f0a-49c2-b10b-450fec3e5940

  • Data Source for BSEG Data base table

    Hi Every one,
    I need to create a data source for the data base table BSEG (Function Module Extraction).
    I have followed below steps.
    I have created extarct structure which contains all the fields of BSEG Data base table.If I save the data source I am getting error.
    If I remove all the currecy fields from extract structure, I am able to activate the data sorce.
    So Could you please explain me how to extract currency fields.

    Hi,
    Firstly, can you explain why you need a generic extractor for BSEG? There are already 2 datasources for BSEG, they are:
    0FI_GL_4
    http://help.sap.com/saphelp_nw70/helpdata/en/0c/b4973c115a6f3ae10000000a114084/frameset.htm
    0FI_GL_14
    http://help.sap.com/saphelp_nw70/helpdata/en/49/5700570223413085021a8b4ef1087a/frameset.htm
    To use 0FI_GL_14, you should use the new GL in ECC side.
    On the other hand, for your problem, your problem may occur if you did not give the reference unit field of your currency field in your extraction structure. when you double click the  the currency field, you will see the ref. field, give the reference unit field in this area.
    Regards.

  • Master Data Required for 2LIS_02_HDR Data Source Installation

    Hi All,
                  We are trying to install  2LIS_02_HDR DataSource through BC for our purchasing implementation . Can you suggest what all the Master Data required for this Data Source.
    Regards,
    Aditya

    Hi ,
    Please see this link.
    http://help.sap.com/saphelp_nw70/helpdata/en/ed/62073c44564d59e10000000a114084/frameset.htm
    http://help.sap.com/saphelp_nw70/helpdata/en/ed/62073c44564d59e10000000a114084/frameset.htm
    In the same page you can find all details.
    Hope this helps.
    Thanks
    CK

Maybe you are looking for

  • IPOD Not Recognized By Windows XP - The Solution!!!

    Hi folks, I came across the solution to this problem over on the Microsoft website and it instantly cured my problems. Here are the steps: The solution is to make sure you stop the usb device prior to unplug. not just ejecting from itunes but stoppin

  • Photoshop elemenst 2 - PLEASE help!

    I've installed PSE 2 and am trying to use it in a standard user account. However it cannot initialize and so I cannot open the program. I've searched and found this on adobe's site; http://www.adobe.com/support/techdocs/325856.html This is exactly th

  • Is it possible to print multiple pages on a paper?

    Hi, I'm somewhat new to InDesign and am using CS6. I will describe what I would like to accomplish since I'm not sure how to ask my question. I am making a master page (A-master) for a playing card for the purpose of using data merge to fill in the t

  • EREC: Multipal IDOC are getting created in receiver system for one IDOC

    Hello Experts, I ran in to one wearied issue in IDOC creation in Receiver system. I am running PFAL in sender system for only Person but 10 IDOC are getting created in receiver system. I don't know why is this happening. This issue started popping up

  • Libvirt-lxc No valid cgroup for machine // systemd-nspawn

    I am getting mad at trying to set up correctly a arch linux container on my guest with libvirt (LXC left me with a broken set up too). Here are some basic info: - custom kernel with user space set - host up-to-date - guest mounted on my root fs /dahl