Re: Standalone app v.s J2EE application
Saturday, March 25, 2006 01:05 AM
Yes you are absolutely right...Deploying an application in an app server is the way to go. Apart from providing a scalable and secure application there are a lot of features that an appserver environment can offer.
1. The very basic concept of distributed computing can be achieved. By deploying your application(business logic layer) as EJBs( Enterprise Java Beans)you can expose your application as a service(use RMI) or even a webservice.
2.Many application servers provide a good way of doing Load Balancing. Offcourse you have to have a hardware load balancer or a software load balancer to substantiate that.
3. Creation of Connection Pools and JDBC DataSources outside your Java Code. Even if the SID or url of your database changes you dont have to compile your code. Application server takes care of your connection pooling. Its a nightmare to implement connection pooling in your code for enterprise application.
There are lot more..