I need a clarification : Can I use EJBs instead of helper classes for better performance and less network traffic?

My application was designed based on MVC Architecture. But I made some changes to HMV base on my requirements. Servlet invoke helper classes, helper class uses EJBs to communicate with the database. Jsps also uses EJBs to backtrack the results.
I have two EJBs(Stateless), one Servlet, nearly 70 helperclasses, and nearly 800 jsps. Servlet acts as Controler and all database transactions done through EJBs only. Helper classes are having business logic. Based on the request relevant helper classed is invoked by the Servlet, and all database transactions are done through EJBs. Session scope is 'Page' only.
Now I am planning to use EJBs(for business logic) instead on Helper Classes. But before going to do that I need some clarification regarding Network traffic and for better usage of Container resources.
Please suggest me which method (is Helper classes or Using EJBs) is perferable
1) to get better performance and.
2) for less network traffic
3) for better container resource utilization
I thought if I use EJBs, then the network traffic will increase. Because every time it make a remote call to EJBs.
Please give detailed explanation.
thank you,
sudheer

<i>Please suggest me which method (is Helper classes or Using EJBs) is perferable :
1) to get better performance</i>
EJB's have quite a lot of overhead associated with them to support transactions and remoteability. A non-EJB helper class will almost always outperform an EJB. Often considerably. If you plan on making your 70 helper classes EJB's you should expect to see a dramatic decrease in maximum throughput.
<i>2) for less network traffic</i>
There should be no difference. Both architectures will probably make the exact same JDBC calls from the RDBMS's perspective. And since the EJB's and JSP's are co-located there won't be any other additional overhead there either. (You are co-locating your JSP's and EJB's, aren't you?)
<i>3) for better container resource utilization</i>
Again, the EJB version will consume a lot more container resources.

Similar Messages

  • HT2534 can you use paypal instead of credit card for iTunes

    just got an Ipad & am trying to download apps but can't as I need to give credit card details.  Can you use paypal instead of credit card?

    Sad but true, I've tried to pay for iTunes Match with my credit and couldn't because it's a subscription service, regardless the credit amount I have. The system ask me to pay with my credit card too.
    How are Family Sharing purchases billed?
    When you initiate a new purchase, it will be billed directly to the family organizer's account, unless you have gift or store credit. First, your store credit will be used to pay the partial or total bill. The remainder will bill to the family organizer. iTunes Store credit on your account isn't shared with other family members. So if the family organizer has a $50 credit on their account and another family member initiates a purchase, it won't deduct from the organizer's iTunes Store credit, but will bill the organizer's credit or debit card.
    How iTunes Store purchases are billed

  • How can I use two single-dimensional arrays-one for the titles and array

    I want to Use two single-dimensional arrays-one for the titles and one for the ID
    Could everyone help me how can i write the code for it?
    Flower
    public class Video
    public static void main(String[] args) throws Exception
    int[][] ID =
    { {145,147,148},
    {146,149, 150} };
    String[][] Titles=
    { {"Barney","True Grit","The night before Christmas"},
    {"Lalla", "Jacke Chan", "Metal"} };
    int x, y;
    int r, c;
    System.out.println("List before Sort");
    for(c =0; c< 3; ++c)
    for(r=0; r< 3; ++ r)
    System.out.println("ID:" + ID[c][r]+ "\tTitle: " + Titles[c][r]);
    System.out.println("\nAfter Sort:");
    for(c =0; c< 3; ++c)
    for(r=0; r< 3; ++ r)
    System.out.println("ID:" + ID[c][r]+ "\tTitle: " + Titles[c][r]);

    This is one of the most bizarre questions I have seen here:
    public class Video
    public static void main(String[] args) throws Exception
    int[] ID = {145,147,148, 146,149, 150};
    String[] Titles= {"Barney","True Grit","The night before Christmas", "Lalla", "Jacke Chan", "Metal"};
    System.out.println("List before Sort");
    for(int i = 0; i < Titles.length; i++)
       System.out.println("ID:" + ID[i]+ "\tTitle: " + Titles);
    System.out.println("\nAfter Sort:");
    for(int i = 0; c < Titles.length; i++)
    System.out.println("ID:" + ID[i]+ "\tTitle: " + Titles[i]);
    Generally you don't use prefix (++c) operators in you for loop. Use postfix (c++).
    Prefix means that it will increment the variable before the loop body is executed. Postfix will cause it to increment after.

  • Sharepoint 2013 - Can I use Visual Studio 2012 express edition for web-parts and app parts?

    I am new to sharepoint 2013. I want to develop the app and web parts using visual studio 2012 express edition. Can I use vs 2012 express edtion to create app and web parts for sharepoint 2013?

    Unfortunately no, check this post:
    http://sharepoint.stackexchange.com/questions/52338/sharepoint2013-development-with-vs2012-express
    To build SharePoint 2013 webparts/apps you will need the 'Microsoft Office Developer Tools for Visual Studio 2012', which do not come as part of Visual Studio.  The tools require Visual Studio 2012 Ultimate, Premium, or Professional.
    The tools and prerequisites can be found here:
    http://msdn.microsoft.com/en-us/office/apps/fp123627.aspx
    Brandon Atkinson
    Blog: http://brandonatkinson.blogspot.com

  • Can I use my  mac /picasa at classes for PC picasa are they much different, thanks

    Hi I am going to class for Picasa, but on PC,s Is  it much diferent ,can I take my laptop or use theirs. Thank you

    I don't use Picasa, but is there really that much difference between the Windows and the Mac version?
    Clinton

  • Can I use the same external hard drive for time machine and storing other files

    I have a 640GB external hard drive that I have been using for over a year for time machine backups.  My mac hard drive is now starting to fill up and I am looking to move audio, video and picture files to my external hard drive.  How do I do this without messing up my time machine backups?  Can I do both on the same external hard drive?  Do I just make new folders on the external hard drive to move the files I want?  Thanks for the help.

    If you move the files you will need to get another disk to back the files up to. You don't want to have only one copy of certain files (personal, professional etc.).

  • Can I use one 2tb external hard drive for time capsule and file storage?

    I would like to use time capsule, but also keep the hard drive on my desktop for file storage. Can I do this?

    Apple advises against doing that.
    Any data stored on the disk that Time Machine is backing up to can not be backed up.
    Plus the data outside of the Time Machine backup database cause problems when Time Machine starts cleaned up old backups to recover space for new backups.
    For these reason it is advised that the Time Capsule disk be used for one or the other but not both.
    Allan

  • Can a OLAP Cube be Processed in to RAM , Can this be done using Traditional BI ? , If we can place the entire SSAS Cube in RAM for better performance , how can it be done?

    I'm trying to increase the performance of my OLAP Cube and i thought placing the CUbe entirely in RAM can solve this problem. can anyone please answer me , if this can be done using Traditional BI i.e SSAS and how?

    Hi Nagarjuna:
    I do not believe you can load the entire cube into RAM and even if you were able to do so, I don't think you'll be able to solve you performance issues.
    Here is a thread with the same discussion and it has some good links that you can visit to learn more about where the performance issues are emanating from  -
    How to cache all SSAS 2008 cube processed data into RAM
    Also, please tale a look at the followoing guide - Analysis Services Performance
    Guide
    Hope this helps.
    Faisal Muhammed My Blog

  • Can I use my phone number in imessage for both iphone and ipad in the same chats?

    I want to use iMessage from my ipad with my phone number not with my e-mail because most of my friends have not my e-mail under my name in their phones.
    So what I want to is being able to talk in the same chat from my ipad and iphone with out showing my e-mail to the person who I'm talking with because that making the chat appears one to me but two to him.
    Thank you and sorry for bad English ;)

    On I pad it only work with E mails because the I Pad is not associated with your cell phone number.

  • Can you use SQL as a data source for a project in the same way you can in Excel?

    Excel allows you to create a data source that executes a SQL stored procedure, display that data as a table in a spreadsheet and have that data automatically refresh each time you open the spreadsheet. Is it possible to do the same thing in MS Project, displaying
    the data from the stored procedure as a series of tasks?
    Here's what I'm trying to do - I have a stored procedure that pulls task data meeting a specific criteria from all projects in Project Server. We're currently displaying this data as an Excel report. However, the data includes start dates and durations so
    it would be nice to be able to display it as a Gantt Chart. I've played around with creating a Gantt chart in Excel and have been able to do a very basic one, but it doesn’t quite fit our needs.

    No, You can not use sql as a data source for a project.
    You have 3 options to achieve it:
    1. You can create a Sharepoint list with desired column ,fill desired data in that list then you can create a MS project from Sharepoint List.
    2. You can create a SSRS report in which you can display grantt chart Joe has given you that link.
    3. You can write a macro in MPP which will take data from your excel. In excel you will fetch data from your stored procedure. write a schedule which will run every day to update your data or
    create an excel report in which will update automatically and write macro in mpp which will fetch the data then publish it so that it would be available to team members.
    kirtesh

  • How can I use EJB component on Weblogic 8.1 server ?

    hi,dear sir:
    How can I use EJB component on Weblogic 8.1 server ?
    It need client jar to invoke ejb,but what will I to do for this jar file? what does it contain? format ?
    If my EJB module contain 100 session bean and 50 Entity bean,but I want invoke 20 session beans in my module, how can I to do?
    thank you...

    Hi,
    This forum is exclusively for Creator. please post this on appropriate forum
    regards
    CreatorTeam

  • Can we use ejb in struts framework?

    can we use ejb in struts framework?I need the reasons for both yes or no answers.

    This question is not appropriate for this forum, which deals with the J2EE SDK. Have you looked at the Struts documentation? Have you performed a Google search? If you had, you would have found the answer....
    -Ian Evans

  • TS3474 iTunes has detected an iPod that appears to be corrupted. You may need to restore this iPod before it can be used with iTunes. You may also try disconnecting and reconnecting the iPod.

    What do I do about this message? I've restored it 3 times, but this message still comes up, and i cannot put music on it now.
    iTunes has detected an iPod that appears to be corrupted. You may need to restore this iPod before it can be used with iTunes. You may also try disconnecting and reconnecting the iPod.

    Sounds like your iPod is broken. Take it to Apple or someone else who repairs iPods and see if you can get it fixed, or get it replaced.

  • Burner not working, 8.98 GB free, can this 2003/2004 imac model be cleaned for better use or will I continue to have problems?  Do I need to just buy a new one?

    burner not working, 8.98 GB free, can this 2003/2004 imac model be cleaned for better use or will I continue to have problems?  Do I need to just buy a new one?  I remember with a PC being able to defrag.

    You could buy an external dvd/cd drive.
    Suggest other world computing.
    You need to delete some files.  Many posters to these forums state that you need much more free space: 5 gig to 10 gig or 10 percent of you hd size.
    (0)
    Be careful when deleting files. A lot of people have trashed their system when deleting things. Place things in trash. Reboot & run your applications. Empty trash.
    Go after large files that you have created & know what they are.  Do not delete small files that are in a folder you do not know what the folder is for. Anything that is less than a megabyte is a small file these days.
    (1)
    Run
    OmniDiskSweeper
    "The simple, fast way to save disk space"
    OmniDiskSweeper is now free!
    http://www.omnigroup.com/applications/omnidisksweeper/download/
    This will give you a list of files and folders sorted by size. Go after things you know that are big.
    (2)
    This will save you a gig of space.
    Monolingual is a program for removing unnecessary language resources from Mac OS X,in order to reclaim several hundred megabytes of disk space. It requires at least Mac OS X 10.3.9 (Panther) and also works on Mac OS X 10.4 (Tiger). It worked for me on 10.4
    http://monolingual.sourceforge.net/
    A detailed write-up on how to use Monolingual:
    http://www.jklstudios.com/misc/monolingual.html
    (3)
    These pages have some hints on freeing up space:
    http://thexlab.com/faqs/freeingspace.html
    http://www.macmaps.com/diskfull.html
    (4)
    Buy an external firewire harddrive.
    (5)
    Buy a flash card.

  • Can I use 2 apple ID's in my iPhone, iPad and PC ?

    Hello
    Can I use 2 apple ID's in my iPhone, iPad and PC ?
    I will explain better my situation I had my US Apple market for 5 years I had alot of apps, music and movies I bought.
    the issue is i might be reloacte to Canada and I would like keep my US account and open a Canadian account apple market but I read on internet you can not have 2 Apple ID's withouth a restricion of 90 days.....I don't undertand that part ......
    Please explain me how i can have 2 account in 2 direfent countries ??
    Because I need th US account for updates my apps or buy some US apps but also I would like buy native Canadian apps........
    I don't have iTunes match or automaitc donwload.
    Thanks in advance for your answer Thanks again  !!!

    Settings>Store...tap the ID shown...sign out...now sign back in with the ID you want to use.

Maybe you are looking for