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 7740043
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T08:40:25+00:00 2026-06-01T08:40:25+00:00

I do system tests of our Java EE applications deployed on remote JBoss instance.

  • 0

I do system tests of our Java EE applications deployed on remote JBoss instance.

I’m testing whether the system provides the right data after settings the system in a certain state.

  1. System’s state is updated by populating DB via JDBC, calling RMI APIs and sending messages to the external queue (openMQ), all that from a single JUnit test case
  2. System’s state is read by calling RMI APIs from JUnit tests
  3. System’s is set to initial state by a set of shell and SQL scripts (reseting DB schema, purgueing queue, restarting JBoss and resetting its state)

Even if the whole process is automated, I’m not very satisfied of how this is done now, because

  • It takes a minute or two to set the system in an expected state. The significant time of this process is taken by restarting JBoss (Hibernate cache is purged by removing tmp, work, cache, data catalogs), removing all tables, sequences and other DB objects and importing DB dump.
  • I mix different technologies (bash, imp, Java) to reset system under test and scripts are located on different machines. For instance, I still need to call automated scripts on a remote machines manually to reset DB, queue and JBoss. This not only complicate reset process but also makes maitenance of the whole test harder.

I would like to make this solution faster and clearer. Yes, I could study the technologies more, but I wonder is there any best practice or example from which I could learn?

  • 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-06-01T08:40:27+00:00Added an answer on June 1, 2026 at 8:40 am

    One thing you could look at here is Arquillian. If you keep each test case small and use a modern JBoss AS version (7.1), then restarting JBoss takes a second, maybe two at most.

    DBUnit can help with setting up your database. If you keep each test case small, the amount of tables that need to be purged and set to a known state should be relatively small and typically be done in mere seconds.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

We spent a lot of time developing our own custom logging system (right or
I have a web application that I want to run some system tests on,
I'm looking to write a set of system integration tests for an RMI client
When running performance tests file system cache hit or miss can significantly influence test
When I run my MSTest tests in Visual Studio 2008 Team System and get
I have a set of Visual Studio Team System unit (integration really) tests that
This is for some high level Web/Rest tests of my whole system that are
If the framework is persistence agnostic, can my unit tests construct a file system
I am looking to obfuscate our Java web app code within our existing Ant
I have written an application that unit tests our hardware via a internet browser.

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.