<imho>
A. Kevin Baynes wrote:
If I understand you correctly, then the simplest thing for me to do it to pick an app server and write to it specifically, only taking on the task of porting to another app server as a last resort, right? If that is the case then it will probably be JBoss.
No, no, no! Don't write for one app server. Use the standard J2EE APIs such as Servlets, JSPs, JDBC, and EJBs. Many software companies (such as SAS for example) develop on, test with, and support more than one brand of app server. You can too. It works.
If your application is primarily a database driven web application and you use Servlets and a persistence framework like Hibernate or one of the growing number of JDO implementations, then cross-app server portability will not be much or a problem.
Also, keep in mind that if you are not doing EJB or JMS, you may not even need a full-blown J2EE app server -- Tomcat or Jetty may be a better choice than JBoss or Websphere.
Andrew C. Oliver wrote:
Yes. One "anti-pattern" to avoid -- even if you're on WebSphere -- is to "roll your own" just for compatibility's sake. Meaning I'd rather see 100 com.ibm references than one org.me cache implementation because we're all vendor scum and will do things a similar way :-) You don't have to go out of your way to be incompatible, but focus on scaleabilty and performance first. (of course code quality and testability don't hurt ;-) )
The anti-pattern to avoid is getting locked into one set of proprietary APIs and one app server. You should only use vendor-specific features as a last resort. Using Andy's example, if you think you need to use a proprietary server-specific cache implementation first do some research. Can you use something portable instead? Can you wrap the cache with an interface so that you plugin something else on other servers?
Also, don't forget about Geronimo -- the open source J2EE server from Apache -- it is really coming on strong and it uses the commercial software friendly Apache license (some companies have problems with LGPL, which is what JBoss uses).
Find it here -> http://geronimo.apache.org/
By the way, the name of the Sun server is the "Sun Java System Application Server"
Find it here -> http://www.sun.com/software/products/appsrvr
</imho>
- Dave
--
David M. Johnson
Staff Engineer, Blog Technologies
Web Platform Engineering
Sun Microsystems, Inc.
_______________________________________________ Juglist mailing list [email protected] http://trijug.org/mailman/listinfo/juglist_trijug.org
