Discussion Locked

Portablity of Tomcat

0 helpful
3 replies
Closed to new repliesThis discussion is closed. It stays readable, but it takes no new replies.

im working on jsp,and im using tomcat running in win2000 , later i want to port it to linux, i didn't know much about porting, so any body please help me out in this regard,
and also im using files for teporary storage,later i want to use MySql for storage,
and help me in how i can use the files efficiently to store data and retrive,

here i need to store data, retrive and compare with new entry like these stuff i need to do,

so please help me,

thanks in advance,
charan

3 replies

by duane5000

The answer of how to run Tomcat on Linux is not an easy task. You really need to do your homework on Linux. I would recommend the install docs that come with Tomcat(Linux version) as a great place to start. I have worked on applications that were deployed to Linux, so this isn't a question of 'can it be done'. If you cannot afford the time to learn linux/Tomcat, I would recommend third-part hosting solutions that support Tomcat/Mysql. If you need assistance, www.whiteheadconsulting.com can assist with hosting and deploying(I've used them myself). If your IDE supports WAR file creation, it should be as easy as copying your WAR file to the Tomcat root and restarting Tomcat. As for building an application and addressing your storage needs, starting out with MySql is better than trying to convert later. Use a utility for integration like Hybernate or Torque (http://db.apache.org/torque/) which I have also used. I like the fact that I don't have to handle DB connections manually or write my own sql, but can if I need to. Torque has a tutorial on their website. The learning curve on Torque is not a small one, but should payoff in the long run. You should use a utility like PhpMyAdmin to remotely administer your production MySql database. Good luck!

by aleco

I'm working with Tomcat/Struts/Hibernate project now and using winXP on development platform and Linux (Red Hat) on demo site. I'm sure you will not have problems if you will decide move you application in Linux.
Of course it's not easy install Tomcat and all necessary environment, but it's possible.

About data storage. I'm using Hibernate and very exited with it. I have experience with OJB, simple JDBC and any other layers and I love Hibernate much more. Besides, the Hibernate v3. has been released recently.

Alexey.

by saurabhambekar

well, i think installing tomcat on linux (RedHat atleast) is very easy. You will just have to gunzip and un-tar the binary file. Or if i am not wrong you can copy your tomcat dir from windows directly to Linux and run shell scripts for starting and stopping tomcat and other stuff. Ofcourse you will need to create environmental variables like java_home and catalina_home etc. This is about installation of tomcat.
For making your application work, you will have to change the hardcoded paths etc in the code and if your application is pretty simple then it should run right away....otherwise there might be some issues of shared object files(.so) etc....

This discussion is closed to new replies.