New to j2ee...should i use ejbs?

read on coz this can be interesting.....
I am an inexperienced web developer. i am looking to develop a web application where tickets can be sold over the net.
one of my immediate goals is to develop a web application where users can book tickets only not purchase them.currently the web app needs to facilitate for a max of 200 users-people who can book tickets, think of them as admin.
in the long term the web app will evolve and cater for all users, internet users and admin.i think i need to use ejbs.i want to start with the immediate goal(facility for admin) and build on that to facilitate internet users.the web app will be huge when complete.
now, the problem is that i have only developed a tiny j2ee project prior to this and that wasn't a web app-it was just a normal application. i don't have the experience(OBVIOUSLY).i don't even know how to deploy a web app or which app server to use(i have downloaded the sdk1.4)!
i am thinking about developing the admin facility with just using javabeans,servlets,html,jsp and tomcat4.1.30-all of which i am comfortable with.
what is a feasible solution to my problem considering that the longterm will only be achieved after a period of 2-3 years???(hopefully, by then i will have the experience :-)).
How should i go about it?
you know this can be a forum on its own!!!!
Don't be shy to contribute....
regards
Ushanta

EJB are certainly not needed.
I've worked on creating an e-commerce site which runs successfully without any EJB and am now working on a very large web application (intranet style) which is selling well and doesn't use EJB (this app has over 500 JSPs and nearly a thousand classes by now and is still growing, to give an idea of scale).
EJB are often overblown. There was a study (Gartner I think) in 2001 which calculated that in the US alone there had been $2 billion wasted on EJB projects that didn't need EJB (projects either failed because EJB were used or would have been cheaper implemented without them).
That was before EJB REALLY took off as a hype...
Start without. If you find yourself in a situation where you have a definite business requirement for them you can always implement some for the limited use you do find.

Similar Messages

  • Why should I use EJB

    Hi,
    My name is Gandharv Sirohi. I am a student, and new to EJB. I want to know why should I use EJB, before I can start learning it if every thing can be done using Java Servlets and JSP.
    I tried to find out the answer to this question in books but there is no satisfactory answer.
    Can some body help me understand this simple question. I will be thankfull

    Hi gandharv,
    It's true there are a lot of services available to both the web tier and the EJB tier. One of the
    real strengths of EJB is support for transactional business logic. Web components can
    explicitly demarcate transactions via UserTransaction, but container-managed transaction
    support in EJB components at the business method level offers a much simpler approach
    for developing and maintaining such applications. An example of some EJB services not available
    in the web tier are : method-level security, RMI-IIOP access, message-driven beans,
    transactional/persistent timer service, stateful components, extended container-managed
    persistence contexts, guaranteed single-threaded execution, and interceptors.
    Of course there are many services available to the web tier that are not in EJB. It's not
    about picking one of the two that should always be used. Like any tool/technology, each has its strengths, weaknesses, and design center.
    --ken                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Mixing a playlist in Garage Band - which "new project" template should I use?

    If I use "podcast" it gives me some unnecessary options, such as male/female track.
    If I just want to mix some tracks from a playlist in itunes, which new project template should I use?
    Thank you.

    Hello Jerry,
    to insert something right into the middle of a mix I like to use the Arrangement Track:
         Track -> Show Arrangement Track (or Shift-⌘-A)
    By clicking the "+" you can mark sections of your arrangement and adjust the size of the sections by dragging the ends. In this example I marked two sections "Part 1" and "Part 2", and a third section "insert" to be inserted right in the middle between my first sections. You then can drag the "insert" section in the arrangement track between the other two parts, and all tracks with all Automations will move along.
    This is very convenient, if you have several tracks with automations added. If you only have one track without any automations it might suffice to simply select the regions behind the insertion point and to shift them to the right to be able to insert the missing region.
    Good Luck
    Léonie

  • SHOULD I USE EJBS?

    read on coz this can be interesting.....
    I am an inexperienced web developer. i am looking to develop a web application where tickets can be sold over the net.
    one of my immediate goals is to develop a web application where users can book tickets only not purchase them.currently the web app needs to facilitate for a max of 200 users-people who can book tickets, think of them as admin.
    in the long term the web app will evolve and cater for all users, internet users and admin.i think i need to use ejbs.i want to start with the immediate goal(facility for admin) and build on that to facilitate internet users.the web app will be huge when complete.
    now, the problem is that i have only developed a tiny j2ee project prior to this and that wasn't a web app-it was just a normal application. i don't have the experience(OBVIOUSLY).i don't even know how to deploy a web app or which app server to use(i have downloaded the sdk1.4)!
    i am thinking about developing the admin facility with just using javabeans,servlets,html,jsp and tomcat4.1.30-all of which i am comfortable with.
    what is a feasible solution to my problem considering that the longterm will only be achieved after a period of 2-3 years???(hopefully, by then i will have the experience :-)).
    How should i go about it?
    you know this can be a forum on its own!!!!
    Don't be shy to contribute....
    regards
    Ushanta

    There has been no rebuttal because I don't go looking
    for arguments on forums. As much as you detest people
    "hawking their wares" on forums, I detest people using
    developer forums as soapboxes.My dear, if I wanted to use fora as a soapbox, I'd certainly pick a better and more trafficked spot than this one. And, if you'd bother checking my posting history, you'd see that I do quite a bit more than beat up on poor defenseless vendors. Your posting history is quite easy to see: 1 - pitch a product, 2 - try to play bait-and-switch.
    The developer I was trying to help stated:
    I am an inexperienced web developer. i am lookingto develop a web application where tickets can be sold
    over the net.
    "Inexperienced" is the key word here. The developer
    can go out and try to learn EJB or whatever other
    technology they think they can use to solve the
    problem at hand. Then months later after they are
    capable of writing the scalable applications you
    describe, they can begin development. Or, they can
    download MyProduct and build their application in
    a week or two.See the post by PinkyDead. He/she sums it all up in the first senence. Quicker != better
    You are obviously unfamiliar with MyProduct but
    are arguing its usefulness and abilities. I suggest
    you try it before you criticize.I've used more RAD tools than I can even remember. Probably more than you can even name. And you know what? In every situation, in every circumstance, in every scenario, in every job, all those nice little point-and-click apps had to be fixed by hand because the RAD tool simply could not take all the variables of a given UseCase into account. I still use RAD tools, but I know what I'm doing and am able to overcome the short-comings of the tool. I use code generators, diagrammers, GUI builders, etc. -- but I am in no way fooled into thinking that just because I have some functionality working that my job is done.
    MyProduct does not eliminate the need for expert
    J2EE developers. Your job is safe.I'm not worried about my job - I'm worried that I may be trusting some portion of my private data to some "clever" CIO who has bought into the whole Silver Bullet concept and is using inexperienced programmers and NameOfProductHere to build the apps that keep my data safe. I cringe at the very thought that some of the infrastructure governing the world's business, both governmental and financial, is predicated on the exact premise you stated above. I would much rather believe that there was significant time, money, and expertise employed with a bit of foresight applied, not some quick-and-dirty approach that kinda sorta works like it's supposed to.
    I'm sure your product does exactly as advertised - what I'm saying is that it is not the "best" way to build a fully-capable Enterprise application that can handle thousands of transactions per hour. It might be a good place to start, but you have to know what you're doing to make it work good -- "good enough" is not enough.

  • I have new hard drive, should I use migration assistant before I install Snow Leopard or install Snow Leopard first?

    I just had a new hard drive installed after a hard drive failure.  I need to install Snow Leopard, Lion and VMware Fusion.  Should I use migration assistant to reinstall my old files and applications first or should I install the new Operating Systems first?  Some of the old files do have corrupt data and I will have to pick and choose what back-up files I re-install.

    Pondini wrote:
    memalyn wrote:
    Some files were backed up on another external drive but not all.
    How was that done? Drag & drop?  An app like CarbonCopyCloner or SuperDuper?
    Initially files were backed up on the iMac with Time Machine.  I purchased a My Book external hard drive and after doing a full back up on it, I began doing all of my incremental back ups on it using Time Machine.  Sometime later, I purchased a Western Digital external hard drive that included back up software on it  called "WD Back-up" so I could use it to store all of my Music and Audiobooks on to keep my iMac and My Book free of those file types.  The WD Backup software allowed me to pick and choose what files I wanted to back-up.  I don't think I had been backing up Music and Audiobooks on the Mac anyway or maybe I was, I don't remember if I can selectively pick and choose files with Time Machine - I have not checked as I have not yet plugged it into my new hard drive.  Once The My Book drive became full with regular back ups, around June or so I had to switch over to the WD Back up drive.  I recall that I was very concerned that I could not do a full back up on the WD drive because if I did, I would have to reformat the drive and I did not want to do that, so I think I was able to selectively back up some additional files from my iMac but again, I do not know for sure since I have not looked at what is on the drive.  I do know that if I was able to back up additional files I had to do it with WD Back up and not Time Machine, if that matters.
    I know that the files in the partitioned drive and files associated with VMware Fusion are damaged.  If I do a full restore, it will restore the VMware Fusion app and partioned drive
    We need some clarification:
    Do you mean there were 2 partitions on your internal HD? If so, how was the second one formatted?  Was it backed-up?
    No, there was only one partitioned drive.  The way I understand it is the VMware Fusion software does the partitioning and the app resides on the Mac.  After that was done, I then installed the Windows software on the partitioned drive.  There is a critical file on the Mac under a Folder called Virtual Machines and in the Virtual Machines folder, the "Windows Bundle" or some such thing keeps locking each time the software crashes due to the problem files somewhere within the files in the VMware Fusion software that (I think resides) in the Windows environment that I cannot access.  The Virtual Machine file on the Mac gets backed up so the Windows Bundles files get backed up and that includes all the screen shots (essentially backups) of the Windows environment.  The Windows environment includes some of the apps and their data in Windows such as Quicken.  Theoretically, the partitioned drive does not get backed up but in reality if the screen shots do, some of the partitioned drive does - corrupt or not. If you have a Quicken file open and a drop down screen in Quicken frozen when the system crashes, that is what gets backed up and there is no way you can get back into Windows or Quicken.
                   If I do a full restore, it will restore the VMware Fusion app
    If you restore an OSX volume, yes, that will restore all apps, but that's not necessarily bad.  If necessary or desired, you can always delete or reinstall a suspect app.  That way, all your other apps will be ok.  For most users, reinstalling all apps is a considerable project.  See Transferring  Applications for an explanation.
    Well, that is true.  To reinstall VMware Fusion, Windows and Quicken would much, much easier than all of the Mac software I have.  Plus, the VMware Fusion version I have is not compatible with Lion and my goal is to install Lion, so I will have to upgrade VMware Fusion no matter what.  Further, I'm so aggravated with the dual operating system, I've been looking at products to replace Quicken, so if anyone knows of a good home, small business and home rental financial product they can recommend, I'm all ears!
                   If I do a full restore, it will restore . . . and partioned drive
    If there are 2 partitons, a full restore only restores the OSX partition.  If a non-OSX partition was backed-up, it must be restored separately.
                   Now that I've said I only have 1 partitioned drive, does that mean it will restore the partitioned drive?  I would prefer it did not.  It seems now that it would be much cleaner to restore the OSX drive.  Would I be able to do that?
    So, depending on the exact circumstances, your best be may be to restore the most recent OSX partition, then restore/copy those files that were backed-up on another drive; reinstall VMware if necessary; restore the other partition.
    So  . . . things may be a bit more complex than we though, but perhaps less dire.
    More detail on the various partitions and backups should clarify things.

  • Should I use EJB?

    Hi-
    I was wondering if anyone could offer some architectural advice. I need to create a service that does the following:
    1.take a plain text file provided by a client
    2.run some non-java executables on that file
    3.return the binary output file to the client (could be anywhere from 2-60 meg)
    Would it be appropriate to use a stateless session bean for this purpose? Is it not wise to transfer large, serialized binary files over the RMI protocol used in EJB?
    Thanks

    I dont see any reason to use EJB for something so simple. I don't see any reason not to use RMI for something so simple.

  • Duke' Bank Application in j2ee 1.5 using ejb 3

    Will the Duke' Bank Application from j2ee 1.4 tutorial be rewritten, using ejb3 and java persistence in j2ee 1.5 tutorial? Is there a way to get a beta version of it , if there exists one?

    Here is the link to the new J2EE 5 tutorial:
    http://java.sun.com/javaee/5/docs/tutorial/doc/index.html

  • New Hard Drive- Should I use Time Machine for "fresh" install?

    I have a first generation Early 2008 MacbookPro. Warranty just ended and I want to replace the hard drive w/ the Seagate Momentus XT Hybrid. I'm getting a bunch of spin wheel action and things are just running slowly/sluggish. I'm questioning whether or not I should just do a real "fresh" install and load my applications onto the new drive or use TimeMachine. If I use TM am I not adding all the stuff/files that are not needed? Am I adding bloat that I've collected over the past couple of years? Is it better to start w/ a new clean operating system? I do have CS5 and some photo programs that I think I can reinstall. Anyway I wanted to get people's perspective.
    Message was edited by: mikked

    It's usually best to clean your system up, and deal with any problems before doing major surgery.
    With any other scenario, if something goes wrong, how will you know what it was, much less how to fix it?
    I'd start with this: [Intel-based Macs: Using Apple Hardware Test|http://support.apple.com/kb/HT1509].
    Then Verify your internal HD, and repair your Time Machine drive, per #A5 in [Time Machine - Troubleshooting|http://web.me.com/pondini/Time_Machine/Troubleshooting.html] (or use the link in *User Tips* at the top of this forum).
    Then run a +*Repair Permissions+* on your internal HD, via Disk Utility.
    Then replace the drive, do a full system restore and run for a while to be sure the new drive and everything else is ok. See #14 in [Time Machine - Frequently Asked Questions|http://web.me.com/pondini/Time_Machine/FAQ.html] (or use the link in *User Tips* at the top of this forum), for details.
    Then start deleting the apps and files you don't need.
    Note that, unlike Windoze, leftover files and apps may take up a bit of space, but don't cause any performace problems, unless they're actually running.
    The main problems with trying to transfer things selectively are:
    Permissions. If you install OSX and set up a user account, that account, even if it has the same name, may not have permission to restore the files on your backups or other drives.
    Applications. Simple apps can be transferred individually, such as by restoring from Time Machine. Complex ones usually can't, as their installers put other files in other places. If you don't know what and where they all are, and restore them, too, the app won't work properly, if at all. But if you have all the original discs (and serial numbers/purchase keys), you can just reinstall them.

  • New to Bootcamp, should I use bootcamp to run my PC audio softs?

    Hi I'm new to bootcamp. I'm planning to use my MBP to run PC audio softwares daws like sonar or cubase, with firewire audio interface. I don't know if this is a good idea, will this sound the same as a real PC? Will there be a lot of problems?
    How about if I play a 3d big video game on bootcamp xp sp3 on my MBP, will it run as fast as the same cpu, memory, graphics card PC?
    Thanks!

    Hi,
    running Windows natively (with BootCamp) on a Mac is like running Windows on any other given PC and it uses the available hardware to its full power.
    There are some reports of trouble with Firewire interfaces and BootCamp Windows, so you should check the manufacturer website and forums for such reports.
    BootCamp Windows is your only choice to run 3D video games.
    The virtualization apps there are (Parallels, VMWare Fusion or VirtualBox) cannot handle these games in a satisfactory manner
    Regards
    Stefan

  • Why use EJB?

    I am somewhat new to Enterprise Computing and I am a little unclear about these technologies.
    Could someone please let me know why should we use EJB classes in web applications instead of normal classes for executing business logic?
    Thanks and regards.
    Soham

    While I agree that most people using EJB's could have
    built a better solution, I think both of the above
    posters are completely wrong.
    Not at all... You just don't get the point...
    Most problems to which EJBs are applied are not problems to which EJBs should ever have been applied at all.
    Before answering your question though, keep in mind
    there are at least 3 types of EJB's, and all are
    completely different. So I can only answer your
    question at a high level. Here are the reasons people
    might use EJB's:
    And according to the specs you use them all or you don't use EJB...
    They are container managed.Granted
    They offer transactional awareness in your app.So can other solutions.
    They are secure.Only as secure as you make them.
    And you then tie yourself into a security system that may not be at all compatible with the ones you have already requiring expensive work to link several disparate systems together.
    They are pooled, which makes them fast and eliminates
    excessive object creation/deletion.There's many other things that are pooled.
    They scale well in clustered/distributed environments
    (as mentioned above).Clustered environments are indeed the only places where EJB have a definite advantage.
    They abstract you from database access (yeah!).So do other technologies
    They decouple you from the database so you can switch
    from Oracle to MySQL with little or no impact and/or
    changes to code (only driver changes).
    That's exactly the same reason as above.
    I've written my own abstraction layer once which worked faster and simpler than EJB.
    We're now using another abstraction layer which does the same.
    Use any ORM tool and you have an abstraction layer that's a lot easier to use than EJB, and a lot better performant.
    I could go on and on, but don't have time. :-)You don't have a clue you mean. You're just spouting the party line as presented by the EJB priests.

  • Why using EJB when we have BC4J ?

    Hello everybody
    When I heared about EJB two years ago, I read couple of articles about it and found it useful. Now, when I read about BC4J and the ability they give us, a question pops up into my mind. Why should we use EJB ?
    We can simple use BC4J and they are very good. I think there is something about EJBs that I dont know and thats why I think this way.
    I'll appriciate any help.
    Thanx in adnvace.

    BC4J is a J2EE framework that lets you get down to business and focus on building your application.
    It then gives you a choice of deploying your application using simple Java classes, or using an EJB Session Bean if you want to take advantage of EJB Session Bean's container-managed transaction (for example, to particpate in a transaction with another bean you didn't write), or method-level security.
    The key points are that it saves J2EE developers tons of time by allowing them to not waste their time on writing application plumbing code to implement the many J2EE Design Patterns that all real-world applications need.
    Around 800 Oracle Applications developers inside Oracle are using the BC4J framework to get their self-service web applications to market with better features in faster time than their competitors. The framework is filled with nuts-and-bolts application-building features that our own developers have told us are the boring, mundane, plumbing-kinda code that they don't WANT to write, debug, and test themselves.
    It gives you a big advantage and allows you do decide whether or not to use EJB at deployment time instead of forcing you to make that decision up front.

  • Should I use one apple id with multiple devices?

    I have 2 iPods an iPad and a new iPhone. Should I use the same Apple ID on all decvices?  The iPods are for the kids to use. Also, will be adding apple tv soon...

    I registered my daughters two I touches using my apple I'd , but now told I should use separate IDs even though only my credit card is to be used when authorized by me.  As I try to figure this very confusing dilemma out, didninunderstand correctly that if I remove their devices now from my ID, they can't be associated with another device for 90 days?  Is their a walk thru tutorial somewhere about how to do this bc I'm beginning to think some mistakes are irreversible for 90 days if you try to figure it out and are wrong!

  • EJB3 newbie - when to use EJB?

    If I just want to build a reusable module that does not have any business critical actions, such as a login module, or a blog module, should I use EJB?
    Also, am I correct that only EJBs can run on distributed servers, and that all other non-EJB components in a web applications can only run on a single server?

    If I just want to build a reusable module that does
    not have any business critical actions, such as a
    login module, or a blog module, should I use EJB?
    No. Any Java module can be made to be reusable, if designed to be so. Actually, by using EJBs, you'll be limiting the reusability of your modules, since those would need to run inside an EJB container.
    Also, am I correct that only EJBs can run on
    distributed servers, No, they can run in distributed as well as non-distributed environments.
    and that all other non-EJB
    components in a web applications can only run on a
    single server?No. Not sure where you got that idea from. I think you're confusing multiple server environment (clusters) with distributed[i] business objects. You can cluster applications that collocate all their components in a single JVM.
    There are actually very few cases where the use of EJB is to be considered (roughly 10% of cases):
    - if you really need object distribution - this is not the norm
    - if you need to use IIOP as the protocol for communication
    - MDBs are a good solution for some applications heavily based on messaging

  • HT201088 I am considering starting Family Sharing.  Should I set up a new Apple ID for the Family Sharing or should I use my personal Apple ID?

    I am considering starting Family Sharing.  Should I set up a new Apple ID for Family Sharing or should I use my personal ID?

    On your Mac, try to access your gmail account. There should be a link you click for "Forgot My Password". Click it and try to retrieve your password.
     Cheers, Tom

  • When creating a new DPS should I use sizes offered by InDesign or the display size of the device?

    Hello all,
    When creating a new DPS, should I use the sizes offered by InDesign or the display size of the device?  I ran into this question when I was looking up the sizes of different devices and found that iPhone 5s, iPhone5c, and iPhone4s sizes differ than the defauly dimensions offered by InDesign. 
    Also, should I worry about the ppi resolution?  With iPhone, they all seem to be 326ppi but when dealing with other devices is this something that I should take into consideration?  Ideally, I could be creating DPS apps for all devices offered in the Digital Publishing drop down in InDesign (iPhone, iPad, Kindle Fire/Nook, and Android).
    Thank you for any help you can provide.
    By the way, if it helps I am using InDesign CC.

    Using 1024x768 and creating PDF articles will get you OK with both iPad resolutions, and, as Bob L. says, quite decent "one size fits all" result for all other devices.

Maybe you are looking for

  • How to get JSP file name within a servlet?

    I wonder is there any method that we could use to print out the JSP's file name which called a servlet within the servlet itself? For instance, A.jsp called B.class which is a servlet, and when the servlet is being invoked print out "A.jsp" or "A" in

  • Fix for Blasting Fans with 10.4.4 yet??

    Hello everybody, It's been a while since I've checked back at these forums, but I couldn't find a solution going over some posts today. My fans have been CRAZY since 10.4.3, and 10.4.4 didn't help one bit. They're fine when in Reduced settings, which

  • Error when accessing video content via Home Sharing on iPad

    Updated iTunes (Oct. 22)  with the iCloud Control Panel for Windows 7.  I enabled iCloud for Windows 7 via the Control Panel.  Home Sharing is enabled in itunes.  I can play music on my iPad2 using the Library on my Windows machine.   But it I try to

  • Problème conversion fichier Publisher - PDF

    Bonjour, J'ai des problèmes pour convertir un fichier Publisher en PDF. Le rendu est très différent du document original, notamment sur la mise en page. Le fichier Publisher est relativement simple, une newsletter avec du texte, quelques images et de

  • Iso image not wanting to mount

    is anyone else having problems getting a iso image to mount and burn in disc utility. I am trying to burn a linux distro. It kicks back with a error saying unable to mount