CMR: referencing the referencing bean itself

Hello world,
I have a problem referencing a bean itself in one of its attributs. My problem
is that it should be possible to define courses which themselves have prerequisite
courses and courses qualifying for by visiting the prerequsite course.
The consequence is that a course references other courses.
I thought about the following part of a descriptor for defining CMR:
<!-- ************************* Course - Course ***************************** -->
<ejb-relation>
<ejb-relation-name>CourseLocal-CourseLocal</ejb-relation-name>
<ejb-relationship-role>
<ejb-relationship-role-name>CourseLocal-has-as-prerequisite-CourseLocal</ejb-relationship-role-name>
<multiplicity>Many</multiplicity>
<relationship-role-source>
<ejb-name>CourseEJB</ejb-name>
</relationship-role-source>
<cmr-field>
<cmr-field-name>prerequisiteCourse</cmr-field-name>
<cmr-field-type>java.util.Collection</cmr-field-type>
</cmr-field>
</ejb-relationship-role>
<ejb-relationship-role>
<ejb-relationship-role-name>CourseLocal-visit-qualifies-for-CourseLocal</ejb-relationship-role-name>
<multiplicity>Many</multiplicity>
<relationship-role-source>
<ejb-name>CourseEJB</ejb-name>
</relationship-role-source>
<cmr-field>
<cmr-field-name>courseQualifyingFor</cmr-field-name>
<cmr-field-type>java.util.Collection</cmr-field-type>
</cmr-field>
</ejb-relationship-role>
</ejb-relation>
and
<weblogic-rdbms-relation>
<relation-name>CourseLocal-CourseLocal</relation-name>
<table-name>course_course_link_KD</table-name>
<weblogic-relationship-role>
<relationship-role-name>CourseLocal-has-as-prerequisite-CourseLocal</relationship-role-name>
<column-map>
<foreign-key-column>prerequisiteCourseFK</foreign-key-column>
<key-column>coursePK</key-column>
</column-map>
</weblogic-relationship-role>
<weblogic-relationship-role>
<relationship-role-name>CourseLocal-visit-qualifies-for-CourseLocal</relationship-role-name>
<column-map>
<foreign-key-column>courseQualifyingForFK</foreign-key-column>
<key-column>coursePK</key-column>
</column-map>
</weblogic-relationship-role>
</weblogic-rdbms-relation>
Now testing this I received the following error message:
Illegal Reentrant call to JNDINameBean4 with primary key: 11
I have to add that I didn´t define the course-bean reentrant yet. My questions:
1.) Is it possible at all to define self-referencing CMRs
2.) If it possible: Does setting the bean reentrant solve the problem and how
many other problems do I get doing this.
Many regard
Klaus

With BEA WLS it is possible to define self-referencing CMR, in comparison the reference
implementation of SUN should support it with EJB 2.0 but does not realize that
correctly with the Deployment-Tool (V1.3.1).
The problem I had was that two bean instances tried to load the same data, what
I relly didn´t want.
So my problem is solved with BEA WLS, with SUN-RI the bug is submitted (4533191,
29.11.2001) but not yet fixed (if ever).
Klaus

Similar Messages

  • Referencing the script folder when launching via LNK

    I have been using ".\ blah blah" to reference files stored in the same folder as the script, but I ran into a situation where this actually referenced the user's home folder, not the script folder. I then found this code, which has worked well
    when launching the script directly, but when the script is launched via a shortcut it fails. 
    Is there a modification that can be done to this code, or another option, that will consistently identify the UNC path of the running script?
    Thanks,
    Gordon
    function Get-ScriptDirectory {
    $Invocation = (Get-Variable MyInvocation -Scope 1).Value
    if($Invocation.PSScriptRoot) {
    $Invocation.PSScriptRoot
    elseif($Invocation.MyCommand.Path) {
    Split-Path $Invocation.MyCommand.Path
    else {
    $Invocation.InvocationName.Substring(0,$Invocation.InvocationName.LastIndexOf("\"))

    Interesting.  So it's not even using MyCommand.Path; it's dropping down into that last case (which I assume was written to cover PowerShell 1.0, but I'm not certain.)
    Try adding this command to the function, for debugging purposes, right after the "$Invocation = ..." line:
    $Invocation |
    Format-Custom -Depth 3 -Property * -Force |
    Out-Host
    That should give you a bunch of information that you can copy and paste here, so we can figure out what's going on.
    Edit:  One other thing; is this Get-ScriptDirectory function in the ps1 script itself, or is it in a PSM1 module?

  • Jsp:include fails when referencing a struts bean:define bean

    When I request the jsp listed at the bottom, I get the following error:
              cannot resolve symbol
              symbol : variable pageTemplate
              The jsp works as is in both Tomcat and Resin.
              I know the pageTemplate bean gets defined by struts, because if I remove
              (1), I get the correct output of (2).
              Does WL precompile the pages differently than Tomcat/Resin?
              We know tiles can provide similar functionality, but for various reasons,
              this is the method that seems preferred.
              <%@ page contentType="text/html;charset=UTF-8" language="java" %>
              <%@ page import = "com.stabilia.site.*" %>
              <%@ page errorPage="/error.jsp" %>
              <%@ taglib uri="/WEB-INF/struts-bean.tld" prefix="bean" %>
              <%@ taglib uri="/WEB-INF/struts-html.tld" prefix="html" %>
              <%@ taglib uri="/WEB-INF/struts-logic.tld" prefix="logic" %>
              <%@ taglib uri="/WEB-INF/struts-tiles.tld" prefix="tiles" %>
                   <bean:define id="siteConfig" name="siteConfig" scope="session"
                        type="com.stabilia.site.SiteConfiguration"/>
                   <bean:define id="pageTemplate" name="siteConfig"
              property="currentPageTemplate"
                        type="com.stabilia.site.PageTemplate" scope="session"/>
                   (1)<jsp:include page="<%=pageTemplate.getTemplate()%>" />
                   (2)template:<bean:write name="pageTemplate" property="template"/>
              

    I know that in certain versions of WLS the Tag AT_END variables were not getting
              defined properly. Please contact support and ask for a patch referencing this
              with your current version.
              Sam
              Daren Desjardins wrote:
              > To be more specific, I found that I cannot use runtime expressions that
              > involve a bean defined by Struts. If the bean were declared in the
              > following way, it works.
              >
              > <%
              > SiteConfiguration siteconfig = (SiteConfiguration)
              > session.getAttribute(SiteConfiguration.SESSION_KEY);
              > PageTemplate pagetemplate = siteconfig.getCurrentPageTemplate();
              > %>
              > <jsp:include page="<%=pagetemplate.getTemplate()%>" flush="true"/>
              

  • View objects referencing the same entity

    The behaviour occurs in every version of jdeveloper ADF BC i have tried so far (10g, 11g).
    I have 2 updatable view objects referencing the same entity object. When i create a new record using the first view object and before commiting the data to the database i navigate to the second
    view object. Suprisingly the second view object is populated with the same data that is posted on the first view object. It seems like both view objects are referencing the same entity object instance.
    Is any way to overcome this strange behaviour.
    Thanks

    As Timo says think of the EO as a record cache. If you had 700 VOs all based on the same EO, it would be ideal to store the same record(s) 700 times in the midtier as it would consume vasts amount of memory. Thus the EO cache.
    If you do want to separate the VOs, you've 3 options:
    1) Use separate EOs for each VO (not ideal)
    2) Expose each VO under their own root level Application Module - a separate EO cache instance for each VO will be created at runtime - however you need to be careful between the VO/EO pairs, you don't update the same record, as you'll get record locks/contention
    3) If you're using task flows in 11g, use the Always Begin New Transaction option for each screen/fragment for each VO. This is the equivalent of 2 but from the task flow level - however again you need to be careful on record locks.
    CM.

  • How to find out the Referenced objects ?

    Hi all,
    I want to find out the referenced objects
    Example : Table Name is Customer
    I want to know what are the procedures,functions,packages used that customer table. Please provide that sql Query.
    Thanks and Regards

    If this is not what you want, please give us a test case with input and expected output:
    SQL>
    SQL> drop table cust;
    Table dropped.
    SQL> drop procedure proc1;
    Procedure dropped.
    SQL> drop procedure proc2;
    Procedure dropped.
    SQL> drop procedure proc3;
    Procedure dropped.
    SQL>
    SQL> create table cust(x int);
    Table created.
    SQL>
    SQL> create procedure proc1
      2  is
      3  begin
      4  update cust set x = x + 1;
      5  end;
      6  /
    Procedure created.
    SQL> show errors
    No errors.
    SQL>
    SQL> create procedure proc2
      2  is
      3  begin
      4  delete cust;
      5  end;
      6  /
    Procedure created.
    SQL> show errors
    No errors.
    SQL>
    SQL> create procedure proc3
      2  is
      3  begin
      4  insert into cust values(0);
      5  end;
      6  /
    Procedure created.
    SQL> show errors
    No errors.
    SQL>
    SQL> select name, type
      2  from all_dependencies
      3  where
      4  type ='PROCEDURE'
      5  and referenced_name = 'CUST'
      6  and referenced_type = 'TABLE';
    NAME                           TYPE                                            
    PROC1                          PROCEDURE                                       
    PROC2                          PROCEDURE                                       
    PROC3                          PROCEDURE                                       
    SQL> exit

  • IPhoto: After I've changed the file name/format in Finder iPhoto can't load/relink to the referenced file.

    After I've changed the file name/format in Finder iPhoto can't load/relink to the referenced file anymore. For some reasons I don't like to reimport the file.

    Hmm the advice has been not to use referenced libraries - you ignored and did it anyway and you find the advise not helpful
    Furthermore the advice is that if you choose to use a referenced library that you assure that the path never changes - you also choose to ignore that advice and do it anyway - and you blame the peopson trying to help you
    once again - you have one choice - change the file names back and put the files back in the exact same place - and again you are totally ignoring the advice and instead name calling and attacking the person giving you advice
    Maybe life would be easier if you followed advice rather than ignoring it and then complaining that things no longer work
    change the name back and you will be fine until the next problem you hit that is caused by choosing a referenced library
    Have a nice day
    LN

  • How can i copy and referencing the value of a sub-total of a category into another cell?

    How can i copy and referencing the value of a sub-total of a category into another cell?

    Cells in Category  rows 'exist' only when those categories are inserted using the Reorganize table. Those cells cannot be referenced from other cells.
    If you want a category summed, you will need to do that in a cell that is still visible when the table is not sorted into categorie using the Reorganize pane. The function to use is SUMIF. You can find information regarding SUMIF (and SUMIFS) in the iWork Formulas and Functions User Gude. The guide may be downloaded using the link in the Help menu in Numbers '09.
    Regards,
    Barry

  • Aperture: After changed the file name in Finder Aperture can't load the referenced file anymore

    After I've changed the file name/format in Finder Aperture can't load/relink to the referenced file anymore. For some reasons I don't like to reimport the file.

    As you told, the command "Locate Referenced File" doesn't work, if the filename doen't match exactly. And the filenames should keep their new names.
    "Locate Referenced File" will be able to reconnect one file at a time, if you direct Aperture to the matching file in the Loate Referenced File dialog, but it will not be able to recognise the other matching referenced files and to reconnect them all at once with the "Reconnect All" button.
    It will be a lot of work to reconnect the one by one.  Usually it is much easier to rename the original master files using Metadata > Batch change in Aperture than to try to do that in the Finder.

  • Ms sql - {"The referenced table must have a primary or candidate key. [ FK Name = ForeignKeyB_Details ]"}

    I have a txt file which has all the sqltext in it separated by semi colon .Then I try to run a query one by one like this-
                var conn = new SqlCeConnection(ConnectionString);
                conn.Open();
                var cmdArray = Regex.Split(sqlText, ";");
                var cmd = new SqlCeCommand(null, conn);
                foreach (var text in cmdArray)
                    cmd.CommandText = text;
                    if (!text.Equals(string.Empty))
                        cmd.ExecuteNonQuery();
                    else
                        break;
                conn.Close();
    I get the error {"The referenced table must have a primary or candidate key. [ FK Name = ForeignKeyB_Details  ]"}
    here is part of my txt file-
    CREATE TABLE A
           PrimaryId nvarchar(10) NOT NULL REFERENCES C(PrimaryId),
           UserId nvarchar(20) NOT NULL,
           FirstName nvarchar(30) NOT NULL,
           MiddleInitial nvarchar(1) NULL,
           LastName nvarchar(30) NOT NULL,
           MobileNumber nvarchar(20) NULL,
           PhoneNumber nvarchar(10) NOT NULL,
           PhoneExtension nvarchar(6) NULL,
           FaxNumber nvarchar(20) NULL,
           EmailAddress nvarchar(50) NOT NULL,
      CONSTRAINT PrimaryKeyA PRIMARY KEY(PrimaryId, UserId)
    CREATE TABLE B(
       MarketId int NOT NULL references E(MarketId),
       UserId nvarchar(20) NOT NULL,
       UserFirstName nvarchar(30) NOT NULL,
       UserMiddleInitial nvarchar(1) NOT NULL,
       UserLastName nvarchar(30) NOT NULL,
       PhoneNbr nvarchar(10) NOT NULL,
       Extension nvarchar(6) NOT NULL,
       FaxNbr nvarchar(20) NOT NULL,
       Email nvarchar(50) NOT NULL,
       ShortName nvarchar(10) NOT NULL,
    PublicIdFlag nvarchar(6) NOT NULL references D(publicId),
            CONSTRAINT PrimaryKeyB PRIMARY KEY( MarketId, UserId)
    ALTER TABLE B ADD CONSTRAINT ForeignKeyB_Details FOREIGN KEY(UserId, UserFirstName, UserMiddleInitial, UserLastName, PhoneNbr, Extension, FaxNbr, Email) REFERENCES A(UserId, FirstName, MiddleInitial, LastName, PhoneNumber, PhoneExtension, FaxNumber, EmailAddress);

    Hi,
    Foreign key columns are frequently used in join criteria when the data from related tables is combined in queries by matching the column or columns in the FOREIGN KEY constraint of one table with the primary or unique key column or columns in the other table.
    For more information about the foreign key constraint, please refer to this link:
    http://msdn.microsoft.com/en-us/library/ms175464.aspx
    Here is a similar thread for your reference:
    http://social.msdn.microsoft.com/Forums/sqlserver/en-US/5a71948b-dfb1-46a5-8688-ccab9317e959/error-message-the-referenced-table-must-have-a-primary-or-candidate-key-fk-name-fktblatblb-?forum=sqlce
    Thanks.
    Tracy Cai
    TechNet Community Support

  • Why is Java Deployment Toolkit (click-to-play) blocked, also the referenced bug is closed and there are no security issues known in Version 7 U51?

    I think it is important to block unsecure addons. But if you do so there should be an open bug assigened. The referenced bug for this add-on is allready resolved so I do not know why this plugin is disabled. https://bugzilla.mozilla.org/show_bug.cgi?id=636633
    I have the problem that I want to use Secure_Auth that is using the Java Deployment Kit in such a nasty way (via javascript) that firefox doesn't see that the deployment kit should be started. Therefore I will not be asked to allow this plugin always for this web site. Since there is no documentation available how to do this configuration in a config file I am stuck at the moment.
    I'm a liitle bit suprised that blocking all versions (even secure versions) is a way to get a good user experience.
    Regards
    Martin

    ''MG_DAU wrote:''
    The referenced bug for this add-on is allready resolved so I do not know why this plugin is disabled. https://bugzilla.mozilla.org/show_bug.cgi?id=636633
    That's a bug report in the Blocklisting component, meaning it's a request to add an add-on to the blocklist. The fact that it's marked as fixed means the add-on has been added to the blocklist.
    * https://addons.mozilla.org/firefox/blocked/p428
    * [[Add-ons that cause stability or security issues are put on a blocklist]]
    Given that there's no way to disable Click-to-Play for this plug-in (the only options are Ask to Activate or Never Activate), if Firefox doesn't trigger a Click-to-Play prompt, I see no way to use it apart from disabling the entire blocklist. This carries a considerable security risk, as no plug-ins will be blocked or set to Click-to-Play, including known malware. If you're sure you want to go through with it, set ''extensions.blocklist.enabled'' to '''false''' in [http://kb.mozillazine.org/About:config about:config].

  • P.R == Contract == Purchase Order referencing the P.R

    Hello all,
    I have the following issue:
    1. P.R is created with a valuation price in order to have the release strategy
    2. Contract is created referening the P.R (services)
    3. via transaction ME57 the Contract is assigned to the P.R
    4. When a P.O is created referencing the P.R the price adopted in the P.R is that of the original valuation of the P.R
    Is there any way to overcome this issue?
    Thank you for any help

    >
    Ioannis Salichos wrote:
    > Hello gents,
    >
    > mayne i should explain furhter:
    > 1. Create P.R
    > 2. Create P.O referncing the P.R
    > 3. Run ME57 and assign the Contract to the P.R
    > if the Requisition is for a valuated, quantity update material
    > 4. P.O referencing the P.R and the correct price is adopted.
    > the issue is when the same flow is i.e. for services...
    > Then it doesn twork.
    > The requestor creates a P.R and that would trigger in some cases the creation of a Contract.
    > I try to avoid the creation of a second P.R or force the buyer enter the P.R manually.
    >
    > Cheers
    FOLLOW THE STEP
    1. Create P.R
    2. Run ME57 and assign the Contract to the P.R
    if the Requisition is for a valuated, quantity update material
    3. Create P.O BY Batch job
    4. P.O referencing  as in the contract.

  • Sales order via EDI referencing the Quote

    Dear Experts,
    I have a situation where I think I tried various things without the success. 
    The detail scenarios are as below:
    1) I send the customer a quote. This quote contains multiple lines.
    2) customer sends me inbound PO(sales orders for me) referencing the quote.  The problem is that the customer sends just he quote number rather than explicitly stating the line numbers.
    3) I am using ORDERS02 idoc type and I am using E2EDK02_004 to reference the quote as well as the E2EDP02_004 at the item level to reference the quote line numbers.  Without the E2EDP02_004, standard function module (idoc_input_orders) copy the lines in the referenced quote and then adds more lines that are contained in the 850.
    Your expert advise or recommendation is greatly appreciated.
    Thanks,
    S

    Can you kindly let me know how you got this issue resolved?
    Thanks,
    Balaji

  • HTTP error: 401 Unauthorized. ICS:3001: The referenced certificate having been issued by 'CN=DEC' with serial :0x20140423094001 is.

    Dear Experts,
    Transaction code : ME23N
    while create a document by through a GOS (Generic Object Service), Iam facing a problem and it through a error message:
    HTTP error: 401 Unauthorized. ICS:3001: The referenced certificate having been issued by 'CN=DEC' with serial :0x20140423094001 is.
    Please giude me  on this issue.
    Thank & Regards,
    Mahendra.

    Hi Janos,
    by through a GOS under a GOS by using a  Store Business document to create a document in Transaction. Please find the below attached screenshots has i following to create a document in a Transaction. So , while creation a document in T-code am facing a error like:
    HTTP error: 401 Unauthorized. ICS:3001: The referenced certificate having been issued by 'CN=DEC' with serial :0x20140423094001 is.

  • How to realize the referenced in the BI, similar to EXCEL "vlookup" mode

    HI,experts:
    My  webi 4.0
    Data and  Logical following:
    DIM(dimnesion):
    one Query is
    [dimA]  [dimB] [dimC]  [dimD]
    New  add Query is
    [dimA]  [Class1]
    the two Query are Different  universe model .
    THE dimA  is the same data content.
    I want to achieve the effect of the following:
    [dimA]  [dimB] [dimC]  [dimD]   [Class1]
    Error occurred:   #DATASYNC   and    #CONTEXT (Screenshot)
    How to realize the referenced in the BI, similar to EXCEL "vlookup" mode?

    I get it.thanks
    The solution is set up  detail variable
    Screen Shot
    Regards
    wang

  • Windows Forms Designer will not load because the referenced component '***' cannot be found

    Using
    VS2013 with Windows 7 to implement VS2010 developed project, "Downloading stock prices in F#" results in the error: "The referenced component
    'Microsoft.VisualBasic.PowerPacks.Vs' could not be found."  After Downloading and installing PowerPacks V3.0, the error persists. 
    The line of code is: "Me.DataRepeater1
    = New Microsoft.VisualBasic.PowerPacks.DataRepeater"
    and the error on this line states Type "...PowerPacks.DataRepeater is not defined".
    Question: How can this error be corrected?
    Update: Problem solved??
    I believe I found the solution to my problem stated above. 
    I went into the properties for the 2010 application and updated the Visual Studio version number to version 12 for the path to the referenced Power Pack components. 
    The software apparently found the references as I no longer get errors for these references. 
    However, now I am having separate but similar problems with the FSharp.PowerPack reference(s). 
    I receive the error: "Could not locate the assembly 'FSharp.PowerPack, Version =1.9.9.9, Culture=neutral, PublicKeyToken=a19089b1c74d0809'". My investigations indicate that the latest FSharp.PowerPack version is 2.0.0.0. 
    One suggestion is to go into the registry and change the "version 2.0.0.0" to "version 1.9.9.9". 
    My remaining question:  Is changing the registry version number the best way to address this problem?  As a novice, it makes me nervous to mess with the registry so I would prefer another approach.

    Using
    VS2013 with Windows 7 to implement VS2010 developed project, "Downloading stock prices in F#" results in the error: "The referenced component
    'Microsoft.VisualBasic.PowerPacks.Vs' could not be found."  After Downloading and installing PowerPacks V3.0, the error persists. 
    The line of code is: "Me.DataRepeater1
    = New Microsoft.VisualBasic.PowerPacks.DataRepeater"
    and the error on this line states Type "...PowerPacks.DataRepeater is not defined".
    Question: How can this error be corrected?
    Update: Problem solved??
    I believe I found the solution to my problem stated above. 
    I went into the properties for the 2010 application and updated the Visual Studio version number to version 12 for the path to the referenced Power Pack components. 
    The software apparently found the references as I no longer get errors for these references. 
    However, now I am having separate but similar problems with the FSharp.PowerPack reference(s). 
    I receive the error: "Could not locate the assembly 'FSharp.PowerPack, Version =1.9.9.9, Culture=neutral, PublicKeyToken=a19089b1c74d0809'". My investigations indicate that the latest FSharp.PowerPack version is 2.0.0.0. 
    One suggestion is to go into the registry and change the "version 2.0.0.0" to "version 1.9.9.9". 
    My remaining question:  Is changing the registry version number the best way to address this problem?  As a novice, it makes me nervous to mess with the registry so I would prefer another approach.
    Hello,
    Since this issue is mainly related to FSharp.PowerPack which is a F# tool, and the following fourm is to discuss and ask questions about the F# programming language, IDE, libraries, samples, and tools.
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/home?forum=fsharpgeneral
    I would help you move this issue to that forum to get help.
    Regards,
    Carl
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for

  • VL10 A - Data type "LIKPVB" was found in a newer version than required

    hi Gurus! in transaction VL10A i get a short dump that states that the data type LIKPVB was reloaded and but in a newer version than required in program RVV50R10C. I checked the abap dictionary for the data type and it said that it was modified a mon

  • Getting "An error has occurred" on download of Mountain Lion, button has no label and doesn;t do anything when pushed

    The download of Mountain lion failed, when I resumed it, I got "An error as occurred" and the button label went blank.  when pushing the button, nothing happens.  The purchase item when to a new category in the Purchases page in the Mac App Store, it

  • DNG+JPEG?

    My camera, a Panasonic L1, always shoots RAW+JPEG when in RAW mode (no way to turn off JPEG). It turns out there is EXIF info in the JPEG not in the RAW, such as lens info, so I need both in Aperture for full metadata. I'd like to be able to convert

  • How to assign ROle to user

    Hello All,   I need to programmatically assign roles to user and want to give some authorization at runtime.. please suggest me which function module to use .. please help me asap thanks, jigs helpful answers wil lbe rewarded

  • Pse5.0 organizer

    Can Photoshop Elements be cofigured so that the organizer does not open automatically. I have looked through the program files and see no mention of the oranizer.I haven't tried doing a custom re-install. I am running a Zip 250 drive and have recentl