Multi use of same VO instance

Using Jdeveloper 10.1.3.3., ADF BC application.
Here is the problem...
I have created master view and 4 detail views. In application module, I've created instances of this master and it's details. Now...I've created panel's for detail views and panel for master view, so I could reuse them all later on.
I've put all of the panels (master and it's details) on the main form. Now I have to create two more forms. Each form should have that same master and one of the details. Idea is to have two or all three forms opened at the same time. If I use the same instance, every change on Form1 master view is also happening on form2's master view, because it is instance of the same master view.
I don't want to create new instances of master-details and new panels for each new form.
Is there a way to use one VO instance (in this case master and 4 details' instances) in more simultaneously opened forms?

Doesn't work. Repost.
DetailForm:
public void jbInit(){
panelADetail1.setBindingContainer(createBindingContainer(AConstants.VIEW_AUTONAR_PAGEDEFS_PATH + ".PanelADetailPageDef"));
private DCBindingContainer createBindingContainer(String pageDef){
String customName = pageDef + "1";
if(panelBinding.getBindingContext().get(customName) == null){
DCBindingContainerDef bcdef = DCBindingContainerDef.findDefObject(pageDef);
DCBindingContainer bc = bcdef.createBindingContainer((ApplicationModule)panelBinding.findDataControl("TempDataControl").getDataProvider());
bc.setName(customName);
panelBinding.getBindingContext().put(customName, bc);
return bc;
return null;
PanelADetail:
public void setBindingContainer(DCBindingContainer ctr){
panelBinding = (JUPanelBinding)ctr;
setBindingContext(ctr.getBindingContext());
I still have error...
Error message: (oracle.jbo.JboException) JBO-29000: Unexpected exception caught: java.lang.NullPointerException, msg=null
As I understand, the problem is I don't set binding context. As bcdef.createBindingContainer(BindingContext) is deprecated, I don't know how to set binding context for PanelADetail.

Similar Messages

  • BC4J View not Thread safe, user sessions are using the same view instance

    Hi There,
    We are using BC4J that came with JDeveloper 10.1.2.0.0 with Oracle 10G 10.1.2.0.0.
    I have an BC4J account search view (BC4J AccountSearchView) that users can call to search for an account. So this view could be used by numerous users and pieces of code at the same time. Now my understanding is that each user gets their own instance of the view so changing the view's query should not be an issue (since the view definition is not changing). Under a light load the account search view looks like everyone get there own instance of the view and there expected account search results. But under a heavy user load when we have User A and User B the search query that was for User A will be used by User B. So the user results for one user will get the other users results.
    I do not understand if the view definition is been changed by the other user and is impacting all view instances. How can this occur if it is thread safe?
    I have enclosed the core code for this search.
    If you can help that would be much appreciated, thanks in advance,
    Nigel
    accountSearchView.setQuery(baseSelectQuery+generateWhereClause());
    logger.debug("SearchAccounts Query: "+accountSearchView.getQuery());
    System.out.println("SearchAccounts SQL: "+accountSearchView.getQuery());
    accountSearchView.setPassivationEnabled(false);
    accountSearchView.setForwardOnly(true);
    accountSearchView.executeQuery();
    get attributes for each row result and place in new Java bean objects and return to user.

    Nigel, we've only certified JDeveloper 10.1.2 against the Struts 1.1 with which it ships.
    If there have been any changes in Struts 1.2 to the Struts Request Processor, then this could easily have an impact on the BC4JRequestProcessor's correct functioning, depending on what the changes were.
    My quick look into the issue tells me that the ActionServlet init parameter named mapping in web.xml that we use for the 9.0.3-style BC4J/Struts integration is getting ignored by Struts 1.2. This parameter is used by Struts 1.1 to globally configure a custom ActionMapping subclass which can support additional properties. My quick test shows me that Struts 1.2 is ignoring this setting and so the oracle.jbo.html.struts11.BC4JActionMapping subclass of Struts's default ActionMapping is not getting used correctly as it does in Struts 1.1. This leads to errors when Struts tries to configure its actions in struts-config.xml since the Apache digester tries to set properties on the ActionMapping instance that don't exist (since the BC4JActionMapping has these properties, and it's not being used).
      <servlet>
        <servlet-name>action</servlet-name>
        <servlet-class>org.apache.struts.action.ActionServlet</servlet-class>
        <init-param>
          <param-name>mapping</param-name>
          <param-value>oracle.jbo.html.struts11.BC4JActionMapping</param-value>
        </init-param>
      </servlet>This is my quick analysis of what's not out-of-the-box compatible. I don't know enough about the changes in Struts 1.2 to know why this Struts 1.1 feature broke in Struts 1.2, or what the Struts 1.2 way to accomplish the same thing is.
    I'd encourage you to use Worldwide Support's Metalink site and open a TAR for any time-critical issues you need assistance in resolving. Many of us are constantly traveling and only able to sporadically chime in with tips in the forum as our time permits.
    The source of the BC4JRequestProcessor ships with the produce in the ./BC4J/src directory inside the bc4jstrutssrc.zip file.

  • How to use the same bean from Jsp and Servlet

    I want to use the same bean instance from both the servlet and jsp.
    for eg. if a create a bean using the jsp:useBean in servlet and if a modify some values, that values should be reflected while i access the same bean from the servlet. But instead of that the servlet is creating a new instance of the bean.
    is it possible?
    Thanks in advance

    Hi,
    When you call jsp:useBean you inform a scope (session, request, page...)
    This means the bean instance will be stored in that scope.
    So, if the informed scope is session, then, in the servlet you could get the bean instance back from the session, this way:
    HttpSession session = request.getSession();
    Bean b = (Bean) session.getAttribute("bean_id");
    Regards,
    Filipe Fedalto

  • Ref: Multiple databases on same ASM Instance

    I am having an existing two Node RAC using ASM FIle System. I want to add one more database to the existing RAC using the same ASM diskgroup. We can create multiple databases using the same ASM instance?

    You need one ASM instance per server. You can have multiple instances resp databases running on that server accessing the same diskgroup made available on the server by the ASM instance.
    Kind regards
    Uwe Hesse
    http://uhesse.wordpress.com

  • Is it possible to use the same OSSO/OID for multiple R11 and R12 instances?

    Hello guru's,
    We have multiple R11and R12 instances that should be configured for Oracle SSO 10.1.4.3. For OID, we are still trying to decide between OID 10.1.4.3, or OID 11g. OAM is not an option because we also also need OSSO integration with Siteminder. We will also need to SSO-enable Discoverer an Forms.
    I have successfully configured SSO for a single-instance EBS R12, but not for multiple instances, let alone include R11 and other components into the mix.
    Do you have any special tips, guidance or lessons learned when SSO-enabling multiple instances into the same SSO/OID?
    Thanks!
    Maria

    Interestingly, the article talks about using the same SSO/OID for EBS, JD Edwards, Peoplesoft multiple R11 instances, but did not mention 'multiple EBS versions'. Am I just being picky or there was a reason for it not being mentioned?In Steven Chan blog (in the same link), see the following:
    Comprehensive Single Sign-On Solution+
    If you have one or more E-Business Suite Release 11i instances and are tired of maintaining users separately for each environment, you can create a central OracleAS 10g environment and manage all 11i users in one place.
    If you have a combination of PeopleSoft, JD Edwards, and the E-Business Suite in your organization, you can use OracleAS 10g to manage users for all three environments centrally.
    If you have a combination of the E-Business Suite and custom applications based on Oracle databases or OracleAS 10g technology, you can use OracleAS 10g to manage users for all applications in a single place.
    Thanks,
    Hussein

  • Using the same correlation set to multiple instances of the same process

    Hi all,
    Assuming that I have a Purchase Order with multiple items and I have a BPEL process that is triggered for each item.
    When the Purchase Order is cancelled by the customer, I want to cancel all BPEL process that is still running. I'm using SOA Suite 11.1.1.2.
    My first attempt was to use an event handler associated to a cancellation operation, but I couldn't do this because when the second BPEL instance was started, a conflictingReceive BPEL Fault is triggered. This occurs because BPEL can't have more than one active receive/on message using the same correlation set.
    Another way to do this is using a different correlation set for each instance (somethig like a composite key - Purchase Order ID + Item ID, i.e), but in this way I need to know all composite key in advance and send one message to each instance specifically.
    Anyone have any suggestion of how to cancel more then one instance of the same BPEL process using Event or a generic way that does not need to send one message for each instance?
    Events work very well to start more then one BPEL process but does not work well to receive an intermediate message during process execution because in this case we need correlation set to associate the event with the correct instance and BPEL does not support more then one instance of the same BPEL process waiting for the same correlation set.
    Any suggestion will be very welcome.
    Thanks in advance,
    Rafael

    Never mind. I got it.
    I put the iisforward.dll and .ini is a seperate folder, and edited the iisproxy.ini's to include the portnumber like this. And I changed the hostheaders in IIS to Site1, Site2 etc
    vhost1=Site1:80
    Site1:80=C:\Sites\Site1\iisproxy.ini
    vhost2=Site2:80
    Site2:80=C:\Sites\Site2\iisproxy.ini
    vhost3=Site3:80
    Site3:80=C:\Sites\Site3\iisproxy.ini

  • Two Instances of Oracle Application Server 10.1.3.x using the same DB

    I can't seem to find any documentation about installing two instances of Oracle Application Server 10.1.3.x using the same database.
    Would the two instances conflict? Should I create a separate database for each instance? I am attempting to cluster two application servers and I want to know if I will need multiple databases, I can't see a reason why this would be a problem.
    Any advice on this matter would be appreciated.

    You have probably downloaded the wrong version.
    Do not download the Oracle SOA Suite 10g (10.1.3.5.1) for WebLogic Server (10.3.1),
    but the one below that option: Oracle SOA Suite 10g (10.1.3.x)
    See if you get something like the following zip file: soa_windows_x86_101310_disk1.zip
    This is just the OC4J without the WebLogic Server.

  • Connecting to two database instances using the same Toplink

    Hi,
    We are trying to create a process using BPEL where data from one database instance needs to be passed to the other. The process is compiling properly and we could deploy it in BPEL Process Manager. But when we try to run the process, the data is not getting inserted into the second instance. There is no error /exception being thrown at most of the time, but at times we are getting a 'Unique constraint error' eventhough there is no duplication of data.
    Can we connect to two different instances using the same toplink. How can we achieve this.
    Thanks in advance
    Pratheusha

    You need to use two different sessions with two different mapping descriptors

  • How can I have use the same div ID multiple times on the same page?

    Okay so a problem I encounter a lot is that often times I want to use the same div ID several times on the same page. An example of this is when I'm creating table like designs.
    Let's say for instance I create a div ID called 'product-container'. I want to use 'product-container' multiple times on the same page but if I do this it is improper XHTML and will throw errors in any XHTML validator (you are only allowed to use a div ID once on any XHTML page in order for it to be standards compliant).
    Now the first option is that I could define 'product-container' in my CSS style sheet multiple times by doing something like this...
    #product-container {
         width: 300px;
    #product-container-2 {
         width: 300px;
    #product-container-3 {
         width: 300px;
    #product-container-4 {
         width: 300px;
    What you will see there however is that it seems pointless to define the same ID numerous times over (just adding a number on the end) when each ID is the exact same thing and has the exact same attributes.
    Now what I have noticed is that there are some sites out there who manage to have the same ID appear several times in the code but add a number to it just like above. The difference is that they only have one definition for 'product-cointainer' in their CSS document but in their actual XHTML code they have IDs for 'product-container' but with numbers on the end like 2,3,4,5, etc. It's almost as if JavaScript or some other code is automatically appending a number on the end of the ID so the validator won't consider the markup to be invalid, but yet it knows that it's using the same 'product-container' style that is contained in the CSS style sheet.
    I hope I explained this correctly. I'm just hoping to find a way that I can put the same div ID on a page multiple times without having to define it over and over again in my CSS.
    Any help is much appreciated!

    Because it seems like by using a class you can't make this position as 
    well as you can by using an ID. Am I wrong?
    An ID name can be used only one time per page.  A class name can be used multiple times per page.
    .product {
    width: 300px;
    text-align:left;
    color: #FF0000
    border: 2px solid #666;
    Nancy O.
    Alt-Web Design & Publishing
    Web | Graphics | Print | Media  Specialists
    www.alt-web.com/
    www.twitter.com/altweb
    www.alt-web.blogspot.com

  • Can I use the "same" button multiple times for multiple galleries?

    OK so I am extremely untrained in CS4 and Actionscript. However I have managed to get along fairly well until I started to dynamically upload images as a gallery. This works great if I have one gallery, but for my site I have 9 galleries!!! I have a back and next button, but I want to be able to use those same buttons for all of the galleries so they look the same. I have split them up and renamed them, but I am clueless on how to script the buttons to work. Please help...and don't laugh at my poor scripting. This is what I have now because I do not know where to put the other button names without getting errors.
    stop();
    next_btn .addEventListener(MouseEvent.CLICK, nextImage);
    var imageNumber: Number=1;
    function checkNumber(): void{
        next_btn.visible=true;
        back_btn.visible=true;
        if(imageNumber==15){
            trace(imageNumber);
        next_btn.visible=false;
        if(imageNumber==1){
            trace(imageNumber);
        back_btn.visible=false;
    function nextImage(evtObj:MouseEvent):void {
        imageNumber++;
        mc_engagement.source= "photo/engagement/en0"+imageNumber+".jpg";
        mc_amish.source= "photo/amish/Amish"+imageNumber+".jpg";
        mc_chicago.source= "photo/chicago/ch"+imageNumber+".jpg";
        mc_landscapes.source= "photo/landscapes/land"+imageNumber+".jpg";
        mc_goodvsevil.source= "photo/goodvsevil/ge"+imageNumber+".png";
        mc_animals.source= "design/animals/an"+imageNumber+".png";
        mc_icons.source= "design/icons/icon0"+imageNumber+".png";
        mc_objects.source= "design/objects/pc"+imageNumber+".png";
        mc_typography.source= "design/typography/type"+imageNumber+".png";
        checkNumber();
    back_btn .addEventListener(MouseEvent.CLICK, backImage);
    function backImage(evtObj:MouseEvent):void {
        imageNumber--;
        mc_engagement.source= "photo/engagement/en0"+imageNumber+".jpg";
        mc_amish.source= "photo/amish/Amish"+imageNumber+".jpg";
        mc_chicago.source= "photo/chicago/ch"+imageNumber+".jpg";
        mc_landscapes.source= "photo/landscapes/land"+imageNumber+".jpg";
        mc_goodvsevil.source= "photo/goodvsevil/ge"+imageNumber+".png";
        mc_animals.source= "design/animals/an"+imageNumber+".png";
        mc_icons.source= "design/icons/icon0"+imageNumber+".png";
        mc_objects.source= "design/objects/pc"+imageNumber+".png";
        mc_typography.source= "design/typography/type"+imageNumber+".png";
        checkNumber();

    I'm still a novice with Flash myself, but I have two comments.
    First, at this point, won't your buttons control all galleries at the same time? Which means, if I go to image 5 in one gallery, then move to another gallery, I'll start at image 5, because the actions are all connected.
    Second, you can definitely use the same buttons for multiple galleries. It seems to me that as long as you've assigned the buttons an instance name, these actions should already work to control all the galleries (see the note above). I guess I would need to understand a bit more about how your project is built.

  • How Many Times Can I Use The Same Serial Number For Adobe Creative Suite 4?

    I have design standard and was told I can use the same serial number on multiple computers. How many time can I use it? And say I install it on the maximum number of computers, but get a new computer, can I uninstall it on one of the old computers and use it on the new one? And can I use the programs on both computers simultaneously or do I have to use them one at a time?

    Fred Tech wrote:
    Broadly speaking, it depends on the type of license you have.
    Specifically, if you have a single license then officially, you should only install it once on one computer.
    Practically, (unless it has changed with CS4) you maybe able to install it on more then one computer, BUT can only run one instance of the software at a time. You can not run more then one instance of the software concurrently; i.e. you can't run Dreamweaver on Computer 1 and Photoshop on Computer 2. That would be two instances, and is not permitted.
    This is my understanding. I am happy to be corrected if I am wrong
    Fred
    Sorry Fred you are wrong.
    If you have a single license you can install it on as many computers as you like. you can only activate the suite on two computers at anyone time. Work and Home or as many of us do it Desktop and Laptop. You can not use the computers simultaneously. You only have 20 activation/deactivations so use them wisely. Student versions only have one activation. You can not break up the suite installs the suite is considered one application.

  • How do I use the same profile for two users on the same computer

    I use my laptop both at home and at work. And in each venue I use a different user log on. But I wish to have firefox use the same profile for each user log on. How can I get firefox to point to the same profile for each user?

    Note that only one user (Firefox instance) can use a profile folder at the time, so if you would switch the Windows user to another account then you would first have to close Firefox.
    * http://kb.mozillazine.org/Creating_a_new_Firefox_profile_on_Windows
    * http://kb.mozillazine.org/Shortcut_to_a_specific_profile
    * http://kb.mozillazine.org/Using_multiple_profiles_-_Firefox
    * http://kb.mozillazine.org/Bypassing_the_Profile_Manager

  • HT204053 My husband and I have separate apple IDs, how do we use the same iTunes account

    My husband and I have separate apple IDs , how do we use the same iTunes account

    You don't. Each ID is associated with a separate account. Each of you should maintain a separate user account on your computer so as to maintain separate iTunes Libraries. Do not sync your phone with your husbands account or Apple ID and vice-versa or your data will become inter-mixed or worse - deleted from the phone.
    Try to understand that iDevices are intended for use by one person with one Apple ID, one iTunes Library, and one iTunes account. They are not multi-user devices.

  • NW 7.3:  (A)SCS/SCS/ERS  - use the same IP

    Hi,
    evaluation tests with SAP NW 7.3 show that the instances of (A)SCS and ERS just using the same IP (in previous release ASCS and SCS have their own IP; depending on the releases ERS request an IP or not for installation procedure).
    In a single host environment the new behavour doesn't matter. If you operate in a virtualized environment (where each instance type can run at any host with its own IP at th same time) it will not work furthermore. You can't use the same IP on different hosts at the same time.
    So I have two questions
    1.) Is it possible to reorganize the installation according to the previous conditions used in older SAP NW releases
    2.) If answer of question 1) is 'yes', what does it mean if I use ACC to control/administer my SAP landscape
    3.) If answer of question 1) is 'yes', what does it mean for the support of such installations by SAP
    Kind regards
    Karlheinz

    Hi Karlheinz Heger 
    With ASCS (ms + enq)  SAP also introduced an ERS (enqueue replication server) to provide high availability for the enqueue server.
    ERS is a standalone component and it runs on another host and connects with the enqueue server. Once connected, the enqueue server sends lock table replication data to the replication server. The replication server maintains a shadow lock table with the replication data. The shadow lock table exists in the shared memory and is used to rebuild lock table for the failed enqueue server when it is restarted on the same host where the replication server is running. Thus, the host where the standalone enqueue server is running and the host where the replication server is running must be clustered so that failed enqueue server can be restarted on the host where the shadow lock table is maintained. Once the enqueue server rebuilds the lock table from the shadow lock table, the replication server is shutdown.
    So in nutshell you need to install ERS and ASCS on seprate host if you want real hig availability without failed transaction.
    If you have ERS and ASCS on same host it would not be HA.
    Hope this helps

  • Can I use the same Itunes registration with with a new Ipod touch

    I have purchased the latest Ipod Touch.
    Can I use the same regristration on Itunes  to sync the new Ipod touch?
    and
    can I use both the old and the new Ipod touch united for the same regristration??

    - If you mean another version of the iTunes program on your computer the answer is now.  You need the latest version of Itunes and your Win 7 can handle it.  BTW you can only have on instance of iTunes on a computer.
    - I you mean an iTunes account, the answer is no.  You can use one account for an umlimited number of iDevices.

Maybe you are looking for