Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 273131
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 12, 20262026-05-12T00:24:38+00:00 2026-05-12T00:24:38+00:00

I have a pretty monstrous Java app in development here. As of now, it’s

  • 0

I have a pretty monstrous Java app in development here. As of now, it’s only ever been deployed on my locally installed Tomcat/MySQL setup.

For completeness, the app is an online game server written using Spring, Hibernate with MySQL currently on the backend.

Now, I can easily package up the WAR and get that on the remote server.. The problem is the database. Right now it’s generated with an ANT script that uses Hibernate (specifically, the HBM2DDL Ant task) to generate the schema, and then populates the db with a combination of static SQL and a couple of ant-based parsers that read from other data (XML mostly). After that, I have a fully created DB populated with the game servers “starting” data set.

The issue is being a bit green in Java I have no idea what the right way to deploy this is.

Should I:

  1. Export the SQL from my local MySQL and manually import it on the new server? Eww.
  2. Make the ANT script less grody (it’s got lots of hardcoded directories in it right now) and run it on the server?
  3. The elegant option I don’t know about?

The other complication is that the WAR will be going to different server(s) than the MySQL db will be on. Is there a Java book or web resource that comprehensively addresses these kinds of deployment issues?

  • 1 1 Answer
  • 2 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-12T00:24:38+00:00Added an answer on May 12, 2026 at 12:24 am

    I think there are 3 options:

    1. Change your ANT script to target the DB on the remote machine. You can run it on your local machine, so you don’t have to change it: It will find the necessary files in the same places. The main drawback of this method is that executing a lot of SQL over a network (internet) can be slow).
    2. Export the schema from your local (build) database to the new database. It doesn’t have to be SQL, if your database supports some binary format. Usually this is the fastest and least error prone way of doing it, although there might be some very subtle issues if the configuration of the remote DB is just slightly different from your local setup (e.g. character set).
    3. Run the ANT script on your server. The biggest problem with this is that your database server will have to have all the necessary tools (like ant and java) but also all source files (hibernate mappings), which it usually (being a database server) has no need for.
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have pretty straightforward setup of CouchDB on my Mint/Debian box. My Java webapp
I have pretty much the same question as stated here: Set listener for store
I have pretty complicated form items ;) Here's my view for serving my form:
Right now I'm building a personal site/blog and have pretty much got it they
I have pretty much made my app to about 90% using UIKit code since
I am working on a Minesweeper which I have pretty much complete. The only
I have pretty much finished my first working Symbian application, but in my hastened
I have pretty big background of .net, and I've decided that i want to
I have pretty good skills in PHP , Mysql and Javascript for a junior
i have pretty simple simple question (i hope so). How do i change the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.