CMR-and C:\jdev9031

Hello forum is there a good tutorial how to use CMR in jdev ?
help please.

Hi,
Here is a tutorial on CMR - http://otn.oracle.com/sample_code/tutorials/fbs/cmr/toc.htm
This tutorial uses the Financial Brokerage Sample application to demonstrate the EJB2.0 features.
For more tutorials on EJB 2.0 refer to http://otn.oracle.com/sample_code/tutorials/fbs/fbstoc.htm
Hope this helps.
Sujatha.
Tutorials : http://otn.oracle.com/sample_code/tutorials/OTN_Tutorials.html
Samples : http://otn.oracle.com/sample_code/content.html

Similar Messages

  • CMR and Transaction Attribute

    I got two ReadOnly CMP entity beans with a 1:N relationship, and one session facade,
    all with the TX attribute of NotSupported. When I tried to get the CMR collection
    in the session bean, WebLogic 6.1 SP3 threw an EJBException saying the CMR collection
    could not be accessed outside a TX context. Only by changing the TX attribute
    of the SLSB to Required (left the CMP bean TX attribute unchanged) could I get
    the collection. What is the reason behind this behavior? I want the caching
    feature of the ReadOnly beans but do not want ot pay any price for transactions.
    Is this possible?

    I do one more test and found
    UPDATE exception raised when I have foreign key in table. If I use only plain fild evething is ok. If add to entity foreign key field container raise exception when it try to update record.

  • CMR and Local Interfaces

    I have a question on setting up CMR in an environment where I want to utilize local
    interfaces within a weblogic server instance. In the deployment descriptor, I have
    set up the home, remote, local-home, local, and ejb-class entries. I then want to
    define the relationships between two CMP entity beans. Here is where I run into
    problems.
    1) If I define the CMR field using the local interface, I get an error stating that
    the type defined by the bean for the field does not match that of the remote interface.
    2) If I define the CMR field using the remote interface, I get an error stating that
    the bean must use the local interface for the CMR if one exists.
    Seems kind of circular to me. What am I missing?

    If you want to be able to have mutiple children companies for a parent
    company and you want to be able to query for the parent company for a given
    comapnay then this is the XML I would do something like the following. In
    your xml you had the mutiplicities inverted and also the cmr field was
    either in the wrong place or misnamed (ie, if it had to be in the top block
    then it should have been "childCompanies" instead of "parentCompany").
    Assuming the bean name in the descriptor for the CompanyEJB is Company:
    <ejb-relation>
    <ejb-relation-name>Company-ParentCompany</ejb-relation-name>
    <ejb-relationship-role>
    <ejb-relationship-role-name>Company-Has-ChildCompanies</ejb-relationship-rol
    e-name>
    <multiplicity>one</multiplicity>
    <relationship-role-source>
    <ejb-name>Company</ejb-name>
    </relationship-role-source>
    </ejb-relationship-role>
    <ejb-relationship-role>
    <ejb-relationship-role-name>Company-Has-ParentCompany</ejb-relationship-role
    -name>
    <multiplicity>many</multiplicity>
    <relationship-role-source>
    <ejb-name>Company</ejb-name>
    </relationship-role-source>
    <cmr-field>
    <cmr-field-name>parentCompany</cmr-field-name>
    </cmr-field>
    </ejb-relationship-role>
    </ejb-relation>
    In the CompanyEJB you would have:
    public abstract CompanyLocal getParentCompany();
    public abstract void setParentCompany( CompanyLocal parent );
    -- Anand
    "Steve Ebersole" <[email protected]> wrote in message
    news:[email protected]...
    >
    The jar I am running through ejbc is attached (with source). The EJBobject naming
    conventions are as follows:
    ejb-class = CompanyEJB
    home = CompanyHome
    remote = Company
    local-home = CompanyLocalHome
    local = CompanyLocal
    The pertinent ejb-jar snippet:
    <ejb-relation>
    <ejb-relation-name>Company-ParentCompany</ejb-relation-name>
    <ejb-relationship-role>
    <ejb-relationship-role-name>Company-Has-ChildCompanies</ejb-relationship-rol
    e-name>
    <multiplicity>Many</multiplicity>
    <relationship-role-source>
    <ejb-name>Company</ejb-name>
    </relationship-role-source>
    <cmr-field>
    <cmr-field-name>parentCompany</cmr-field-name>
    </cmr-field>
    </ejb-relationship-role>
    <ejb-relationship-role>
    <ejb-relationship-role-name>Company-Has-ParentCompany</ejb-relationship-role
    -name>
    <multiplicity>One</multiplicity>
    <relationship-role-source>
    <ejb-name>Company</ejb-name>
    </relationship-role-source>
    </ejb-relationship-role>
    </ejb-relation>
    And the weblogic-cmp-rdbms-jar snippet:
    <weblogic-rdbms-relation>
    <relation-name>Company-ParentCompany</relation-name>
    <weblogic-relationship-role>
    <relationship-role-name>Company-Has-ParentCompany</relationship-role-name>
    </weblogic-relationship-role>
    <weblogic-relationship-role>
    <relationship-role-name>Company-Has-ChildCompanies</relationship-role-name>
    <column-map>
    <foreign-key-column>PRNT_COMP_ID</foreign-key-column>
    <key-column>COMP_ID</key-column>
    </column-map>
    </weblogic-relationship-role>
    </weblogic-rdbms-relation>
    In the CompanyEJB, these are the two scenarios I tried:
    1)
    public abstract Company getParentCompany();
    public abstract void setParentCompany( Company prnt );
    2)
    public abstract CompanyLocal getParentCompany();
    public abstract void setParentCompany( CompanyLocal prnt );
    The only way I have been able to get it to work so far is to use thesyntax in #1
    above and then to remove all references to the local interfaces in thedeployment
    descriptors.
    Thanks for all help

  • CMR and multiple databases

    Is it possible as when 2 entities are involved in a CMR relationship, one of the entities to take its data from one database and the other one from a different database ?
    Regards,
    Marius

    > So PEQ 200 and 300 access database 1, PEQ 250 accesses database 2, and PEQ 260 accesses database 3.
    >
    > I only want to know if this is possible and if so how would you set it up.  I do not want to get into any discussion on whether this is the best way to go or not.  Any pointers to OSS notes on the subject are more than welcome.
    Simple answer: No.
    Long answer:
    - Workprocesses don't know anything about "clients". A client is nothing more than an additional field in a table with the client number. So it's not possible to configure them to connect to a certain database using a "client number".
    - A client alone has nothing but application data. It has no dictionary (tables, views) and it has no repository (source code) that can be executed
    - A SAP system (ABAP) has cross client customizing that would need to be shared somehow, technically not possible since also here the workprocess (which is the lowest unit) does not know whether a table is client dependent or not.
    Maybe there is a way to come out of this dilemma - if you tell us, what you (business) requirement is.
    Markus

  • Same CMR and CMP field in relationship bean

    Hi,
         I'm trying to deploy a 1:N realtion, it all works well
    but the many part of relation when ever i try to update i get an
    error stating. A CMP cum CMR field should not have a setter method
    and it should be read only. Is there i'm doign anything wrong?
    operation:
    Bean A-- Bean B 1-N
    update foreign key of Bean B , throws exception stating there should not
    be setter.
    How to handle a CMP field as CMR.??
    Help appreciated,
    Thanks,
    Venki

    Table A
    prim key
    table B
    prim key
    Foreign Key
    A--- B is 1-- N
    when i try to create Table B using
    setForeignKey()method i get the following error.
    Error :
    javax.ejb.EJBException: When a cmp-field and a cmr-field (relationship) are mapp
    ed to the same column, the setXXX method for the cmp-field may not be called.
    T he cmp-field is read-only.
    "Venki" <[email protected]> wrote:
    >
    Deepak
    What if i use the same field for CMP and CMR?
    projectId CMP as well as CMR.
    I cannot have two methods right?
    Venki
    Deepak Vohra <[email protected]> wrote:
    In the bean class should be a get<Cmp-Field>() method and get<Cmr-Fields>()
    method.
    public abstract <Cmp-Field-Type> get<Cmp-Field>(){}
    public abstract java.util.Collection get<Cmr-Fields>(){}
    Venki Seshaadri wrote:
    Hi,
    I'm trying to deploy a 1:N realtion, it all works well
    but the many part of relation when ever i try to update i get an
    error stating. A CMP cum CMR field should not have a setter method
    and it should be read only. Is there i'm doign anything wrong?
    operation:
    Bean A-- Bean B 1-N
    update foreign key of Bean B , throws exception stating there shouldnot
    be setter.
    How to handle a CMP field as CMR.??
    Help appreciated,
    Thanks,
    Venki

  • Queston about CMR and corresponded database table.

    Hi:
    For example, If I have a EntityA with cmp field named "EntityA_ID" which is
    the primary key field, and have a EntityB with cmp field named "EntityB_ID" which
    is the primary key field. The relation of EntityA and EntityB is 1:1.
    But the container will create table EntityA_Table and EntityB_Table:
    CREATE TABLE EntityA_Table (ID varchar (50) PRIMARY KEY,_EntityA_EntityB
    varchar(50))
    CREATE TABLE EntityB_Table (ID varchar (50) PRIMARY KEY,_EntityB_EntityA
    varchar(50))
    But the column for relation is as same as the primary key column, the question
    is below:
    Q1: Does the cmp field and cmr field can not be the same database table column?
    If so, it will waste the disk space.
    Q2: which one is more common or more better?
    1)create database table first and create CMP based on table.
    2)create CMP first and create table from EJB descriptor thought EJB container
    when deploying.
    3)create CMP first and create table from EJB descriptor by manual.
    Regards!
    John Lee

    The relation of EntityA and EntityB is 1:1.
    But the container will create table EntityA_Table and EntityB_Table:
    CREATE TABLE EntityA_Table (ID varchar (50) PRIMARYKEY,_EntityA_EntityB
    varchar(50))
    CREATE TABLE EntityB_Table (ID varchar (50) PRIMARYKEY,_EntityB_EntityA
    varchar(50))
    for 1:1 relationships, only one table is required to contain the Foreign
    Key.
    But the column for relation is as same as the primary key column, thequestion
    is below:
    Q1: Does the cmp field and cmr field can not be the same database tablecolumn?
    If so, it will waste the disk space.The primary key cmp field column cannot be the same database column as the
    foreign key cmr field column because the primary key cannot change value
    once it is set whereas the foreign key may change according to how
    relationships are made and broken.
    Q2: which one is more common or more better?
    1)create database table first and create CMP based on table.
    2)create CMP first and create table from EJB descriptor thought EJBcontainer
    when deploying.
    3)create CMP first and create table from EJB descriptor by manual.
    At development time allowing the container to create the tables is
    convenient.
    It is not recommended to rely on this mechanism for production use.
    Generally,
    one wants much more control over the database tables in production than the
    simple things that the container does when it creates 'default' tables.
    -thorick

  • A cmr-field and a cmp-field on the bean are using the same name. The names

    Hi:
    I am using weblogic 8.1 and MyEclipse 5.1.1. I am deploying my ear application through MyEclipse 5.1.1 as an ear file.
    When I ran the following EJB QL:
    SELECT OBJECT(p) FROM Product p.category = ?1
    I get the following error:
    n relation Category-Product, a cmr-field and a cmp-field on the bean are using the same name. The names of cmr and cmp fields must be unique.
    It is basically complaining that I have a field
    <cmr-field>
                             <cmr-field-name>category</cmr-field-name>
                        </cmr-field>
    in my ejb-jar.xml and also the same category in the
    <cmp-field><field-name>category</field-name></cmp-field>
    field. The problem is that if I changed the value of the cmr-field, I have to add a get and set in my productLocal.java and when you do that you have to do the same in the ejb-jar.xml.
    Here is my ejb-jar.xml:
    <?xml version="1.0"?>
    <!DOCTYPE ejb-jar PUBLIC
    "-//Sun Microsystems, Inc.//DTD Enterprise JavaBeans 2.0//EN"
    "http://java.sun.com/dtd/ejb-jar_2_0.dtd">
    <ejb-jar>
    <enterprise-beans>
    <entity>
    <ejb-name>CategoryEJB</ejb-name>
    <local-home>com.CategoryHomeLocal</local-home>
    <local>com.CategoryLocal</local>
    <ejb-class>com.CategoryBean</ejb-class>
    <persistence-type>Container</persistence-type>
    <prim-key-class>java.lang.Integer</prim-key-class>
    <reentrant>False</reentrant>
    <cmp-version>2.x</cmp-version>
    <abstract-schema-name>Category</abstract-schema-name>
         <cmp-field><field-name>categoryId</field-name></cmp-field>
    <cmp-field><field-name>categoryName</field-name></cmp-field>
    <cmp-field><field-name>picture</field-name></cmp-field>
    <cmp-field><field-name>pictureWidth</field-name></cmp-field>
    <cmp-field><field-name>pictureHeight</field-name></cmp-field>
    <cmp-field><field-name>labelOn</field-name></cmp-field>
         <cmp-field><field-name>labelOff</field-name></cmp-field>
         <cmp-field><field-name>button</field-name></cmp-field>
    <primkey-field>categoryId</primkey-field>
    <security-identity><use-caller-identity/></security-identity>
              <query>
                   <query-method>
                        <method-name>findCategory</method-name>
                        <method-params></method-params>
                   </query-method>
                   <ejb-ql>
                        SELECT OBJECT(c) FROM Category c
                   </ejb-ql>
              </query>
         </entity>
         <entity>
    <ejb-name>ProductEJB</ejb-name>
    <local-home>com.ProductHomeLocal</local-home>
    <local>com.ProductLocal</local>
    <ejb-class>com.ProductBean</ejb-class>
    <persistence-type>Container</persistence-type>
    <prim-key-class>java.lang.Integer</prim-key-class>
    <reentrant>False</reentrant>
    <cmp-version>2.x</cmp-version>
    <abstract-schema-name>Product</abstract-schema-name>
         <cmp-field><field-name>productId</field-name></cmp-field>
    <cmp-field><field-name>brandName</field-name></cmp-field>
    <cmp-field><field-name>productDescription</field-name></cmp-field>
    <cmp-field><field-name>purchasePrice</field-name></cmp-field>
    <cmp-field><field-name>category</field-name></cmp-field>
    <primkey-field>productId</primkey-field>
    <security-identity><use-caller-identity/></security-identity>
              <query>
                   <query-method>
                        <method-name>findProduct</method-name>
                        <method-params>
                        <method-param>com.CategoryLocal</method-param>
                        </method-params>
                   </query-method>
                   <ejb-ql>
                        SELECT OBJECT(p) FROM Product p.category = ?1
                   </ejb-ql>
              </query>
         </entity>
    </enterprise-beans>
    <relationships>
                   <ejb-relation>
                   <ejb-relation-name>Category-Product</ejb-relation-name>
                   <ejb-relationship-role>
                        <ejb-relationship-role-name>
                             Category-has-many-Product-numbers
                        </ejb-relationship-role-name>
                        <multiplicity>one</multiplicity>
                        <relationship-role-source>
                             <ejb-name>CategoryEJB</ejb-name>
                        </relationship-role-source>
                        <cmr-field>
                             <cmr-field-name>productNumbers</cmr-field-name>
                             <cmr-field-type>java.util.Collection</cmr-field-type>
                        </cmr-field>
                   </ejb-relationship-role>
                   <ejb-relationship-role>
                        <ejb-relationship-role-name>
                             Product-belongs-to-Category
                        </ejb-relationship-role-name>
                        <multiplicity>many</multiplicity>
                        <cascade-delete/>
                        <relationship-role-source>
                             <ejb-name>ProductEJB</ejb-name>
                        </relationship-role-source>
                        <cmr-field>
                             <cmr-field-name>category</cmr-field-name>
                        </cmr-field>
                   </ejb-relationship-role>
              </ejb-relation>
    </relationships>
    <assembly-descriptor>
    <security-role>
    <role-name>Employees</role-name>
    </security-role>
    <method-permission>
    <role-name>Employees</role-name>
    <method>
    <ejb-name>CategoryEJB</ejb-name>
    <method-name>*</method-name>
    </method>
    </method-permission>
    <container-transaction>
    <method>
    <ejb-name>CategoryEJB</ejb-name>
    <method-name>*</method-name>
    </method>
    <method>
    <ejb-name>ProductEJB</ejb-name>
    <method-name>*</method-name>
    </method>
    <trans-attribute>Required</trans-attribute>
    </container-transaction>
    </assembly-descriptor>
    </ejb-jar>     
    Here is my weblogic-cmp-rdbms-jar.xml:
    <!DOCTYPE weblogic-rdbms-jar PUBLIC
    '-//BEA Systems, Inc.//DTD WebLogic 8.1.0 EJB RDBMS Persistence//EN'
    'http://www.bea.com/servers/wls810/dtd/weblogic-rdbms20-persistence-810.dtd'>
    <weblogic-rdbms-jar>
    <weblogic-rdbms-bean>
         <ejb-name>CategoryEJB</ejb-name>
    <data-source-name>ShoeStore</data-source-name>
         <table-map>
              <table-name>category</table-name>
              <field-map>
              <cmp-field>categoryId</cmp-field>
              <dbms-column>categoryID</dbms-column>
              </field-map>
              <field-map>
              <cmp-field>categoryName</cmp-field>
              <dbms-column>categoryName</dbms-column>
              </field-map>
              <field-map>
              <cmp-field>picture</cmp-field>
              <dbms-column>Picture</dbms-column>
              </field-map>
              <field-map>
              <cmp-field>pictureWidth</cmp-field>
              <dbms-column>PictureWidth</dbms-column>
              </field-map>
              <field-map>
              <cmp-field>pictureHeight</cmp-field>
              <dbms-column>PictureHeight</dbms-column>
              </field-map>
              <field-map>
              <cmp-field>labelOn</cmp-field>
              <dbms-column>LabelOn</dbms-column>
              </field-map>
              <field-map>
              <cmp-field>labelOff</cmp-field>
              <dbms-column>LabelOff</dbms-column>
              </field-map>
              <field-map>
              <cmp-field>button</cmp-field>
              <dbms-column>Button</dbms-column>
              </field-map>
    </table-map>
    <automatic-key-generation>
    <generator-type>SQL_SERVER</generator-type>
    </automatic-key-generation>
    </weblogic-rdbms-bean>
    <weblogic-rdbms-bean>
         <ejb-name>ProductEJB</ejb-name>
    <data-source-name>ShoeStore</data-source-name>
         <table-map>
              <table-name>PRODUCT</table-name>
              <field-map>
              <cmp-field>productId</cmp-field>
              <dbms-column>productId</dbms-column>
              </field-map>
              <field-map>
              <cmp-field>brandName</cmp-field>
              <dbms-column>brandName</dbms-column>
              </field-map>
              <field-map>
              <cmp-field>productDescription</cmp-field>
              <dbms-column>productDescription</dbms-column>
              </field-map>
              <field-map>
              <cmp-field>purchasePrice</cmp-field>
              <dbms-column>purchasePrice</dbms-column>
              </field-map>
              <field-map>
              <cmp-field>category</cmp-field>
              <dbms-column>categoryId</dbms-column>
              </field-map>
    </table-map>
         <!-- Automatically generate the value of ID in the database on inserts using sequence table -->
    <automatic-key-generation>
    <generator-type>SQL_SERVER</generator-type>
    </automatic-key-generation>
    </weblogic-rdbms-bean>
    <weblogic-rdbms-relation>
         <relation-name>Category-Product</relation-name>
    <weblogic-relationship-role>
    <relationship-role-name>Product-belongs-to-Category</relationship-role-name>
              <relationship-role-map>
    <column-map>
    <foreign-key-column>categoryId</foreign-key-column>
    <key-column>categoryID</key-column>
    </column-map>
              </relationship-role-map>
    </weblogic-relationship-role>
    </weblogic-rdbms-relation>
    </weblogic-rdbms-jar>
    Here is my productLocal.java:
    package com;
    import javax.ejb.CreateException;
    import javax.naming.NamingException;
    import java.util.Date;
    import java.util.Vector;
    import java.util.Collection;
    public interface ProductLocal extends javax.ejb.EJBLocalObject
         public Integer getProductId();
         public void setProductId(Integer productId);
         public String getBrandName();
         public void setBrandName(String brandName);
         public String getProductDescription();
         public void setProductDescription(String productDescription);
         public Double getPurchasePrice();
         public void setPurchasePrice(Double purchasePrice);
    public CategoryLocal getCategory();
         public void setCategory(CategoryLocal category);
    Here is my ProductBean.java:
    package com;
    import javax.naming.InitialContext;
    import javax.ejb.EntityContext;
    import javax.ejb.CreateException;
    import javax.naming.NamingException;
    import java.util.Date;
    import java.util.Collection;
    import java.util.Iterator;
    import java.util.Vector;
    import java.lang.Integer;
    public abstract class ProductBean implements javax.ejb.EntityBean
         public Integer ejbCreate(Integer id)
              this.setProductId(id);
              return null;
         public void ejbPostCreate(Integer id)
         //public abstract Integer getCategoryId();
    //     public abstract void setCategoryId(Integer categoryId);
         public abstract CategoryLocal getCategory();
         public abstract void setCategory(CategoryLocal category);
         public abstract Integer getProductId();
         public abstract void setProductId(Integer productId);
         public abstract String getBrandName();
         public abstract void setBrandName(String brandName);
         public abstract String getProductDescription();
         public abstract void setProductDescription(String productDescription);
         public abstract Double getPurchasePrice();
         public abstract void setPurchasePrice(Double purchasePrice);
         public void setEntityContext(EntityContext ec)
              System.out.println("ProductBean setEntityContext");
         public void unsetEntityContext()
              System.out.println("ProductBean unsetEntityContext");
         public void ejbLoad()
              System.out.println("ProductBean ejbLoad");
         public void ejbStore()
              System.out.println("ProductBean ejbStore");
         public void ejbActivate()
              System.out.println("ProductBean ejbActivate");
         public void ejbPassivate()
              System.out.println("ProductBean ejbPassivate");
         public void ejbRemove()
              System.out.println("ProductBean ejbRemove");
    What do I needed to do to fix this problem.
    Any hint or help would be greatly appreciated!!!
    Yours,
    Frustrated

    cmr field which is "category" in ur mapping , u can't use as cmp field in abstract schema mapping. just remove category from cmp field . and every thing is fine

  • Many-to-Many CMR

    hi all,
    i defined two entity beans, Quiz and Question, with many-to-many cmr and
    a table named Quiz_questions_Question_quizesTable is created in the database after deployment process. the formed table columns consist of primary key of Quiz and primary key of Question, as expected. what i want to do is adding one more column to this table that shows the sequence number of the related question in the related quiz. is it possible? and how? or what should i do?
    thanks in advance..

    "what i want to do is adding one more column to this table that shows the sequence number of the related question in the related quiz."
    Makes sense, but then the association table is no longer just an association table.
    Perhaps a way to get you in the right frame of mind is, "how would you model this with just objects?"
    Basically a CMR just represents an association between two objects. You would see in your revised object model that you do not have a simple n-to-n association between a Quiz objects and a Question objects.[Quiz](0..n)---->(1..n)[Question]The above (bastardized UML) model does not represent the enumeration of Question objects within the scope of a single Quiz object.
    Perhaps the following is more accurate:[Quiz](1)---->(1..n)[QuizQuestion](0..n)---->(1)[Question]or                     [Question]
                              A
                              |
                              |
    [Quiz](1)---->(1..n)[QuizQuestion]It is only after you have your object model that you should worry about the entity bean stuff.

  • OC4J EJBQL and EJB 2.0 features

    Hello Debu Panda and All
    I've got all howtos and I mangaged to get some parts of OC4J [Oracle9iAS (9.0.3.0.0) Containers for J2EE (build 020323.1689)] working.
    There are still some issues that are stalling our development. Could you please comment on them, maybe providing an estimate of when they will be solved/implemented?
    First of all, a little background. Our application uses many Java Swing application clients that connect to the EAR application in the container.
    The ear application has the following structure:
    All database access (Oracle 8i, located in its own server) is done exclusively by means of CMP entity beans. A entity bean may access other entity beans. There are workflow session beans (stateful and stateless) that access the entity beans. All clients see only the workflow session beans (session beans fagade).
    Our applicatoin is complex, having more than 80 session beans and more than 25 entity beans (not counting entity beans that exist only to represent relationships among entity beans).
    There goes the questions:
    1) It seems that entity beans cannot currently be referenced by remote interfaces. We couldn't deploy our application using it. Since we could use only local interfaces fot entity beans, thats what is been done now.
    2) There is no CMR supported. Is this true?
    3) EJBQL seems to be very limited. In the howto examples there are EJBQL statements that compare two numbers. However, when we tried to use String comparisons, it didn't work. Here is the statement:
    "SELECT DISTINCT OBJECT(p) FROM Person p WHERE p.name = ?1"
    If I compile, package and deploy the ear applicatin with the above EJBQL statement, OC4J generates an exception when executing the finder method. The exception is:
    "java.rmi.NoSuchObjectException: Session has timed out
    at com.evermind.server.ejb.StatefulSessionEJBObject.throwPassivisat
    ception(StatefulSessionEJBObject.java:188)
    at Cad023Remote_StatefulSessionBeanWrapper0.obterPessoasPorParteNom
    023Remote_StatefulSessionBeanWrapper0.java:754)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:8
    at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)"
    If I remove the where clause, the expection is gone. However, I get all records. ;-)
    4) It seems that all EJBQL clauses must be capitalized. Is this true?
    FINALY)
    Is there a newer OC4J build that could use to get the development going? Do you know where there will be one? Is there any way of contacting the OC4J development team to report bugs?
    If you would like, we could discuss it in private e-mail (please use my private mail [email protected]).
    Thanks for your attention,
    Luis Fernando Soeiro
    Hi !! OC4J 9.0.3 developer's preview has most features of EJB 2.0. We are working on updating on our docs and samples for EJB 2.0
    Please look at the following URL that has some How Tos on EJB 2.0 features such Local Interfacea, EJB QL, etc : http://otn.oracle.com/tech/java/oc4j/htdocs/oc4j-how-to.html#ejb
    regards
    Debu Panda
    Oracle --------------------------
    Luis Soeiro <mailto:[email protected]> <mailto:[email protected]>Type : Question Date : Apr 11, 2002 15:15 PT Hello
    Some colleagues and I are trying to port a large project from JBOSS to OC4J. We used JBOSS 3.0 (beta) in order to evaluate EJB2.0 features and see if we could use it. We already have OC4J in production, but only as a JSP/Servlet container. The next step would be to deploy our EJB application to OC4J.
    We have read the material and it is written that OC4J (developers preview) is EJB 2.0 compliant. However, the specific documentation and the examples don't show how to specify OC4J specifc XML files. We absolutely need CMR and Local Interfaces, because we don't have the time required to downgrade our JBoss EJB2.0 application to the EJB 1.1 specification. We have over 80 Session Beans and over 20 Entity Beans.
    Is there anybody there that can confirm that OC4J developer's preview is really EJB2.0 compliant? If so, could you send me some pointers to information about OC4J container specifc deployment descriptors? The docs listed at the web site don't have EJB2.0 features listed, nor does the Oracle samples.
    Thanks for your attention,
    desperately,
    Luis Fernando Soeiro

    HI,
    I worked out CMR and EJB-QL with single bean.
    Using CMR, it is possible to get one bean reference through other bean, but
    When I tried EJB-QL with bean to bean navigation then I run into problem.

  • Shipping point and storage location determination

    for one of my delivery type i had defined shipping point determination as per following.
    define shipping conditions
    define loading group
    assign shipping points: with combination of shipping conditionsloading groupplantprop shippping pointmanual shiping point.
    i also checked the cmr and mmr both are correct.still system is not proposing shipping point and storage locatgion in my obd

    Hi Charan
    Shipping conditions is taken from sold to party
    Pls check whether you are using a different SP and SH
    Check in these t codes
    In OVL2 are you seeing the shipping pt determination for your combination?
    In OVL3 are you seeing the storage location determination for your combination?
    If yes then shipping pt will be definately picked up in sales order
    Storage location will be definately picked up in the delivery if you have assigned the rule MALA in OVLK
    Have you assigned your delivering plant to your shipping pt in enterprise structure assignment?
    This also check
    Refresh the whole order and try again
    If need be log out of SAP and relog and see provided you have youR OVL2 and OVL3 correct?
    Note If shipping conditions are assigned to your order type in VOV8 then that will have priority over the shipping conditions of SP
    So for that combination you should maintain shipping pt in OVL2
    Regards
    Raja

  • CMR Bill of $685.92 ?????

    This is my first post and I would greatly appreciate some assistance.or advice with CMR Claims, the billing agent for Verizon repairs. 
    I had a gardener break my FIOS line while planting on April 5, 2014.  I called the Verizon Technical Support line and explained the situation and they told me that because the break happened outside the house "I WOULD NOT BE CHARGED FOR THE REPAIR".  Verizon showed up and ran a new line, then a few days later they came out to bury that line, and at no time did either technician mention I would be charged.
    Today I received a bill in the mail for $685.92 on Verizon stationary with a phone number to CMR Claims out of Oklahoma City for "Verizon cost to repair".  I called CMR and there are no customer service people, only collections people.  They didn't care about me or my conversations with Verizon Technical Support, only about collecting the money.  {edited for privacy} offered a 15% discount on the $685.92, but only if I paid immediately over the phone which leads me to believe that she is on commission.  When I asked to speak with a CMR supervisor Marzette told me that if I went that route or if I tried to contact their legal department then I would have to pay the full amount.
    My next call was to Verizon Customer Service who is powerless to help because they are notthe ones billing for the repair.  My contract is with Verizon, and I called in for the repair into Verizon who told me I would not be charged, so why are they handing me off to this 3rd party who offers no resolution?  Take a look at CMR's website and you will see that they pride themselves on successful collections. 
    Thanks in advance for some advice.
    {edited for privacy}

    Your issue has been escalated to a Verizon agent. Before the agent can begin assisting you, they will need to collect further information from you.Please go to your profile page for the forum, and look in the middle, right at the top where you will find an area titled "My Support Cases". You can reach your profile page by clicking on your name beside your post, or at the top left of this page underneath the title of the board.
    Under “My Support Cases” you will find a link to the private board where you and the agent may exchange information. This should be checked on a frequent basis as the agent may be waiting for information from you before they can proceed with any actions. To ensure you know when they have responded to you, at the top of your support case there is a drop down menu for support case options. Open that and choose "subscribe".
    Please keep all correspondence regarding your issue in the private support portal.

  • Bill from CMR for new drop wire

    Hello,
    I recently received a bill in the mail from CMR claims for nearly $300 for a new drop line. I called 811 and had all lines marked prior to digging a posthole, however the fios line was not marked and unfortunately the line was cut about 8 inches into the soil. The technician initially came out and ran a temporary line to the house and said he didn't know why the line wasn't marked. They eventually came out a few days later and installed a proper line in the orange conduit. I called 1 800 verizon about the bill and to inform them that I called 811 and they have a record of that on file, however verizon had no idea what bill I was talking about and told me to disregard the bill and throw it away as it might be a scam. The billing department at Verizon noted that on my file. I called CMR and they told me I have to pay and their records don't say anything about 811 being called and if I don't pay that they will file a civil suit against me! Why on God's green earth would verizon use a third party like this? Is this bill legitimate or is it a scam? Please provide guidance on how to proceed. Thank you.

    Hi Scurtis2,
    Your issue has been escalated to a Verizon agent. Before the agent can begin assisting you, they will need to collect further information from you. Please go to your profile page for the forum and look at the top of the middle column where you will find an area titled "My Support Cases". You can reach your profile page by clicking on your name beside your post, or at the top left of this page underneath the title of the board.
    Under "My Support Cases" you will find a link to the private board where you and the agent may exchange information. This should be checked on a frequent basis, as the agent may be waiting for information from you before they can proceed with any actions. To ensure you know when they have responded to you, at the top of your support case there is a drop down menu for support case options. Open that and choose "subscribe". Please keep all correspondence regarding your issue in the private support portal.

  • CMR SIP alias via Productvity tools

    Recently added CMR and running into an issue with SIP Alias for video endpoints.  When scheduled via the Webex portal, the SIP alias is correct ([email protected]).  However when we schedule using Productivity Tools or via Jabber, it schedules the meeting fine but then assigns the video alias differently.  Rather than users firstname.lastname, it assigns the meeting number as the video alias.  So now its [email protected]  I need to figure out how to create a consistent meeting invite.

    Hi,
    So your current situation is that you are using AnyConnect with Split-tunneling? So you can access the LAN through VPN and Internet through the users local Internet connection?
    I wonder if the problem with Full-Tunnel + Internet traffic is due to problem with NATing the traffic from VPN Client pool to the "outside" interface IP?
    I think that NAT could be done by the following configuration
    object network VPN-POOL
    subnet 192.168.0.200 255.255.255.248
    nat (outside,outside) after-auto source dynamic VPN-POOL interface
    EDIT: The "after-auto" should take the rule at the bottom of the NAT rules, but I'm still thinking should it interfere with the configurations even if it didnt have the parameter.
    I've only done this in software 8.2 and below, where it was
    global (outside) 1 x.x.x.x
    nat (inside) 1 10.10.10.0 255.255.255.0
    nat (outside) 1 192.168.0.200 255.255.255.248
    But as I said I havent done this with the new software. I can probably test this tomorrow at work though.
    - Jouni
    EDIT2:
    I'm not 100% sure but is the following NAT statement even needed at the current configuration?
    nat (inside,outside) source static any any destination static NETWORK_OBJ_192.168.0.200_29 NETWORK_OBJ_192.168.0.200_29
    EDIT3:
    I also usually use a totally different network for the VPN-pool. Your current LAN seems to be 192.168.0.0/24 and the VPN pool is 192.168.0.200/29. Maybe the top NAT statements are causing problems with the VPN Client Internet traffic.
    What I would try to do is change the VPN Client pool to some different network, do the NAT0 between LAN and POOL like you have in the current configuration (just with new VPN Pool) and use the PAT configuration mentioned earlier. Leave out the NAT statement in the "EDIT2" in this post.
    Sorry this is alot of guessing from my part before I get to test it myself with a lab ASA.

  • Help me with a simple CMR - please!!

    Hi!
    Please Im pretty new to CMR and appreciate if you could help me answer a simple question.
    Database model:
    WriterTbl
    ID___ Name
    1____RodJohnson
    2____PankajKumar
    BookTbl
    FK___Name
    1____J2EE-DesignAndDevelopment
    1____ProfessionalJSP
    2____J2EESecurity
    Question:
    I ve two CMP entities: WriterBean and BookBean
    I ve set the relations between Writer and Books, and it works as far as a writer only has one book.
    That because I set the FK also as a PK to the BookBean. And when I try to create next book for a writer it fails with duplicate-exception, logicaly.
    Can I solve this without any need of specifing a primary key for books at all?
    How is CMP handling no-pk entity and is relations working without any pk?
    Do EJB vendors manage no pk ejbs? what about ejb restrictions.
    I ve read that there must be a primary key, but not necessery a database field - HOW? could you please explain!
    Please this is very urgent and I Thank you very much!!

    Hi!
    Please Im pretty new to CMR and appreciate if you
    could help me answer a simple question.
    Database model:
    WriterTbl
    ID___ Name
    1____RodJohnson
    2____PankajKumar
    BookTbl
    FK___Name
    1____J2EE-DesignAndDevelopment
    1____ProfessionalJSP
    2____J2EESecurity
    Question:
    I ve two CMP entities: WriterBean and BookBean
    I ve set the relations between Writer and Books, and
    it works as far as a writer only has one book.
    That because I set the FK also as a PK to the
    BookBean. And when I try to create next book for a
    writer it fails with duplicate-exception, logicaly.
    Can I solve this without any need of specifing a
    primary key for books at all?I dont see how. In your AS you would have had to specify either a primary key or primary class or unknown Object as primary key.
    How is CMP handling no-pk entity and is relations
    working without any pk?Using s1as l have found out that l if you do not specify a primary key on creation of entity bean, the ejbCreate returns null as the primary key which causes an EJBException.
    Why? Cos I think a primary key has to be returned at the same time as the handle to the entity bean is stored in the Context. Why it would not insert the data first then request a primary key l dont know. I must say that this happens when you try to use autoincrement in the primary key column.
    Do EJB vendors manage no pk ejbs? what about ejb
    restrictions.
    Reading the specification literature gives the impression that they do, but practice is another thing entirely.
    I ve read that there must be a primary key, but not
    necessery a database field - HOW? could you please
    explain!
    That the theory. When you find the answer to HOW(?), please let us know.
    Derrick
    Please this is very urgent and I Thank you very much!!

  • Oc4j and EJB2.0: not really?

    Hello
    Some colleagues and I are trying to port a large project from JBOSS to OC4J. We used JBOSS 3.0 (beta) in order to evaluate EJB2.0 features and see if we could use it. We already have OC4J in production, but only as a JSP/Servlet container. The next step would be to deploy our EJB application to OC4J.
    We have read the material and it is written that OC4J (developers preview) is EJB 2.0 compliant. However, the specific documentation and the examples don't show how to specify OC4J specifc XML files. We absolutely need CMR and Local Interfaces, because we don't have the time required to downgrade our JBoss EJB2.0 application to the EJB 1.1 specification. We have over 80 Session Beans and over 20 Entity Beans.
    Is there anybody there that can confirm that OC4J developer's preview is really EJB2.0 compliant? If so, could you send me some pointers to information about OC4J container specifc deployment descriptors? The docs listed at the web site don't have EJB2.0 features listed, nor does the Oracle samples.
    Thanks for your attention,
    desperately,
    Luis Fernando Soeiro

    Hello Debu
    I've got alll howtos and I mangaged to get some parts of OC4J [Oracle9iAS (9.0.3.0.0) Containers for J2EE (build 020323.1689)] working.
    There are still some issues that are stalling our development. Could you please comment on them, maybe providing an estimate of when they will be solved/implemented?
    First of all, a little background. Our application uses many Java Swing application clients that connect to the EAR application in the container.
    The ear application has the following structure:
    All database access (Oracle 8i, located in its own server) is done exclusively by means of CMP entity beans. A entity bean may access other entity beans. There are workflow session beans (stateful and stateless) that access the entity beans. All clients see only the workflow session beans (session beans fagade).
    Our applicatoin is complex, having more than 80 session beans and more than 25 entity beans (not counting entity beans that exist only to represent relationships among entity beans).
    There goes the questions:
    1) It seems that entity beans cannot currently be referenced by remote interfaces. We couldn't deploy our application using it. Since we could use only local interfaces fot entity beans, thats what is been done now.
    2) There is no CMR supported. Is this true?
    3) EJBQL seems to be very limited. In the howto examples there are EJBQL statements that compare two numbers. However, when we tried to use String comparisons, it didn't work. Here is the statement:
    "SELECT DISTINCT OBJECT(p) FROM Person p WHERE p.name = ?1"
    If I compile, package and deploy the ear applicatin with the above EJBQL statement, OC4J generates an exception when executing the finder method. The exception is:
    "java.rmi.NoSuchObjectException: Session has timed out
    at com.evermind.server.ejb.StatefulSessionEJBObject.throwPassivisat
    ception(StatefulSessionEJBObject.java:188)
    at Cad023Remote_StatefulSessionBeanWrapper0.obterPessoasPorParteNom
    023Remote_StatefulSessionBeanWrapper0.java:754)
    at java.lang.reflect.Method.invoke(Native Method)
    at com.evermind.server.rmi.RMICallHandler.run(RMICallHandler.java:8
    at com.evermind.util.ThreadPoolThread.run(ThreadPoolThread.java:64)"
    If I remove the where clause, the expection is gone. However, I get all records. ;-)
    4) It seems that all EJBQL clauses must be capitalized. Is this true?
    FINALY)
    Is there a newer OC4J build that could use to get the development going? Do you know where there will be one? Is there any way of contacting the OC4J development team to report bugs?
    If you would like, we could discuss it in private e-mail (please use my private mail [email protected]).
    Thanks for your attention,
    Luis Fernando Soeiro
    Hi !! OC4J 9.0.3 developer's preview has most features of EJB 2.0. We are working on updating on our docs and samples for EJB 2.0
    Please look at the following URL that has some How Tos on EJB 2.0 features such Local Interfacea, EJB QL, etc : http://otn.oracle.com/tech/java/oc4j/htdocs/oc4j-how-to.html#ejb
    regards
    Debu Panda
    Oracle

Maybe you are looking for

  • MM invoice.

    Pricing procedure is as below: Z0PL - List price - 100 Z0SR - Recylce fee - 16 Net value -116 The Purchaser order created against thirdpary sales order . I.e. it is having accounting assignment details and Items are not GR based IV selected. Step1) W

  • XL Reporter Sorting

    In XL Reporter Designer, how can I define the sorting method as the report is generated? Thank you.

  • Cannot change track order in playlist

    Created playlist.  Went to change order of tracks in list.  Cannot move track to change location within the playlist or figure any othe way to accomplish this.

  • Viewing of stocks by an interaction centre agent

    Helllo Experts There is a requirement on one of our projects that the interaction centre agent should be able to view stocks in CRM. What would be a better option - ECC report through transaction launcher or BI report through transaction launcher? Pl

  • Mod bus library for LV6.1

    Hi i'm using LV 6.1 .I need to automate an equipment that support modbus protocol RTUframing. So is there any library for LV 6.1version. The version available on site is for LV 8.2 . Is this library compatible with LV6.1? Please solve my problem. Reg