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

The Archive Base Latest Questions

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

I am working on a Java EE 6 application that consists of multiple components,

  • 0

I am working on a Java EE 6 application that consists of multiple components, which are all packaged as separate Maven projects:

  • MyAppInterface – OSGi module, contains entity classes, including JPA and JAX-B annotations
  • MyAppRealm – OSGi module, contains custom Glassfish LoginModule and Realm
  • MyAppServer – web application, contains EJBs, EntityFacades, JAX-RS Gateway, a few administrative JSPs
  • MyAppWeb – web application, GWT app, communicates with MyAppServer via XML/REST

The reason why they are all separated in different projects is for scalability reasons – not everything is deployed everywhere. MyAppInterface is used by all other projects. Everything is running on Glassfish 3.1.

Now I’d like to introduce the concept of integration testing to this. Leaving out MyAppWeb for a moment, I’m thinking it’d be ideal to test everything via the JAX-RS gateway.

How would you do this?

Obviously the whole stack needs to be “assembled” before tests can be executed, including backends (database, email MTA). Should I even try to do this automatically? Jenkins builds everything (but does not deploy it automatically).

Here are my thoughts: Since each of the components by itself is not “complete”, I’m thinking there is no point placing the tests in any of the projects. Instead I’m considering adding a component MyAppIntegrationTest with nothing but tests in it, with Jersey Client and MyAppInterface as dependencies. In order to test, I would build all components, deploy them on a test glassfish, then pass the URL to MyAppIntegrationTest and let it run its tests.

Thanks for your thoughts!

  • 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-24T00:51:04+00:00Added an answer on May 24, 2026 at 12:51 am

    I’ve no direct Java EE 6 experience.

    However, as a point of reference, in Eclipse plug-in development, it is quite common to have separate projects / plug-ins / bundles for (integration) testing.

    Thus, using a separate MyAppIntegrationTest component to take care of the integration testing makes perfect sense to me.

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

Sidebar

Related Questions

I'm working on a Java application that uses JavaSpace. We're developing this in Eclipse.
I am working on a Java/Struts application that uses Tomcat 6.0.10. It's a typical
I'm working on an application that intersperses a bunch of jython and java code.
I'm currently working on a project that is building a java-based desktop application to
Am working on a Java application that requires me to display PDF documents within
I am working on a java application that targets both mac and PC. Recently
I am working on a Java application that will use some Hibernate (annotated by
I'm writing a Java application that's working with Apache Derby via JDBC. I'm having
Sir, i am working in a java application.On that application i have to access
I'm working on a Java application that needs to communicate with a C application.

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.