Coarse grained and fine grained

I want to now the difference b/wn coarse grained and fine grained entity bean, please explain me with some example

I think the name is self explanatory.However since u do not seem to be very clear i will try and explain.Suppose you have an person entity bean.There are essentially two ways to model the bean.
Essentially u need to identify the sub parts of this person bean.It would have a first name, last name, address, ph.num,ssn and so on.If you were to model this as a fine grained bean in that case you would have all of these as parameters and would be passing the required parameters in the corresponding create method.However the Address portion can comprise of a state,city street,house number and pin.If you were to make this a separate entity which would present a local interface and use a value object to create and return this, this design would make it a coarse grained bean.Hope it makes some sense,if you require any other clarifications i would oblige.
cheers
sicilian

Similar Messages

  • What does "coarse-grained" and "fine-grained" mean?

    I've seen these terms used in almost every pattern article, but I've never seen them defined. Can someone provide me the definitions for coarse- and fine-grained? Also, what are the pros and cons of each.

    it's an anology to sand or other particles. You can have sand that is very fine: small grains or you can have sand that is very coarse: large grains.
    A fine-grained approach is one uses lots of little Objects and a coarse-grained approach uses a smaller number of larger Objects. The reasoning for using a coarse grained approach is that it limits the 'chattiness' of the application. That is you don't have lots of little messages going back and forth, each one with it's own overhead.
    In practice, I've fouind the coarse-grained approach to not be that great. Chattiness is not that big of a deal anymore and big Objects take longer to load. Your application basically does squat while it waits for the be ball of wax and then it's got to disassemble it. If you use lot's of small Objects, the app can start working on them as soon as it starts receiving them.
    This isn't to say this doesn't have it's place, it's just not for every application.

  • Coarse-grained atomic actions

    I am trying to understand the difference between fine-grained and coarse-grained atomic actions is and what mechanisms guarantees that these actions are atomic?
    Would lets say method setBalance() be a coarse-grained atomic action?
    Thanks

    Googling coarse-grained atomic:
    From http://www.cs.arizona.edu/people/greg/mpdbook/glossary.html
    Atomic Action
    A sequence of one or more statements that appears to execute as a single, indivisible
    action. A fine-grained atomic action is one that can be implemented directly by a single
    machine instruction. A coarse-grained atomic action is implemented using critical
    section protocols.I know that some atomic classes were added in 1.5.0
    http://java.sun.com/j2se/1.5.0/docs/api/java/util/concurrent/atomic/package-summary.html
    I assume that under the covers they are coarse-grained, but you can probably treat them as fine-grained from the perspective of your use.
    I'd be interested in seeing what the real gurus have to say on this topic.
    � {�                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Coarse-grained object Design for Performance

    Hi,
    I’ve several 1-1 mapping between one coarse-grained object with several fine grained objects. In the DB all the fine-grained objects are stored in separate table. In my application the relationship between coarse-grained object and fine-grained objects will not be modified. In this scenario, for good performance which solution is better?
    Maintaining the 1-1 mapping between coarse-grained object and fine-grained objects OR adding all the attribute from the fine-grained objects into the coarse-grained object.
    Thanks
    -Mani

    Mani,
    The answer depends upon the data usage in your application.
    If these fine grained read-only objects are shared between your coarse grain objects then it may be more optimal to keep them as separate classes with 1:1 relationships. If these read-only classes are also of fixed and reasonable quantity (reference data) you could also pre-fetch them all into a full cache (identity map). Then as each course grain object is read the 1:1 relationships can be resolved in memory without additional queries.
    If you combine these objects all into one coarse gain object then you will have to pay the cost of a more complex multi-table join on each read. This may be more efficient if the fine grain objects are never or rarely shared between coarse grain objects. To be sure you will want to check with your DBA to see what they can measure as being more optimal for the given schema.
    If these are shared and/or reference data then you may also want to consider marking them as read-only in the project. That way they will not be considered for change tracking in the UnitOfWork. This should also provide an additional performance boost.
    Doug

  • Latest ep of my podcast doesn't show in iTunes. Subscribers CAN download it. Podcast page shows 'Total: 3 items' but lists only items 2 and 3. RSS feed is validated and fine.

    Latest ep of my podcast doesn't show in iTunes store. Subscribers CAN download it. Podcast page shows 'Total: 3 items' but lists only items 2 and 3. RSS feed is validated and fine. How do I get iTunes to display it?

    I've used Feedburner many times and never had such a problem. I am a bit confused, forgive me if I ask for questions already answerd. Have you tried updating the podcast in someone elses copy of iTunes? My guess is that the file is bad since it is working in other programs but not iTunes. I would try making a new .mp4 file and podcasting it and seeing if that works.
    Good luck!
    ~Ben

  • Just upgraded to Lion last night and it works very smooth and fine. The only problem was the WarCraft3.

    Just upgraded to Lion last night and it works very smooth and fine. The only problem was the WarCraft3 Frozen Throne. I was able to run the game but the home menu until the game starts, it becomes black instead of blue. Before, it works very fine on Snow Leopard.

    Have you contacted the vendor? Have you perused the game's online forums?

  • Can one move or upload a garageband project done on an iPad into logic for further and finer tweaking?

    Can one move or upload a garageband project done on an iPad into logic for further and finer tweaking?

    Share your GarageBand iPad project to iTunes as a project. Then you can import it into GarageBand and upgrade it to a GarageBand Mac project. And Logic can open GarageBand for Mac projects.

  • What does itm and fin mean

    What does itm and fin mean in the file name?
    Thanks
    John

    They are in my "all Movies" folder, and the kind is Final Cut Express Movie file.
    If they are render files and I'm done with that project can I delete them to save space?
    Space on my HD is an issue.
    Thanks

  • Coarse-grained Web Service

    Hi all,
    I noticed, that services in the ES Workplace has small and clear interface. But if i want to develop a complex UI,  let's say object hierarchy contains many levels. How will it be implemented as Web Service? One big Web Service?
    If i have fine-grained Web Service, than i must always save data on DB, as Web Service may requere ID. But it is not the way for UI.
    This restriction is based on the fact, the Web Services must be stateless.
    Regards
    Paul

    well,
    probably things are just a matter of taste.
    I am from time to time building dynamic UIs in a completely SAP agnostic environment by combining calls to several SAP (custom made ones) and non SAP services.
    Personally I did not like BAPIs at all. To call a commit explicitly seemed very anachronistic to me.
    Also I did never ever feel a need to testrun an operation. To my knowledge no enduser wants to <b>test</b> if e.g. a purchase order could be created or not. To me the usual way is to have actual data (availability, pricing, etc...) checked already (which is not determined by a testrun but via Get services) and then try to create that order...with two outcomes, either the order being created sucesfully and a receipt returned or or the order not being created sucesfully and a meaningful error condition returned hinting me on how to overcome that condition.
    To me the possibility to automatically create service consumers (clients) in almost every language (programming environment), get the data type mappings and the transport layer stuff done automatically and having an interface and service description (WSDL) which is (at least in theory) understandable by the SAP agnostic puts web services so far ahead of BAPIs, that IMHO they are not comparable at all.
    regards, anton

  • Why are some of my pages viewing blank when opened in one Adobe Reader and fine in another?

    Why does my PDF file that I created in Adobe Illustrator view fine in my Adobe Reader but some of the pages are viewing blank for my customer who lives in Australia.  This is the first time I have encountered the problem and I am at a loss how to fix the problem.  Any suggestions or help would be much appreciated.  Is this a setting problem or a glitch in her version she is using Adobe Reader 9?  I deal with customers all around the world and need to figure this out so it does not happen again.

    Hi Graffiti,
    Thanks so much for your resply.  I am happy to say that the problem has been fixed by my customer updating her version of Adobe Reader 9 to the latest version.  I had sent her a few suggestions on how to try to fix the problem including that one from info I had read on the forum etc.. and that was the solution that worked.  I am so relieved that I was able to fix the problem and to answer your question the blank pages were only graphics no text but they were the only pages that the graphics took up the whole page.  I thought that was strange and had her change a setting in preferences for printing large images a solution I read in the forum but it did not work.   

  • WorkFlow and Fin Apps

    I am trying to support the Fin Apps environment. Developers are telling me that they need to use the "APPS" account to manage and maintain the workflow components. I would like to give them another account with the proper privileges. Is this possible or is there a specific need that only the APPS account can handle?

    This is actually true for all custom PL/SQL objects, that they can be stored in the APPS schema. Although you could store them in a separate account if you want, you just need to realize that they will be executed from the APPS account and you will have to create synonyms, grant permissions etc.
    I am trying to support the Fin Apps environment. Developers are telling me that they need to use the "APPS" account to manage and maintain the workflow components. I would like to give them another account with the proper privileges. Is this possible or is there a specific need that only the APPS account can handle?

  • MacBook Pro Photoshop CS4 not smooth zooming and fine lines are broken

    I got a new MBP 15" about a month ago and am also running Win XP via bootcamp. On the Windows side Photoshop CS4 will not smooth zoom and if I zoom out, fine lines are broken apart and only partially show. When I go into the performance preferences enable opengl is checked and under advanced, advanced drawing is checked, but the use for image display is grayed out no matter what I do.
    On the Mac side it works fine using either the 9400 or 9600 chipsets so considering Windows uses the 9600M GT which is the discrete one, it should work.
    There's no driver updates here on Apple.com and Nvidia.com says there is an update available, but when it tries to install it says the hardware isn't supported... even though on the screen before it says it is.
    Any suggestions would be much appreciated

    Anybody have any suggestions?

  • JPG file opens fine on server and fine in Google Chrome but Upside Down in IE11

    We have a jpg file that is on a server. When you link directly to the file so that there is no HTML or CSS code, it opens fine in Google Chrome but IE is flipping it upside down.  I have access to the server itself, the computer with the jpg file on
    it, and when I open it in file explorer (not internet explorer) it opens in the default picture view program just fine.  The picture was taken with an iPhone.  Is there a way to disable this unwanted picture flipping in IE?

    In Windows try right clicking on an iPhone photo and selecting Properties -> Details Tab.
    Scroll through the list of EXIF metadata.
    Now open the same photo in a decent EXIF viewer and see how much extra EXIF metadata is presented.
    The image below highlights one piece of metadata not exposed by Windows - orientation.
    To avoid problems try deleting all but the most basic metadata. See for example
    http://www.makeuseof.com/tag/3-ways-to-remove-exif-metadata-from-photos-and-why-you-might-want-to/

  • Error BI Apps HR and Fin full load - ORA-04030: out of process memory......

    Hi Experts,
    I loaded HR it went well, but now I am trying to load both HR and Financial Full load. I am getting below issue for some DAC tasks:
    ORA-04030: out of process memory when trying to allocate 1049100 bytes (kxs-heap-w,kllcqgf:kllsltba)
    Environment:
    Source System:
    Win server 2008 - 2 GB RAM; EBS R12.1.1.
    Target System:
    Windows Server 2008 32 bit (with /3G, /PEA switches enabled) – 4 GB RAM; obiee 10g;biapps 7.9.6.2;dac 10.1.3.4.1;Informatica PC 8.6.1 Hotfix 11;Oracle DB 11.1.0.7.
    DAC Tasks that failed:
    TASK_GROUP_Extract_GLLinkageInformation
    SDE_ORA_GL_COGS_LinkageInformation_Extract
    SDE_ORA_GL_AP_LinkageInformation_Extract
    SDE_ORA_GL_AR_REV_LinkageInformation_Extract
    SDE_ORA_GL_PO_LinkageInformation_Extract
    All the above tasks are failing with above error.
    Below are the memory parameters for BI Apps database:
    SQL> show parameter target
    NAME TYPE VALUE
    archive_lag_target integer 0
    db_flashback_retention_target integer 1440
    fast_start_io_target integer 0
    fast_start_mttr_target integer 0
    memory_max_target big integer 820M
    memory_target big integer 820M
    pga_aggregate_target big integer 257374182
    sga_target big integer 0
    I also tested by increasing below parameters:
    memory_max_target 2G
    memory_target 2G
    pga_aggregate_target 1G
    sga_target 900M
    But it didn’t work, same errors.
    Please let me know how can I solve this issue. Thanks for your time.

    The below text is from doc id, I've picked solution part
    let me know updates
    =====Start======================
    Solution
    NON-ORACLE SOFTWARE STEPS
    1.If you have 4Gb or less of RAM, add more RAM to the 32-bit computer system (add another 4Gb or more, if possible).
    2.Enable the /3GB in the BOOT.INI, see note:
    Note 225349.1 Implementing Address Windowing Extensions (AWE) or VLM on Windows Platforms
    3.If using MS-Windows Enterprise Edition, enable Physical Address Extensions (PAE) by adding the /PAE switch to the BOOT.INI, see note Note 225349.1.
    NOTE: The Windows tool Perfmon should be used in ORA-4030 problems on Windows. Task Manager is not a reliable tool to investigate ORACLE.EXE process memory size.
    ORACLE SOFTWARE STEPS
    Steps for both Enterprise and non-Enterprise Editions of MS-Windows
    1.Check for excessive INACTIVE sessions:
    select sum(PGA_ALLOC_MEM) from v$process p, v$session s where p.addr = s.paddr and s.status = 'INACTIVE';
    If this query returns a large value (i.e. several hundred Megabytes or even greater that 1 Gigabyte), then it is recommended that you automate the cleanup of INACTIVE sessions. To see how this works, see notes;
    Note 151972.1 Dead Connection Detection (DCD) Explained
    Note 159978.1 How To Automate Disconnection of Idle Sessions
    Implement DCD & IDLE_TIME, by doing the following;
    Set SQLNET.EXPIRE_TIME = x (minutes) in the Server SQLNET.ORA file,
    Create a PROFILE with IDLE_TIME set, and assign it to users.
    If you find that the processes remain with status SNIPED, then you will need to implement removal of those processes as well, see note:
    Note 96170.1 Script for killing sniped sessions shadow processes
    For more information, see Note 601605.1 A discussion of Dead Connection Detection, Resource Limits, V$SESSION, V$PROCESS and OS processes
    2.Review Note 46001.1 and determine the pro's and con's of running ORASTACK against the ORACLE.EXE.
    If appropriate, shut down the database, and run the following command in an MS-DOS window:
    orastack oracle.exe 500000
    Re-start the database.
    Steps for Enterprise Editions of MS-Windows
    Determine if using AWE would fit your database needs. This allows the Buffer Cache component in the SGA to be relocated above the 4Gb memory footprint for the ORACLE.EXE process. Since this configuration requires a virtual memory window to map memory allocations above the 4Gb memory area, this option fits best with database requirements for a 1G and up sized Buffer Cache. It would not be efficient to have a 400M Buffer Cache above the 4Gb memory footprint and yet allocate a 1Gb virtual memory window to map to that memory.
    1.Decide on the size of the SGA, PGA requirements and AWE (default 1Gb), given 300Mb overhead for the ORACLE.EXE and the 3Gb memory limit (as per the BOOT.INI /3GB switch). Please note that the minimum AWE size depends on the number of CPU's, see note Note 225349.1.
    - Grant OracleService<SID> the 'Lock Pages in Memory' system privilege at the operating system level, see Note 225349.1.
    - If necessary, change the Address Windowing Extensions (AWE) size from the default 1Gb, see Note 225349.1.
    - Adjust any of the other SGA memory settings; SHARED_POOL_SIZE, LARGE_POOL_SIZE, JAVA_POOL_SIZE & STREAMS_POOL_SIZE.
    - Adjust the PGA memory setting, PGA_AGGREGATE_TARGET. NOTE: This is a target, so a decrease in this process will not directly affect the memory footprint of the ORACLE.EXE.
    - Unset SGA_TARGET and/or MEMORY_TARGET (11g).
    - Set USE_INDIRECT_DATA_BUFFERS=TRUE.
    - Unset DB_CACHE_SIZE. Set DB_BLOCK_BUFFERS to the desired size (this will use memory above the 4Gb range).
    2.Start the database.
    Steps for NON-Enterprise Editions of MS-Windows
    1.Decide on the size of the SGA and PGA, given 0.1Gb overhead for the ORACLE.EXE and the 3Gb memory limit (as per the BOOT.INI /3GB switch).
    2.Adjust the SGA_TARGET and/or MEMORY_TARGET (11g), or use explicit settings for the SGA components and eliminate auto-tuning. NOTE: Advantages of auto-tuning are often minimal on Windows 32-bit due to memory limit issues.
    3.Adjust the PGA memory setting, PGA_AGGREGATE_TARGET (optional on 11g). NOTE: This is a target, so a decrease in this process will not directly affect the memory footprint of the ORACLE.EXE.
    4.Start the database.

  • How the prodution order start and finis dates are changeing...?

    Dear friends,
    It was observed that one of my client's production order start and finish dates are changing frequently.
    No user is claiming the responsibility, I feel very dificult to to find out who did the changes.
    When I  observed, it is happening for orders if we Revert the Teco, and that to for those orders which doesn't have the sale order assignment.
    and some times it is not happenign for  even for the orders which does not have the sale order assignment also.
    Here it is having Forward type Sheduling.
    Please help me how and when , the prodcuction orders start and finish dates will get changed.

    Dear RS,
    Plz check in AUT10, by giving t-code CO02 for order changes
    in AUT10, u can track user id also
    this may help you to some extent
    Regards
    kumar
    Edited by: kumar kumar on Sep 17, 2009 8:32 AM

Maybe you are looking for

  • Error while running a Servlet program in Eclipse IDE

    Hi, I have tried running the following program in the Eclipse Editor. It doesnt compile. I have installed the Tomcat plugin too. import javax.servlet.*; import javax.servlet.http.*; import java.io.*; public class HTTPGetServlet extends HttpServlet {

  • Access to Entity Service from Portal Application

    Hi Experts, I have a hybrid application which will be making use of both Web Dynpro and Portal Applications. I decided to use Entity Services to store my back-end data and can access it fine from the Web Dynpro project. I have included the public par

  • Fi-mm intergration

    SAP guru's:- in fi-mm procurement flow in the one step is the PRODUCTION receipt: stock finished goods a/c...... Dr To stock increasing/decreasing finished goods a/c |-->if the Production order,. GBB ZAF, And if the not production order GBB ZOF , is

  • How can I back up my I Tunes library to an external hard drive?  Also how do I add my new content to the back up?

    How can I back up my I Tunes library to an external hard drive?  Also how do I add my new content to the back up?

  • Need Email Notification of Job Completion Status

    Hi experts, this is 10.2.0.4 on the Windows platform I have a simple little job that has Job Type: RMAN Script Backup Database plus archivelog; I have installed UTL_MAIL. How can I have Oracle send an email to me when the job fails? ( This is not a S