This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Rust Web Development and have Bastian Gruber on-line!
See this thread for details.
Win a copy of Rust Web Development this week in the Other Languages forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Tim Cooke
  • Campbell Ritchie
  • Ron McLeod
  • Liutauras Vilda
  • Jeanne Boyarsky
Sheriffs:
  • Junilu Lacar
  • Rob Spoor
  • Paul Clapham
Saloon Keepers:
  • Tim Holloway
  • Tim Moores
  • Jesse Silverman
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • Al Hobbs
  • Piet Souris
  • Frits Walraven

Java Web Application in Shared Hosting Account

 
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Sheriff
Posts: 67618
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Rancher
Posts: 43027
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
Susan Smith
Ranch Hand
Posts: 224
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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
Rancher
Posts: 43027
76
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
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.
 
You showed up just in time for the waffles! And this tiny ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic