Methodology to find the right enitybean

Hi,
There are many discussions of the benefit of using enity bean(CMP and BMP), can someone provide some clues/links about the methodology of identify entity beans give an existing database?
1. make each table an entity bean, certainly not
2. make an entity bean a group of join of tables, isn't that use cases driven? what if use cases change, the entity beans also have to be changed accordingly?
Thanks much

Greetings,
Only as a consequence if poor understanding ofEntity
Beans, their nature and purpose! Er, and, ofcourse,
poor application design... which, in turn, maydepend
on poor understanding of the businessrequirements...
which, hopefully, have been sufficiently
documented...Hmmm...you are saying that most J2EE applications,
particularily new ones do not end up doing exactly
that?No, nor can I say that - being able to speak
only out of my own experience...
In my experience, and from reading here, most solutions end up doing that (keep in mind that most mappings are in a single solution are 1 to 1 not all.)
I am not saying that that is necessarily correct for all of those solutions. But I am far from certain that many of them should have been using any entity beans at all.
What I was saying, however, is that a commonly held
misunderstanding of Entity Beans result too often in
their use as little more than elaborate "data
accessors" - Sun and the JCP did not need to reinvent
the wheel for data integration purposes! Even a
casual reading of the specification reveals their real
purpose to be to provide an object-oriented view of
enterprise data regardless of where that data
is stored! The specification is further careful to
qualify (on several occasions) a relational resource
as only the "typical" storage mechanism against
which to map Entity Bean<-->entity associations.
Object databases, legacy systems, and "applications"
are pointed to as additionally valid resource targets
for Entity Beans. Therefore, the practice of
"mapping one bean to one table" is merely one
technique for implementing Entity Beans in
"typical use" scenarios.Yes, but most scenarios are exactly that which is why I say "most".
I would still like to try something where a single entity maps to a complex external system. Perhaps using a screen scrape interface (not because I like screen scraping but rather because the interface seems so extreme.)
>
This is also, indeed, even a poorly conceived
technique since one "enterprise data" - a.k.a.
"entities" are often composed of a hierarchy of
abstracts - a "Customer" derives from a "Person" which
has an "Address" and "Contact Numbers" comprised of
"Cities", "States", "Countries", "Post Codes", "Area
Codes", etc... - all of which, in a relational model,
may be broken into multiple "tables" against which all
could have an Entity Bean mapping. Does that
mean, however, that all are appropriate for container
persistent existence?? In this scenario, the
application may indeed benefit from "Cities", "States"
and the like being accessible as shared, persistent,
objects, but does it, for example, really need
to make all "Contact Numbers" available the same way?
Ultimately, it, again, is dependent on the needs of
the application. The point is, however, blindly
"mapping 1 bean to one table" can, and usually does,
lead to quick bottleneck of resource and serious
degradation of performance - leaving the platform to
blame for the misunderstanding, or outright
ignorance, of that platform by the developer.
That is probably true. But I wonder how many applications end up with those sorts of hierarchies. From these forums certainly some do, but I have never worked on one.
...A closer review of the Entity Bean's lifecycle and
it should become clear-er that providing "an
object-oriented view of enterprise data" does NOT
necessarily translate into doing the same for ALL of
that data, nor is appropriate in all business
processes. Entity Beans provide a shared and (in
container) persistent object-oriented view of
enterprise data. The key words here are shared
and object-oriented. The first implies
multi-client or, at least, frequent single client,
access. The last implies in-memory residence, for
which the container must ensure proper loading of the
entity from it's resource. Mapping an Entity Bean to
the resource without considering the level of the
data's sharedness or the benefit of having it
in-memory resident often leads to a typical
cluttering of the application server and a huge waste
of resources. Further, doing so without considering
whether the business process requires every entity of
concern to be coincidentally loaded into an in-memory
object representation of in order to complete also
typically leads to a bottleneck at the resource
and a needless degradation of it's performance!
Yep.
So, again, no, I'm not saying that "most J2EE
applications ... do not end up [mapping 1 bean to
every table]" - rather, in fact, I'm saying that most
(especially "new ones", which likely start as a
consequence of reading the "hype" and "cool-ness"
surrounding J2EE, but not it's more boring technical
details(!)), unfortunately do do that and
inevitably end up undergoing "changes" thanks largely
to unexpectedly negative and grossly misunderstood
performance results...
Ok. But I would guess that the OP hasn't done this before. And I suspect that many problems which have an entity solution applied to them aren't going to suffer too terribly due to this, simply because they probably didn't need any entities in the first place, and/or because the project is likely to suffer from poor requirements/design which would impact performance far more than any technology would.
Multi-tier separation evolved as a development
paradigm largely because of this. More oftenthan
not, the application's user interface (i.e
it's
"views") change more frequently and rapidly - and
a-ffectively - than either it's business logic or
integrations. Business logic is usually next to
change - along with the "business" - but when the
change is large enough the existing applicationis
scrapped anyway... what always remains, however,is
the data. ;)In the non-trivial change orders I have worked onsome
existing entity beans are always impacted. Not to
mention the ripple effects that go along with thatand
with the new functionality. I haven't seenanything
You are referring to "requirements changes" which,
like requirements generally, involve the "data of
business" (which Entity Beans may, in turn, map); I
was referring to "business changes" which the
business logic models and the application
encapsulates. When "business" changes enough (to
which I personally have bore witness during my time at
MCI, Sun, and SAIC), prior "business logic" is no
longer valid and must be "re-evaluated". In these
cases, however, "business data" remains continually
relevant to the changing enterprise.
No I wasn't, although I was imprecise. I am referring to existing solutions which have to be changed because the business changed.

Similar Messages

  • I have a iphone 4s with ios 8.3 and I used to be able to sync only a week or two of emails from outlook email.  Now it won't let me do that and it syncs all my inbox.  How can I change it back to sync less.  I can't find the right place.

    I have a iphone 4s with ios 8.3 and I used to be able to sync only a week or two of emails from outlook email.  Now it won't let me do that and it syncs all my inbox.  How can I change it back to sync less.  I can't find the right place.

    I understand, as that was the place I would change it before 8.3 but now that option of Mail Days to Sync is not available?  Any idea why that would be?

  • How can I get a search bar added to my email archives screen to make it easier to search for the right archives folder, Samsung has one so I was surprised to see that I have to scroll up and down to find the right folder?

    How can I get a search bar added to my email archives screen to make it easier to search for the right archives folder, Samsung has one so I was surprised to see that I have to scroll up and down to find the right folder?

    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    * Don't make any changes on the Safe mode start window.
    * https://support.mozilla.com/kb/Safe+Mode
    * https://support.mozilla.com/kb/Troubleshooting+extensions+and+themes
    You can modify the pref <b>keyword.URL</b> on the <b>about:config</b> page to use Google's "I'm Feeling Lucky" or Google's "Browse By Name".
    * Google "I'm Feeling Lucky": http://www.google.com/search?btnI=I%27m+Feeling+Lucky&ie=UTF-8&oe=UTF-8&q=
    * Google "Browse by Name": http://www.google.com/search?ie=UTF-8&sourceid=navclient&gfns=1&q=
    * http://kb.mozillazine.org/keyword.URL
    * http://kb.mozillazine.org/Location_Bar_search

  • HT1443 I need to upgrade from 10.5.8 to 6.0 or better to use a new HP wireless printer.  How do I find the right item to download?

    I need to upgrade from 10.5.8 to 6.0 or better to use a new HP wireless printer.  How do I find the right item to download?

    There is no download; you need to buy a Mac OS X 10.6 DVD.
    (83218)

  • Finding The Right App

    im having trouble finding the right app for my ipad. i will spend money and everything, but there are just no good apps out there. the type of app i want is a creation app, sort of like google sketchup, or even better, something like cinema 4d. ive never seen any app come even close to anything like that. i just like making and designing things. i play the game "Soundrop" alot because you just simply create lines into creative little structures and paths for the balls to bounce. if they ever came out for a line rider for the ipad i would probably pay $50+ just for that one app which already exists on the iphone but sadly not on the ipad...does someone have any suggestions for any apps that you think i would like?

    if they ever came out for a line rider for the ipad i would probably pay $50+ just for that one app which already exists on the iphone but sadly not on the ipad
    Sure it is. $2.99
    -> Line Rider HD

  • HT4539 I have 2 year old I-phone 4 that has never been updated. I need to download an update from my computer but can not find the right place on the I-Tunes page. Do you know where is the right place to update a phone that does not have an "update" butto

    My (old, never updated) I-phone has no "update" button in Settings and I would like to update it. I can not find the right place on I-Tunes to download the updates. Do you know where to look?

    Update your iPhone, iPad, or iPod touch - Support - Apple

  • How to find the right kstat info & interpret it ?

    Having found out how to read the kstat structures I am
    still struggling with finding the right information which
    makes sense!
    I am interested in the following statistics:
    0. Swap Space - similar to that reported by swap
    1. Scan rate similar to that reported by vmstat
    2. Handspread page (see Adrian Cockcrofts' performance monitoring articles)
    3. Disk Space Usage - similar to df -k
    4. Process memory usage -- ps
    5. System Error Messages -- this may not be possible to read at all
    from kstat. Probably here I will have to make do with reading /var/adm/messages
    6. Disk Errors -- similar to iostat -E (Solaris 2.6 onwards)
    7. Ethernet stats -- like netstat -I le0
    I found the following article on SunSolve Online: FAQ 1230 'Three Virtual Memory Performance Monitors' which directs me to some of the kstat cell
    types.
    I started with swap space. The above article plus a few other pointers seemed to indicate the the
    correct kstat struct and field to use here was vminfo.swap_avail
    When I compared the figures dumped from this structure with those reported by vmstat & swap they
    did not compare! eg.
    kstat: vminfo.swap_avail 321393372929
    kstat: vminfo.swap_free 33339822544
    vmstat unix tool:
    swap avail (KB) 19932
    Furthermore sysinfo.h indicates that vminfo.swap_avail is expressed in pages.
    1 page = 4.096 KB, so the kstat figures should be multiplied by 4 which makes
    the comparison even worse. Whilst I don't expect the figures to be
    an exact match -- I was hoping they would be in the same ball-park,
    Next I tried page in/page out rate
    Here I compared:
    kstat: cpu_vminfo.pgpgin 473224
    kstat: cpu_vminfo.pgpgout 14554
    vmstat unix tool:
    pi (page in) 4
    po (page out) 0
    These figures sort of match up, if you take the most sig digit in
    vminfo.
    I was wondering if anyone has a definitive list on what are the best
    kstat fields to use -- and if any wierd and wonderful calculations must
    be performed on any of them to get figures close to that supplied by
    the familiar unix tools.

    Hi!
    I wrote a quick program to read the vminfo stats and like you saw completely crazy figures. I looked further into this and found that every second, the system clock routine adds the freemem, swap and so on to a cumulative total.
    To put it another way, the figure you see for free memory is the sum total of the value of freemem sampled every second since your system booted.
    Thus, to get the average freemem in pages since boot, you need to read the value of freemem and divide by the number of seconds since boot.
    You can derive the number of seconds in two ways from the kstats:
    (1) read lbolt (incremented every 100th sec) and divide by 100 (hz)
    or (2) read sysinfo.updates (which is incremented every time the kstats are updated).
    I have attached a sample program that demonstrates both of these and reports average freemem since boot in K (like vmstat).
    Similarly, to get a 5 second average, take two readings of freemem and sysinfo.updates five seconds apart , then calculate
    (freemem2-freemem1)/(updates2-updates1)
    It seems most, if not all, of the system counters are cumulative in this fashion.
    Hope that helps.
    Ralph
    SUN Developer Technical Support
    <pre>
    #include <stdio.h>
    #include <stdlib.h>
    #include <unistd.h>
    #include <kstat.h>
    #include <sys/types.h>
    #include <sys/time.h>
    #include <sys/sysinfo.h>
    #include <stdio.h>
    main()
    kstat_ctl_t *kc;
    kstat_t *vminfo_ksp;
    kstat_t *system_misc_ksp;
    kstat_t *sysinfo_ksp;
    kstat_named_t *lbolt_knp;
    vminfo_t vminfo;
    sysinfo_t sysinfo;
    int hz;
    int ltime;
    ulong_t updates;
    if ((kc = kstat_open()) == NULL)
    perror("kstat_open failed"); exit(1);
    /* get lbolt and divide by hz to get secs since boot */
    system_misc_ksp = kstat_lookup(kc, "unix", 0, "system_misc");
    kstat_read(kc, system_misc_ksp, NULL);
    lbolt_knp = kstat_data_lookup(system_misc_ksp, "lbolt");
    hz = sysconf(_SC_CLK_TCK);
    ltime = lbolt_knp->value.l/hz;
    /* get number of statistic updates so far (=secs since boot) */
    sysinfo_ksp = kstat_lookup(kc, "unix", 0, "sysinfo");
    kstat_read(kc, sysinfo_ksp, &sysinfo);
    updates=sysinfo.updates;
    printf("lbolt time %d\n",ltime);
    printf("updates %d\n",updates);
    /* get vminfo */
    vminfo_ksp = kstat_lookup(kc, "unix", -1, "vminfo");
    kstat_read(kc, vminfo_ksp, &vminfo);
    printf("freemem %lld\n",(vminfo.freemem*4)/updates);
    printf("freemem %lld\n",(vminfo.freemem*4)/ltime);
    </pre>

  • Finding the right htmlBusiness page

    Hi,
    we are on WAS 700 with internal ITS.
    I am dealing with SRM EBP templates and I can't find the right htmlBusiness source .
    From the html source code of the page rendered in the webbowser I get the info that my page is
         <!--
    This page was created by the
    SAP Integrated ITS, WebAS: EBT, workprocess: 2
    All rights reserved.
    Creation time:  Wed Oct 31 12:00:57 2007
    Charset:        iso-8859-1
    Template:       bbpsc02/99/saplbbp_sc_ui_its_100.html  -->
      <!-- No session management -->
       <!-- Domain relaxation already done -->
    <!-- START:  GENERAL DATA                         : Template   100 -->
    Looking at it in the ABAP Workbench I can find an entry which seems to be responsible for the peace of source I have to change - its a subscreen:
    <b>Look at this:</b>
    <!--  SUBAREA:     ACCOUNTING    ------------------------------------------------ -->
    `if (gs_screen-subgeneral-EXT_SCR_TYPE.value == "ACCO")`
      `BBPXBoxBegin(TITLE-ACCOUNTING.label, BTN_SUB_GENERAL_CLOSE.okcode )`       
        `includeFrame (~frameName="gc_sub_general")`
      `BBPXBoxEnd()`
    `end`
    The Dynpro 100 infact has a subscreen called gc_sub:general.
    <b>The Question is:</b> Where do I find the html Version for the subscreen. It includes icons, which I need to replace.
    I notice that there is  this function BBPBoxBegin which might also be responsible for my source. Didn't find it yet, either...
    Thanx a lot,
    Matthias

    Sorry - just found the source - it is in the BBPXBox function, which I just found...
    thanx anyway, kind regards, matthias

  • Finding the right harddrive?

    Hi!
    I am trying to find the right HD to swap with my current 160GB. The criteria are simple. At least 500GB and 7200 RPM.
    However I don't know which are compatible. I have a 15" MacBookPro (ver. 2,2) 2,16 GHz Intel Core Duo 2 from January 2006, with 4 GB Ram installed. I wan't to make a clean install with Snow Leopard once the disk is up and running. But which to chose. It seems there are a lot of problems with the Seagate Momentus so I was looking at this one:
    http://www.edbpriser.dk/Product/Details.aspx?pid=667834
    Is that a good choice?

    hitachi? eeek!
    on your machine, the 7200rpm drive won't make much, if any difference, due to that mac only being SATA I. between the density of the 500gb disk & the bottleneck on the sata bus, the rpm difference isn't a factor...
    so don't worry about getting a 7200 drive. if you find one at a good price or something, then that's fine.
    I would go with a Western Digital or Seagate. haven't seen good luck with hitachi or toshiba drives in the past. but I've haven't had good luck with WD either & seagate has fallen considerably due to varying firmware issues across the board.
    any SATA I or II drive will work, but don't get one with the motion sensor built into the drive (all of them have shock protection of some sort) as these will cause problems with your mac & OS X usually as your mac already has a motion / fall sensor.

  • Finding the right map to load

    Would just like to note that it is very hard to find the right map when all you want is a city. For example, I am hoping that Lyon is in the France map:Center
    I would really like a way to locate the ma that is going to give me a city I am going to travel to.
    Regards,
    Michael

    It should be in Rhône-Alps as aspergerguy has mentioned..
    Check it out here..
    http://maps.ovi.com/#|45.7594|4.82897|3815|0|0
    Type ' Lyon, France' in the 'Type any address, business or place name box'.. and hit GO.. 
    --------------------------------------------------​--------------------------------------------------------​--------------------------------------------------​--If you find this helpful, pl. hit the White Star in Green Box...

  • Finding the right delimiter

    I have developed a cross-platform LabVIEW based application. It will run on Mac OSX, Linux and Windows. It needs to reliably detect the operating system it is running on to use the right delimiters for pathnames (I generate file names / folders based on other front panel input).
    I have been using a kludge of sorts to do this. I use a VI server reference and use the OS Name property node, wire it into a search / replace string VI and count the number of times a substring "Windows" is replaced. If the number of replacements is greater than 0, I know it is Windows. Else, I test for Linux. Do the same thing. Then if it is neither Windows nor Linux, I assume it is Mac OSX.
    This kludge which worked for the VIs running on Mac OSX and Windows, does not seem to work for the application compiled on Windows LabVIEW PDS (the absence of a gcc style cross-compiler for LabVIEW is a sort of a raw subject for me right now since NI forces developers to pick an OS by creating a needless barrier for cross-platform compilation, but we will not go into that). There are no other points in my code which detect the right delimiter to use (":" for Mac HFS, "/" for Linux filesystems and "\" for Windows FAT32 and NTFS).
    I imagine that there are folks here who have tried to something of the sort. Is there a Detect OS and Find the right Delimiter.vi that someone may have and want to share ?
    Solved!
    Go to Solution.

    You can use the Application.TargetOS property to determine what platform you are running on.
    You can also use a vi in vi.lib\Utility\libraryn.llb called 'Is Name Multiplatform.vi' to validate your file name.
    The Application.TargetOS property is used in this vi if you want an example.
    As mentioned, always use Build Path; it will be much safer than concatenating strings...
    Now is the right time to use %^<%Y-%m-%dT%H:%M:%S%3uZ>T
    If you don't hate time zones, you're not a real programmer.
    "You are what you don't automate"
    Inplaceness is synonymous with insidiousness

  • Where can I find the right LIB_DBSL.SAR??

    hi all,
        I want to connect to the other DBMS.The detail is: my BI application server DBMS is oracle, it  runs on linux,64 bit,and the target DBMS is MSS 2000.
        The question is where can I  find the right LIB_DBSL.SAR,could you give me a link address?
        Thx..

    Hi,
    You need to log in to  service marketplacewith S userID& password. After logging into SMP, we need to find the relevant Database to find the Shared libraries that is LIB_DBSL.SAR file & then need to unarchive in order to load the DB dependent shared libraries.
    Regards
    Venkat

  • HT3486 My Airport 6.1 can't manage my base station. I need to use AirPort Utility 5.6 but i can't find the right. I've download several but it always give me the same message: Airport uti....can't be installed... The version of OS X on this version is not

    My Airport 6.1 can't manage my base station. I need to use AirPort Utility 5.6 but i can't find the right download. I've been downloading several but it always after havingf instal the first 3 steps the same message: Airport utility....can't be installed... The version of OS X on this version
    doesn't support this base station...
    I need help please to find the correcte download so i can my wii-fii work as soon as possible (because my wife is making me crazy, she can't go on Facebook!!!! )
    Thank's for your help,
    Mike

    Use AirPort Utility 5.6 which contains the features you need. It is compatible with Lion as well as Mountain Lion, however, the installer app will refuse to install it on Mountain Lion.
    This dilemma is easily solved though. You simply need to extract the app from the installer package using a package extractor like Pacifist.
    Download Pacifist here: http://www.charlessoft.com/
    Download AirPort Utility 5.6 here: http://support.apple.com/kb/DL1482
    If you happen to have an archived copy of the AU 5.6 app somewhere, such as a Time Machine backup or equivalent, you can simply restore it or drag the app to your Mountain Lion system's Utilities folder. It will run without complaint. It is only the package installer that is the problem.
    Mountain Lion will not allow you to delete its existing version of AirPort Utility. Just ignore it. It and the older version (which will bear the unique name "AirPort Utility 5.6") can peacefully coexist.
    Note: For those with Leopard or Snow Leopard systems you need AirPort Utility 5.6.1 (this is confusing - a later AirPort Utility version for an earlier OS X version - but it is correct).
    Download AirPort Utility 5.6.1 here: http://support.apple.com/kb/DL1536

  • Trying to reset my password (which I have forgot) for elements 13 I have the serial no.  But I can't find the right website to reset? I have "copy & paste " into the browser.

    trying to reset my password (which I have forgot) for elements 13 I have the serial no.  But I can't find the right website to reset? I have "copy & paste " into the browser.

    Go to the main page of adobe.com and sign out if you're already signed in there. Then click Sign In at the upper right of the page. In the next page you will see a Forgot Password link:

  • Re: Satellite A660-12P - can't find the right display driver for Win XP

    Hey everyone, i need some help with this one:
    I just made a dual boot Win7 (x64)/XP (x86) on my laptop, but i can't find the right display drivers for the video controller VGA compatible on XP.
    Does someone know where i can find them?
    Many thanks,

    Yes, you get this message because you cannot install the nVidia rivers only executing the exe file.
    If you want to install such drivers then you have to do this in device manager.
    You have to force the notebook to choose the driver
    You can do this choosing the advanced installation procedure which helps you to point to the driver files!
    PS: might be helpful:
    http://forums.computers.toshiba-europe.com/forums/ann.jspa?annID=78

Maybe you are looking for

  • Imovie 09 - exporting options for HD and burning with iDVD

    I hope someone can be of help...here it goes I shoot my footage in 1080i and import as Full HD into Imovie 09. I would like to export the movie files in 1080i so that I can burn to bluray in the near future. However, I'm currently stuck with burning

  • Match up iTunes folders on 2 cpu's

    I have my laptop and desktop, each with different and some the same MP3 files. How can I sync the 2 so they both have the same files?

  • Exporting My Pages to HTML?

    How do I export the pages I create to HTML so that I can upload these from another program such as Homestead? Please advise.

  • BUG : ORA-21779 with REGEXP_INSTR function

    Hi, When we use REGEXP_INSTR in a validation with the primary_language = 'en-us' we get an Oracle Error : ORA-21779 We tried moving the REGEXP_INSTR in a stored function and we get the same error. When we change the primary language of the applicatio

  • How to use Picasa images

    On my Android, the program does not use the image provider. It tries to find folders with images, but fails. How can I use my Picasa images? R.G.