JavaBean as Model ?

Can I use a javabean (not an EJB) in the model part of the MVC. I use a javabean for extracting information from my database.
Thank you vry much.

If you use JDBC its no problem. But you cannot use CMP with Javabeans.
If you have much persistence and want to make it easier, maybe you want to use JDO or Hibernate.

Similar Messages

  • Howto change property of javabeans based data control?

    Hi,
    I have a swing application which displays a combobox. This combobox is bound to a javabeans based model using ADF.
    The combobox is enabled/disabled based on a value in another combobox, so sometimes the combobox is enabled, sometimes it's not.
    We've currently implemented this using an action listener, which call comboBox.setEnabled(false).
    This works, but when you refresh the iterator binding for the panel, the combobox is always enabled. I assume this is caused by the fact that the adf xml file describing the javabean contains the following attribute: IsUpdatable="true".
    How can i programatically change this attribute? Can i set a property for the jcombobox control binding, or can i change the AttributeDef used by the combobox?
    Thanks,
    Andrej

    How do i programatically change an adf javabeans based control value from editable to not-editable?

  • Using EJB as model

    hi all,
    i am new to Java Webdynpros.
    I want to work on EJB as model.
    Please can anyone give an example/ step by step using EJB as model  in NWDS.
    Regards,
    Somya

    Hi  somya,
    You Can use EJB Model in java Dynpros, Refer to these links you will find all The Process for Developing an application using EJB's.
    [Importing Enterprise JavaBean (EJB) Models|http://help.sap.com/saphelp_nwce10/helpdata/en/45/dd45e4bc295595e10000000a1553f7/content.htm]
    [Enterprise JavaBeans for Web Dynpro|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/20b21892-c31c-2a10-f484-fcef1eaf8c4f]
    [SAP NetWeaver J2EE Preview: Application Development with the EJB 3.0 Programming Model|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0914ef0d-0d01-0010-beb9-d85ef5a6188d]
    I Hope This Information might be Helpful for you.
    Regards,
    Sharma.

  • Model Reference between WDP DC's

    Hi all,
    while developing with Webdynpro DCs we got a very profound problem as the following scenario describes.
    DC A is a faceless (no view element) Webdynpro Component which imports a simple JavaBean model. This model is mapped by the Interface Controller Context of the current component. The Model as well as the Webdynpro Component are added to the Public Part.
    DC B is a simple Webdynpro Component which imports DC A as "Used DCs". From the Component Controller of DC B we try to map the context of the Interface Controller from DC A. Needless to say that the Interface of DC A is added to the Used Webdynpro Components.
    Exactly in this case our whole project is blown up with a lot of errors caused by the Webdynpro wizards. In order to fix this problems we started to test some different Public Part versions and contents. Added some files or packages... but without a result!!
    Has anybody an idea how the preceding scenario can be realized??
    Greetings
    Thomas

    Hi Anilkumar,
    we did the following:
    we created a faceless Webdynpro component A and used a JavaBean as model.
    Then we did a 'Add to Public Part' of the newly created component.
    Beside this, we manually added the model in this component to the public part as well.
    The resulting DC is defined as "Used DCs" in a second Webdynpro DC B.
    As soon as we are referencing the model data via the component interface of component A,
    the next rebuild of component B fails.
    The detailed results is a amount of disrupted internal interfaces and classes.
    To trace that problem we examined the Public Part of component A and we discoverd,
    that the java classes of the uses JavaBean and all helper classes were not part of the Public Part.
    Thus we added these classes separately to the public part of component A as a Entity Reference.
    Thus we were able to reference the model of component A via its component interace in component B.
    But at runtime we now get a java.lang.LinkageError:
    java.lang.LinkageError: loader constraints violated when linking net/dsb/zhsgui/model/javaBean/EntireXSession class
         at net.dsb.zhsgui.view.Hilfezielort_model_compInterface.wdDoInit(Hilfezielort_model_compInterface.java:111)
         at net.dsb.zhsgui.view.wdp.InternalHilfezielort_model_compInterface.wdDoInit(InternalHilfezielort_model_compInterface.java:215)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingCustomController.doInit(DelegatingCustomController.java:73)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.progmodel.controller.Component.getCustomControllerInternal(Component.java:436)
         at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.createComponentInternal(ComponentUsage.java:161)
         at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.createComponent(ComponentUsage.java:110)
         at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.createInstanceIfDemanded(ComponentUsage.java:699)
         at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.getInterfaceControllerInternal(ComponentUsage.java:340)
         at com.sap.tc.webdynpro.progmodel.components.ComponentUsage.getControllerInternal(ComponentUsage.java:381)
         at com.sap.tc.webdynpro.progmodel.controller.Component.getMappableContext(Component.java:408)
         at com.sap.tc.webdynpro.progmodel.context.MappingInfo.getDataNode(MappingInfo.java:79)
         at com.sap.tc.webdynpro.progmodel.context.MappedNodeInfo.getDataNode(MappedNodeInfo.java:199)
         at com.sap.tc.webdynpro.progmodel.context.MappedNodeInfo.getStructureType(MappedNodeInfo.java:108)
         at com.sap.tc.webdynpro.progmodel.context.MappedNodeInfo.getStructureType(MappedNodeInfo.java:109)
         at com.sap.tc.webdynpro.progmodel.context.NodeInfo.initStructureType(NodeInfo.java:688)
         at com.sap.tc.webdynpro.progmodel.context.NodeInfo.initAfterCompletedMapping(NodeInfo.java:676)
         at com.sap.tc.webdynpro.progmodel.context.MappingInfo.getDataNode(MappingInfo.java:83)
         at com.sap.tc.webdynpro.progmodel.context.MappingInfo.initMapping(MappingInfo.java:121)
         at com.sap.tc.webdynpro.progmodel.context.MappingInfo.init(MappingInfo.java:117)
         at com.sap.tc.webdynpro.progmodel.context.MappedNodeInfo.doInit(MappedNodeInfo.java:207)
         at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:654)
         at com.sap.tc.webdynpro.progmodel.context.NodeInfo.init(NodeInfo.java:657)
         at com.sap.tc.webdynpro.progmodel.context.Context.init(Context.java:40)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:199)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.getView(ViewManager.java:540)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.bindRoot(ViewManager.java:422)
         at com.sap.tc.webdynpro.progmodel.view.ViewManager.init(ViewManager.java:130)
         at com.sap.tc.webdynpro.progmodel.view.InterfaceView.initController(InterfaceView.java:41)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.displayToplevelComponent(ClientComponent.java:135)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:392)
         at com.sap.tc.webdynpro.clientserver.task.WebDynproMainTask.execute(WebDynproMainTask.java:608)
         at com.sap.tc.webdynpro.clientserver.cal.AbstractClient.executeTasks(AbstractClient.java:59)
         at com.sap.tc.webdynpro.clientserver.cal.ClientManager.doProcessing(ClientManager.java:248)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doWebDynproProcessing(DispatcherServlet.java:154)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doContent(DispatcherServlet.java:116)
         at com.sap.tc.webdynpro.serverimpl.defaultimpl.DispatcherServlet.doGet(DispatcherServlet.java:48)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:740)
         at javax.servlet.http.HttpServlet.service(HttpServlet.java:853)
    Kind Regards
    Thomas

  • Bug in JDev 11g 11.1.1.0.2

    In the context of the JavaBean XML Model "Overview" editor i JDev 11g 11.1.1.0.2:
    When I add a validator and specify an appropriate text resource for the error message, JDev deletes my carefully authored description comment from the property resource bundle.

    Hi, I am using Oracle supplied HR schema, table EMPLOYEES. I created EO on EMPLOYEES table. All the attributes show correctly as Persistent first.
    Under Default Value section, I selected Radio Button "SQL" and entered valid Sql statement, Hit save button. I moved to next attribute, then I see. The previous attribute for which I entered Sql statement as default value, turned to Transient. But this is a Persistent attribute. It is not allowing me to change it back to Persistent.
    Hope the above steps will help to reproduce the bug in your system.

  • Re: [SunONE-JATO] Re: Using an object to store and display data

    Personally, I think there is little or no value to creating a "domain"
    object that itself relies on a JATO QueryModel internally, but hides that
    fact and requires use of BeanAdapterModel.
    It would be more appropriate (and much less work, and more scalable) to just
    derive a QueryModel subclass and add the domain-specific behavior to the
    model. In other words, what's the point of creating an object that hides
    JATO inside it when you're running in JATO to begin with? Now if the domain
    object were doing plain JDBC, and thus trying to be JATO independent, that
    would be different. However, you could still implement the Model interface
    on the object (or use BeanAdapterModel) to integrate it seamlessly with the
    View tier.
    Todd
    ----- Original Message -----
    From: "grschroeder" <grschroeder@y...>
    Sent: Wednesday, July 31, 2002 12:00 PM
    Subject: [SunONE-JATO] Re: Using an object to store and display data
    Craig,
    I think it all finally makes sense. First, your assumption is
    correct regarding the process flow. The ViewBean will interact with
    a custom Javabean which will then in turn interact with a SQL Model
    to access the database. So now let me make sure I understand what I
    need to do. Basically the custom Javabean will have a method to get
    the SQLModel. I would then invoke the setValue method on the
    SQLModel and call the appropriate execute method( e.g.,
    executeUpdate, etc. ) just like I would do from a ViewBean. Does
    this sound correct?
    Thanks,
    Greg
    --- In SunONE-JATO@y..., "Craig V. Conover" <craig.conover@s...>
    wrote:
    Greg,
    see below...
    grschroeder wrote:
    Thanks for the help Craig. I looked at the sample code that makes
    use of the BeanAdapterModel. Basically it looks like it allows a
    view to interact with a bean the same way it would interact with
    any
    other model. That part I think I understand.
    This is correct.
    The part I'm a little
    unclear on still is how to interface this BeanAdapterModel( which
    is
    a very basic model ) that I now have with a query model toactually
    interact with the database.
    Not sure what you mean by "interface this BeanAdapterModel ... witha
    query model". Does this mean that you have a ViewBean the interactswith
    a custom JavaBean via the BeanAdpterModel wrapper, and from the
    JavaBean you are interacting with the SQL Model?
    So it looks like this: ViewBean > BeanAdapterModel(Custom JavaBean)
    SQL Model > RDBMS
    That's what I am reading anyway. Please explain this to me.
    Would I need to make direct JDBC calls
    from my custom model instead of letting JATO dynamically create
    the
    calls for me?
    If my assumptions above are correct, then the custom JavaBean cansimply
    use the SQL Model in exactly the same manner as the ViewBean,otherwise,
    if no SQL Model is involved, then yes, you need to handle JDBCdirectly,
    which is fine, if you do it "right" (connection pooling, result set
    handling, etc.).
    Thanks,
    Greg
    --- In SunONE-JATO@y..., "Craig V. Conover" <craig.conover@s...>
    wrote:
    I think the best approach would be to treat your Domain Objects
    (DO) as
    the Database (the enterprise tier) from JATO's perspective. You
    could
    create custom models that interface with our DO's and then the
    JATO
    Views could easily bind to the custom DO models just like anyother
    model. This should eliminate the need for pushing data/objectsfrom
    >
    view
    to model to database.
    There is a JATO class called BeanAdapterModel that might be just
    what
    you need, however, I am not experienced with using it. Maybe
    someone
    else on my team or in the community could better explain how to
    use
    >
    this
    class.
    craig
    grschroeder wrote:
    Venki,
    Thanks for the response. Actually, I'm not sure if I can answer
    all
    of your questions because those are some of the same questions
    that
    we're trying to answer ourselves. Basically, what we're trying
    to
    >do
    is incorporate our domain object model into the JATO framework.
    My
    thinking was that one way we could accomplish this was by
    storing
    >a
    Javabean object in the HTTPSession to represent an object in the
    domain model, and that the Viewbean and JATO Model could get and
    set
    data from there. If you have a better suggestion of how to
    accomplish this, I'm definitely open to hearing it.
    Thanks,
    Greg
    --- In SunONE-JATO@y..., Venki <heyvenki@y...> wrote:
    OK grschroeder , first let me get this straight:
    0. Are you going to pass this object to the model, or are u
    going
    >
    to pass the session object to the model?
    1. Is there any specific reason for this approach you are
    taking?
    2. Will there be a notification from the object u havementioned
    >to
    have the model persist the data?
    3. What about the reverse case, when the model refreshes the
    data,
    how are you going to refresh you object?
    4. The JavaBean Object that u are talking about, is it your own
    object or is it implementation of an existing JATO interface?
    ~Venki
    grschroeder wrote:I'm fairly new to JATO, but I think I now
    have
    >a
    basic understanding
    of how Viewbeans and Models interact. However, I want to
    incorporate
    the use of a Javabean object that will be stored in the HTTP
    session
    and will act as the connection between the Viewbean and Model
    instead
    of having the Viewbean and Model interact directly with each
    other.
    Basically I would like to have the Model set data in the object
    stored in the session so that the Viewbean can pull it out to
    display
    it. And vice versa, once the user modifies the data and is
    ready
    >
    to
    persist it, I would like to have the Viewbean set data in the
    object
    stored in the session so that the Model can pull it out to
    store
    >it
    in the database. I'm not sure what the best approach would be
    to
    accomplish this. Any help you could give would be greatly
    appreciated.
    Thanks,
    Greg
    To download the latest version of JATO, please visit:
    http://www.sun.com/software/download/developer/5102.html
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp
    Service.
    Venki
    IT Solutions
    #6, Pycrofts Garden Road, Nugambakkam, Chennai - 600 006
    91-44-4925740(Home) 91-44-8212877(Work)
    * Luck is what happens when Preparation meets Opportunity.
    To download the latest version of JATO, please visit:
    http://www.sun.com/software/download/developer/5102.html
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp
    >To download the latest version of JATO, please visit:
    http://www.sun.com/software/download/developer/5102.html
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp
    To download the latest version of JATO, please visit:
    http://www.sun.com/software/download/developer/5102.html
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp

    Personally, I think there is little or no value to creating a "domain"
    object that itself relies on a JATO QueryModel internally, but hides that
    fact and requires use of BeanAdapterModel.
    It would be more appropriate (and much less work, and more scalable) to just
    derive a QueryModel subclass and add the domain-specific behavior to the
    model. In other words, what's the point of creating an object that hides
    JATO inside it when you're running in JATO to begin with? Now if the domain
    object were doing plain JDBC, and thus trying to be JATO independent, that
    would be different. However, you could still implement the Model interface
    on the object (or use BeanAdapterModel) to integrate it seamlessly with the
    View tier.
    Todd
    ----- Original Message -----
    From: "grschroeder" <grschroeder@y...>
    Sent: Wednesday, July 31, 2002 12:00 PM
    Subject: [SunONE-JATO] Re: Using an object to store and display data
    Craig,
    I think it all finally makes sense. First, your assumption is
    correct regarding the process flow. The ViewBean will interact with
    a custom Javabean which will then in turn interact with a SQL Model
    to access the database. So now let me make sure I understand what I
    need to do. Basically the custom Javabean will have a method to get
    the SQLModel. I would then invoke the setValue method on the
    SQLModel and call the appropriate execute method( e.g.,
    executeUpdate, etc. ) just like I would do from a ViewBean. Does
    this sound correct?
    Thanks,
    Greg
    --- In SunONE-JATO@y..., "Craig V. Conover" <craig.conover@s...>
    wrote:
    Greg,
    see below...
    grschroeder wrote:
    Thanks for the help Craig. I looked at the sample code that makes
    use of the BeanAdapterModel. Basically it looks like it allows a
    view to interact with a bean the same way it would interact with
    any
    other model. That part I think I understand.
    This is correct.
    The part I'm a little
    unclear on still is how to interface this BeanAdapterModel( which
    is
    a very basic model ) that I now have with a query model toactually
    interact with the database.
    Not sure what you mean by "interface this BeanAdapterModel ... witha
    query model". Does this mean that you have a ViewBean the interactswith
    a custom JavaBean via the BeanAdpterModel wrapper, and from the
    JavaBean you are interacting with the SQL Model?
    So it looks like this: ViewBean > BeanAdapterModel(Custom JavaBean)
    SQL Model > RDBMS
    That's what I am reading anyway. Please explain this to me.
    Would I need to make direct JDBC calls
    from my custom model instead of letting JATO dynamically create
    the
    calls for me?
    If my assumptions above are correct, then the custom JavaBean cansimply
    use the SQL Model in exactly the same manner as the ViewBean,otherwise,
    if no SQL Model is involved, then yes, you need to handle JDBCdirectly,
    which is fine, if you do it "right" (connection pooling, result set
    handling, etc.).
    Thanks,
    Greg
    --- In SunONE-JATO@y..., "Craig V. Conover" <craig.conover@s...>
    wrote:
    I think the best approach would be to treat your Domain Objects
    (DO) as
    the Database (the enterprise tier) from JATO's perspective. You
    could
    create custom models that interface with our DO's and then the
    JATO
    Views could easily bind to the custom DO models just like anyother
    model. This should eliminate the need for pushing data/objectsfrom
    >
    view
    to model to database.
    There is a JATO class called BeanAdapterModel that might be just
    what
    you need, however, I am not experienced with using it. Maybe
    someone
    else on my team or in the community could better explain how to
    use
    >
    this
    class.
    craig
    grschroeder wrote:
    Venki,
    Thanks for the response. Actually, I'm not sure if I can answer
    all
    of your questions because those are some of the same questions
    that
    we're trying to answer ourselves. Basically, what we're trying
    to
    >do
    is incorporate our domain object model into the JATO framework.
    My
    thinking was that one way we could accomplish this was by
    storing
    >a
    Javabean object in the HTTPSession to represent an object in the
    domain model, and that the Viewbean and JATO Model could get and
    set
    data from there. If you have a better suggestion of how to
    accomplish this, I'm definitely open to hearing it.
    Thanks,
    Greg
    --- In SunONE-JATO@y..., Venki <heyvenki@y...> wrote:
    OK grschroeder , first let me get this straight:
    0. Are you going to pass this object to the model, or are u
    going
    >
    to pass the session object to the model?
    1. Is there any specific reason for this approach you are
    taking?
    2. Will there be a notification from the object u havementioned
    >to
    have the model persist the data?
    3. What about the reverse case, when the model refreshes the
    data,
    how are you going to refresh you object?
    4. The JavaBean Object that u are talking about, is it your own
    object or is it implementation of an existing JATO interface?
    ~Venki
    grschroeder wrote:I'm fairly new to JATO, but I think I now
    have
    >a
    basic understanding
    of how Viewbeans and Models interact. However, I want to
    incorporate
    the use of a Javabean object that will be stored in the HTTP
    session
    and will act as the connection between the Viewbean and Model
    instead
    of having the Viewbean and Model interact directly with each
    other.
    Basically I would like to have the Model set data in the object
    stored in the session so that the Viewbean can pull it out to
    display
    it. And vice versa, once the user modifies the data and is
    ready
    >
    to
    persist it, I would like to have the Viewbean set data in the
    object
    stored in the session so that the Model can pull it out to
    store
    >it
    in the database. I'm not sure what the best approach would be
    to
    accomplish this. Any help you could give would be greatly
    appreciated.
    Thanks,
    Greg
    To download the latest version of JATO, please visit:
    http://www.sun.com/software/download/developer/5102.html
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp
    Service.
    Venki
    IT Solutions
    #6, Pycrofts Garden Road, Nugambakkam, Chennai - 600 006
    91-44-4925740(Home) 91-44-8212877(Work)
    * Luck is what happens when Preparation meets Opportunity.
    To download the latest version of JATO, please visit:
    http://www.sun.com/software/download/developer/5102.html
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp
    >To download the latest version of JATO, please visit:
    http://www.sun.com/software/download/developer/5102.html
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp
    To download the latest version of JATO, please visit:
    http://www.sun.com/software/download/developer/5102.html
    For more information about JATO, please visit:
    http://developer.iplanet.com/tech/appserver/framework/index.jsp

  • Central build fails when checking in an activity

    I have a web dynpro application that uses a javabean as model. The javabean has several properties that are of type collection that are mapped to DTOs that consist of simple types. I had to add a new simple type (integer) to one of the DTOs and made the same change in web dynpro by adding the integer property to the appropriate model class.
    I did a reload + rebuild in web dynpro, dragged the new model attribute from the model to the component controller and added the attribute to my view. I then did a DC build and then a DC deploy and the application works. I can retrieve, update and add values from the database with the new field.
    When I go to check my activity in, the central build fails and the failure is related to the new attribute that was added.  Im wondering in the problem is related to problems with the NWDI server, as it was restarted several times this week while I had my activity open. 
    When I browse to the dev/inactive branch in the DTR, I can see the new attribute that was added to JobPartDTO.java class in the DTO DC and I can see the new attribute that was added to the JobPartDTO.wdmodelclass in the web dynpro DC. In the dev/active branch, theses changes are not present.
    Here are the errors from the CBS log.
    [echo] Starting Java compiler
         [javac] Compiling 73 source files to /usr/sap/DJD/JC50/j2ee/cluster/server0/temp/CBS/eb/.B/10398/t/E63CF921E07C342BC77B3BB9E227D7A8/classes
    /usr/sap/DJD/JC50/j2ee/cluster/server0/temp/CBS/eb/.B/10398/t/E63CF921E07C342BC77B3BB9E227D7A8/gwd/packages/com/company/dev/jsets/wdp/wdp/IPublicJobSetsComp.java:12771: cannot resolve symbol
    symbol  : method getOperSeqNo ()
    location: class com.company.dev.jsets.dto.JobPartDTO
          return gen_modelInstance.getOperSeqNo();
                                  ^
    /usr/sap/DJD/JC50/j2ee/cluster/server0/temp/CBS/eb/.B/10398/t/E63CF921E07C342BC77B3BB9E227D7A8/gwd/packages/com/company/dev/jsets/wdp/wdp/IPublicJobSetsComp.java:12779: cannot resolve symbol
    symbol  : method setOperSeqNo (int)
    location: class com.company.dev.jsets.dto.JobPartDTO
          gen_modelInstance.setOperSeqNo(value);
                           ^
    /usr/sap/DJD/JC50/j2ee/cluster/server0/temp/CBS/eb/.B/10398/t/E63CF921E07C342BC77B3BB9E227D7A8/gwd/packages/com/company/dev/jsets/wdp/wdp/IPublicJobSetsComp.java:12791: cannot resolve symbol
    symbol  : method getOperSeqNo ()
    location: class com.company.dev.jsets.dto.JobPartDTO
              return new Integer(gen_modelInstance.getOperSeqNo());
                                                  ^
    /usr/sap/DJD/JC50/j2ee/cluster/server0/temp/CBS/eb/.B/10398/t/E63CF921E07C342BC77B3BB9E227D7A8/gwd/packages/com/company/dev/jsets/wdp/wdp/IPublicJobSetsComp.java:12808: cannot resolve symbol
    symbol  : method setOperSeqNo (int)
    location: class com.company.dev.jsets.dto.JobPartDTO
              gen_modelInstance.setOperSeqNo(((Number)value).intValue());
                               ^
    /usr/sap/DJD/JC50/j2ee/cluster/server0/temp/CBS/eb/.B/10398/t/E63CF921E07C342BC77B3BB9E227D7A8/gwd/packages/com/company/dev/jsets/wdp/wdp/IPublicJobSetsComp.java:12820: cannot resolve symbol
    symbol  : method getOperSeqNo ()
    location: class com.company.dev.jsets.dto.JobPartDTO
              return gen_modelInstance.getOperSeqNo();
                                      ^
    /usr/sap/DJD/JC50/j2ee/cluster/server0/temp/CBS/eb/.B/10398/t/E63CF921E07C342BC77B3BB9E227D7A8/gwd/packages/com/company/dev/jsets/wdp/wdp/IPublicJobSetsComp.java:12829: cannot resolve symbol
    symbol  : method setOperSeqNo (int)
    location: class com.company.dev.jsets.dto.JobPartDTO
              gen_modelInstance.setOperSeqNo((int)value);
                               ^
    /usr/sap/DJD/JC50/j2ee/cluster/server0/temp/CBS/eb/.B/10398/t/E63CF921E07C342BC77B3BB9E227D7A8/gwd/packages/com/company/dev/jsets/wdp/JobSetsComp.java:3052: cannot resolve symbol
    symbol  : method setOperSeqNo (int)
    location: class com.company.dev.jsets.dto.JobPartDTO
                   dto.setOperSeqNo(operSeqNo);
                               ^
    7 errors

    The problem has fixed itself! I made some new additional changes to my DAO and EJB  and checked in my activity. This detected all the predecessors activities and central build was successful, even in the CMS!

  • XMI import deprecated

    Hi, I would like to use automatic code generation UML -> Java.
    I was planning to use XMI import in NWDS, but as of 7.0.11 this option is deprecated.
    Does anyone know the reasons behind this decision?
    Moreover, I would really appreciate if anyone could provide suggestion as to how replace the XMI import and use automatic code generation.
    Thanks
    Vincenzo

    Hi, so no response yet, just let me put things the other way around.
    I have a JavaBean - based model in my WDP DC. I would like to add method computeTax() to ModelClass Employee.
    I can actually add the method to the Employee class in the methods tab in WD Explorer, but I can't find the "implementation" tab in the model class editor as for RFC - based model classes.
    Can anyone please help? Also methodologies concerning UML-oriented development would be really valued.
    Thanks, Vincenzo

  • Unresolved dependencies found

    Hi there,
    I have created a Java-Classes-DC (JCDC) and a WebDynpro-DC (WDDC). Both DC's are local. I put JavaBean classes in the JCDC. I use this JavaBeans as model in my WDDC. The WDDC uses the public part of the JCDC for build time and deploy time. I can build both DC's with no error (i get a warning for JCDC). When i deploy the WDDC i get this error: 
    Unresolved dependencies found for the following SDAs:
    1.: development component 'WDDC'/'vendor/'local'/'20060130144017'
    dependency:
           name:     'JCDC'
         vendor:     'vendor'
    Deployment will be aborted.
    Any advice will be appreciated.
    Thanks,
    Matthias

    Hallo Matthias,
    Java DCs cannot be deployed. Consequently you have to add the sources of such a DC to a Public Part of purpose "<b>assembly</b>". The <i>Public Part Dependcy Type</i> of this DC in the embedding DC must be "Runtime". An additional Public Part for the purpose "compilation" must be added too, so that the contained jar-files are added to classpath entries of the embedder DC. See ... <a href="http://help.sap.com/saphelp_nw04/helpdata/en/e0/020340dcf41e07e10000000a1550b0/content.htm">SAP NetWeaver Online Help - Java DC</a>and <a href="http://help.sap.com/saphelp_nw04/helpdata/en/e6/504540d1b79523e10000000a1550b0/content.htm">Dependencies Between DC Types</a>
    <b>Other Solution:</b> - <u>Embedding Jar-Files within Web Dynpro DCs</u>
    Another approach for solving you problem and for simplifying life is to embed such model-jar files within a Web Dynpro DC, which is a deployable DC. In this case only one public part with purpose "compilation" must be declared.
    Regards, Bertram

  • What makes a Bean? I thought it needed descriptor class, etc.

    I am getting confused. i see all over the place people saying they have a JavaBean and are using it in a JSP file. But it is always just a java class. Nothing about it is a bean as far as i can tell - or am I wrong? I thought it needed a descriptor class?

    You are not wrong, necessarily. There are no JavaBean interfaces to implement or base classes to subclass. Technically, any Java class is a (potential) JavaBean.
    That said, bean classes should follow the JavaBean specification to properly expose meta information -- properties, methods, and events. The preferred approach is via BeanInfo classes.
    I find the JavaBean component model lacking... the beans model is like an infants toy compared with other component models e.g., ActiveX.

  • Property editor for non bean components

    All
    My Requirement:
    I had just started to develop an IDE for java, if i click on the component for eg,, a button in the frame i should get all the properties of that component. Is there anyway i could do this thru the PropertyEditor object.
    Any other suggestions????
    Tx in advance
    Arul

    First I suggest you bone up on the JavaBeans specification... know it well.
    Next I think you'll conclude that you'll need to build your own PropertyEditors for all the common types. Along with custom editors for complex types e.g., Font.
    Also I think you'll notice that the JavaBeans component model is severely lacking regarding property exposure; a competent property inspector will have to embellish on the JavaBeans model.
    Good luck.

  • Sun Certified Business Component Developer (SCBCD)

    The Sun Certified Business Component Developer (SCBCD) certification targets information regarding Java components related to distributed applications, specifically Enterprise Java Beans (EJBs). To achieve this certification, the candidate must pass a computer-based test available world-wide at Prometric test centers.
    SCBCD 1.4 exam covers Java2 Enterprise Edition (J2EE) version 1.3 code, including EJB version 2.0.
    As of 2008, the SCBCD covers the Java2 Enterprise Edition (J2EE) version 5 code, corresponding to EJB version 3.0.
    The pre-requisite for this certification is that the candidate should be a Sun Certified Programmer for Java 2 Platform (any edition).
    SCBCD for J2EE version 1.3 is now no longer offered (starting February 2008). However, the upgrade exam from SCBCD for J2EE version 1.3 to J2EE version 5 is still available.
    310-090:Sun Certified Business Component Developer for J2EE1.3
    It comes from blog.killtest.com

    Team,
    #1: I understand that this is Sun's Training / learning / Certification forum, which I believe is a good place to ask such a question. I believe the answer would be beneficial to a few more people than me.
    #2
    I do understand the true nature of the examine. Application Design, Patterns, UML - an Architects view of a project. But the test requirements also states a few item that differ in EJB 3.0 over EJB 1.1, 2.0, 2.1 - for instance::
    Section 4: Enterprise JavaBeans Technology
    * List the required classes/interfaces that must be provided for an EJB technology.
    * Distinguish Session and Entity beans.
    * Recognize appropriate uses for Entity, Stateful Session, and Stateless Session beans.
    * State benefits and costs of Container Managed Persistence.
    * State the transactional behavior in a given scenario for an enterprise bean method with a specified transactional deployment descriptor.
    * Identify costs and benefits of using an intermediate data-access object between an entity bean and the data resource.
    Section 5: Enterprise JavaBeans Container Model
    * Explain how the EJB container does lifecycle management and has the capability to increase scalability.
    I have recently passed the Sun Certified Business Component Developer (SCBCD), and work in an EJB 3.0 environment. I wish to the certification to reflect the current technology.
    If there is someone more appropriate to ask or place to ask, please direct me to the resource. Thank you.
    Tony McClay

  • What  is a mapper class ?

    what is a mapper class?
    it looks like it maps to something ...right ?
    can you provide some example ? this concept is not clear.
    N.B :
    I am giving you some context where i have come accross this term ....i have noticed this , where there are some messaging (JMS,MQ etc ) involved in applications........if the application have messaging , then the project usually contain some mapper kind of class......yes, i know this is not a full information that i can give you...........the point is , have you seen this kind of mapper classes in your project ? what they do ? can you give some outline view what it does basically ......i am interested in this terminology.

    Thanks for the response.
    The "mapper" classes do you usually convert/map from
    one format to another by mapping values. you told "format".
    uhh....ok....suppose i have a XML message(complient to XSD1) which lies in JMS queue(suppose) ....does a Mapper class tears this XML message and then again build another XML Message (complient to XSD2) ......is it like this ? is it the job of a mapper class ? does it simply makes a new different format from a given format ?
    E.g. data
    from your model should be mapped into fields in a
    predefined message format.ahh....so, if i have a javabean(data model) with many properties then a mapper class takes these properties and puts these in the appropriate fields of a predefined message format.
    anything else involved here ?
    In fact , i was looking for mapper classes who are involved in messaging
    Kaj

  • Project Architecture

    Hi..
    I am now hunting for job in Java..
    What does really a project architecture mean, while we are developing a project using JSP,Servlet and Struts . What a project flow diagram. Does both are almost same or different. What should be the answer of the question..(What is the architecture of your project ?) .
    Plz help me out !

    I guess the answer is something including the next explanations:
    - Develop language (Jave, in this case)
    - Kind of application (stand alone / web)
    If web application:
    - Web application server (Tomcat, Websphere, BEA Weblocig, etc.)
    - Developing technology: Struts (framework implementing MVC pattern), JSP (View), ActionServlet (Controller), JavaBeans-EJB (Model), etc.
    - Persistence: Hibernate (or other object persistence implementation) or DB access with SQL code embedded in Java code.

  • How to figure out if users loggin in the system in JSP??

    Hi, all
    I am developing a website system which consist of
    (Client Brower) <----> (JSP/Servlets) <--->(JavaBean)<----->(Database)
    model, and the system is used to sell the DVD online, but I am just confused of how can I find out if the user is logged in or not?
    Thanks to anyone who read and rely this.

    use session variable or cookies to track the user if he / she is logged r not

Maybe you are looking for

  • HP 6340F CPU random Fan failure warning and shutdown at startups. :-(

    Get CPU FAN Failure warning and shut-down at random startups. it has been thoroughly cleaned as have been the fins. Will boot up afer 2-3 restarts and runs OK rest of day. There are no obstructions or interferences and fan appears to be visually perf

  • How to keep a backup of olm data file of microsoft office in mac

    Hello I am a new user of mac and need help in keeping a backup file of olm file of microsoft office Outlook. I bought my macbook pro 3 days back and imported my old mails from .pst file of my windows laptop and now need to keep the backup of olm file

  • Mix Cd Project

    I am completely new to audio development on the MAC. My employer has set me up Logic Pro and Final Cut Pro which includes Soundtrack. To accommodate myself with my new tools and environment I am doing a simple mixing project that will include taking

  • On time Payment - Customer Discount

    Hi All, We are generating the invoice and sending it to the customer. Now we expect the customer to pay for it. We have a policy in our company, like if the customer pays on time or before a cut off date then the customer is eligible for discounts. T

  • Can I still purchase Dreamweaver CS6 as a Student?

    When visiting Student/Teacher purchase page, I see the only version available is the Creative Cloud. I can't afford the monthly payments for Dreamweaver and Photoshop.  I used to be able to purchase Adobe Creative Suite as a student and save a lot of