Wanted: Entity EJBs With Configurable Attributes


DevX Home    Today's Headlines   Articles Archive   Tip Bank   Forums   

Results 1 to 2 of 2

Thread: Wanted: Entity EJBs With Configurable Attributes

  1. #1
    Jim Bowman Guest

    Wanted: Entity EJBs With Configurable Attributes


    I am working on a prototype whose current architecture includes servlets and
    an EJB server. We are using both Entity EJBs and state-less Session EJBs.
    Everything has come together quite easily developing an Entity EJB for each
    business object in the domain model and a Session EJB for each use case.

    Now we have just gotten a use case to allow the user to add custom attributes
    to some of the business objects. For now, the attributes just need to be
    viewable. (Later we might need to query by them.) Rebuilding the EJBs is
    not an acceptable option.

    What can we do? (The only thing that I have come up with is to add an array
    to the configurable Entity EJBs that can contain name-value pairs.)

    Jim


  2. #2
    Ilja Preuß Guest

    Re: Wanted: Entity EJBs With Configurable Attributes


    "Jim Bowman" <jbowman@axiomsys.com> wrote:
    >What can we do? (The only thing that I have come up with is to add an array
    >to the configurable Entity EJBs that can contain name-value pairs.)


    Another option could be a Hashtable or Properties instead of the array (see
    java.util package). The best choice mainly depends on how you would like
    to manage persistence (or what options of container-managed persistence your
    server offers).


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
HTML5 Development Center
 
 
FAQ
Latest Articles
Java
.NET
XML
Database
Enterprise
Questions? Contact us.
C++
Web Development
Wireless
Latest Tips
Open Source


   Development Centers

   -- Android Development Center
   -- Cloud Development Project Center
   -- HTML5 Development Center
   -- Windows Mobile Development Center