Weather.com: WebSphere to Tomcat and Oracle to MySQL
At my current client we're going to migrate our application from Tomcat to WebSphere 5 in May. I'm dreading the move and really don't see the point, but alas - the client is always right. However, since my client reads this website, I thought maybe they'd be interested to see that Weather.com recently migrated from WebSphere to Tomcat.
"It was hard to run WebSphere and an IDE [integrated development environment] because of all the resources WebSphere took," recalls Jeff Cunningham, who leads the Internet application development team at Weather.com. "You had to run an instance of DB2 on your machine because WebSphere stored its configurations in DB2, so you had to have all that overhead. It was just really slow. I just started using Tomcat for development because it was so much faster."
The article goes on to say that they evaluated other app servers as well, but chose Tomcat because of the team's preference. They also discovered that Tomcat served up pages significantly faster than WebSphere.
Weather.com is also working on swapping out its Oracle database for the open-source MySQL.
...
"Now when I talk to senior management about moving from Oracle to MySQL they don't ask me, 'Are you sure?'" he says. "They ask me, 'When?'"
It's a great time to be an Open Source Consultant. ;-)
Posted by Jason Jones on April 29, 2004 at 06:51 PM MDT #
Good to know, thanks for the info.
<em>> Also, why the hell can't you run Tomcat locally and WebSphere in test and production?</em>
I absolutely agree. Currently, I switch b/w using MySQL on my PowerBook to DB2/DB2400 on Windows. Hibernate has made that very easy. Now if I can only figure out how to easily switch b/w app servers. Tomcat is easy b/c you can deploy a context.xml and JARs to the appropriate place and be done. No need to touch any files in Tomcat. As of 3.0.7, it looks like Resin makes it this simple too. How about WebSphere - can I just copy an XML file and JARs to a particular location and be done with deploying my app? Or possibly use something similar to Tomcat's Ant Tasks?
This is the major thing I'd like to see in J2EE 1.5 - the ability to specify a common XML file and bundle the JARs (i.e. for connection pooling) in the WAR.
Posted by Matt Raible on April 29, 2004 at 07:00 PM MDT #
Posted by Jason Carreira on April 29, 2004 at 07:20 PM MDT #
Nope - that's Mother's Day weekend and my mom is coming into town. <em>Doh!</em> It sounds like a good time, but I don't know if I could handle all that boozing and gambling - er... I mean <em>learning</em>.
Posted by Matt Raible on April 29, 2004 at 07:41 PM MDT #
With WSAD, deploying to local is easy, in that you never do it. WSAD detects when you've made changes and WebSphere automagically sees the changes. If you make changes that require a context restart it does that for you to. Without WSAD? Not sure...
>I've got a whole big section on switching from WebLogic to WebSphere and the pain... oh the pain
That's not really what were talking about here. My point was not that you could switch between using WebSphere locally and Tomcat locally easily (which I don't think is true), but that you should be able to use Tomcat locally and WebSphere in test/QA/production/etc..
Posted by Jason Jones on April 29, 2004 at 08:11 PM MDT #
Posted by Andre Mermegas on April 29, 2004 at 08:41 PM MDT #
Posted by Jaap on April 30, 2004 at 01:33 AM MDT #
Posted by No one on April 30, 2004 at 02:57 AM MDT #
Posted by experience on April 30, 2004 at 04:28 PM MDT #
Posted by John on April 30, 2004 at 05:33 PM MDT #
Posted by Greg Bloodworth on April 30, 2004 at 09:41 PM MDT #
1. Websphere 5.1 ships with a very old version of JDOM. I am using IBatis (with Spring ORM) for persistence and I was getting "Invalid argument call" whenever my DAOs were being accessed in the application. I tried setting my application classpath to "PARENT LAST" thinking that would use my application's JDOM jar but that did not work. I ultimately solved the problem by replacing the JDOM jar in my WAS lib directory and restarting the whole server.
2. If you are using scriplets (I know, I know, but I can seem to get indexed forms working the way I want to in Struts without using them), you have to escape the double quotes. I am not sure if this is because I am using them within a Struts tag (i.e.<html:text property="<%= "insurance[" + pageContext.getAttribute("i") + "].company" %>" or just whenever you have to use a scriplet. The above had to be changed to <html:text property="<%= \"insurance[\" + pageContext.getAttribute(\"i\") + \"].company\" %>" in order to work in Websphere.
That's all for now.
Posted by Dave Keller on May 12, 2004 at 11:51 AM MDT #
Posted by 69.193.88.30 on November 03, 2004 at 08:57 AM MST #
Posted by 69.193.101.102 on November 03, 2004 at 09:11 AM MST #
Posted by 69.193.101.102 on November 12, 2004 at 12:54 AM MST #
Posted by 69.42.81.244 on December 08, 2004 at 05:24 AM MST #