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

  • Home
  • SEARCH
  • 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
  • 0 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

Ask A Question

Stats

  • Questions 124k
  • Answers 124k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • Editorial Team
    Editorial Team added an answer Are you running on OS 3.0? I saw the same… May 12, 2026 at 1:19 am
  • Editorial Team
    Editorial Team added an answer It looks like you need to register Apache::Session::Memcached with Apache::Session::Wrapper,… May 12, 2026 at 1:19 am
  • Editorial Team
    Editorial Team added an answer Use DATENAME or DATEPART: SELECT DATENAME(dw,GETDATE()) -- Friday SELECT DATEPART(dw,GETDATE())… May 12, 2026 at 1:19 am

Related Questions

I'm guessing the StackOverflow code has something along the lines of a UsersController that
I have a pretty standard table set-up in a current application using the .NET
I have a pretty complicated Linq query that I can't seem to get into
I have a pretty basic windows form app in .Net. All the code is
I have a pretty standard django app, and am wondering how to set the

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

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.