aspose file tools*
The moose likes Servlets and the fly likes Java Web Application in Shared Hosting Account Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "Java Web Application in Shared Hosting Account" Watch "Java Web Application in Shared Hosting Account" New topic
Author

Java Web Application in Shared Hosting Account

Susan Smith
Ranch Hand

Joined: Oct 13, 2007
Posts: 224
Hi,

I'm learning to create web application using Java.
I just signed up for a hosting account. It's a shared hosting account and I learned that I cannot restart Tomcat.

My question is: does it mean I cannot do things like connection pooling or / Tomcat authentication using database?
Since based on my understanding I need to access server.xml in Tomcat configuration file.

Can someone please advise if they have experience in this?

Thanks in advance. I really appreciate all the help.
Bear Bibeault
Author and ninkuma
Marshal

Joined: Jan 10, 2002
Posts: 61648
    
  67

To me, an account in which you have no control of Tomcat is completely useless.

But if you have access to Tomcat's Manager application you can at least start and stop your application.

Personally, I'd be looking for a better host.


[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42608
    
  65
Connection pooling will probably work; Tomcat should be set up with a pool you can use - you just need to declare it in your web.xml file. Check the provider's documentation for the pool's name.


Ping & DNS - my free Android networking tools app
Susan Smith
Ranch Hand

Joined: Oct 13, 2007
Posts: 224
I just checked with the provider: No Tomcat Manager, No Connection Pooling and Tomcat DB authentication.
They offered "Dedicated Server" that can do all these, which is far more expensive.

Do most of the providers that offer Java support have similar situation (need to purchase dedicated server to be able to use connection pooling and tomcat db auth., etc)? Can someone please advise?

Thanks again for all the help.
Ulf Dittmer
Marshal

Joined: Mar 22, 2005
Posts: 42608
    
  65
I pay USD 17 per month for a hosted Tomcat that I can configure as I like, but I think you can get that for around USD 10 if you look around. That's not a dedicated server, though - some Tomcats instances belonging to other people also run on that machine. But it's a beefy server, so it's fine.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Java Web Application in Shared Hosting Account