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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T12:04:08+00:00 2026-05-26T12:04:08+00:00

I have a jar which contains all my core functionalities and a set of

  • 0

I have a jar which contains all my core functionalities and a set of boundary interfaces that should allow the core to be used by different delivery systems such as web, console, etc.

Now say I want to use Struts2 in a separate project as the delivery system. Where should I place all the wirings needed by the core to be working properly?

I am doing all the wirings inside the main() method of the core app (I decide at that time what implementations of the interfaces used around the application should be used), but using an external project, where should I place all the wirings?

Thanks!

Roberto

  • 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-26T12:04:08+00:00Added an answer on May 26, 2026 at 12:04 pm

    Normally wiring is handled “automagically” through bean definitions in the S2 config files (this is how S2 wires itself up with its old Guice-y core) if you’re not using Spring, or via the normal Spring configuration methods (files and/or annotations).

    If you really want to do it in Java, I’m not actually sure where the best place would be, or if it’d really be worth it. Why (and when) you want to do it in Java might help determine where to do it in Java.

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

Sidebar

Related Questions

In Guvnor global area I have uploaded different jar which contains model classes. After
I have a jar on the classpath which contains a hibernate.properties. This causes problems
We have data stored in oracle 10g db which contains french character set. The
I have a jar in the classpath of my server which contains the log4j.properties
I have a .jar file that i've placed in my D:\Coldfusion8\wwwroot\web-inf\lib\ directory. The file
I have a jar file that has a file named client.ts in (when viewing
I have a jar file that uses some txt files. In order to get
I have a jar file that I would like to execute using PHP, but
I have a jar file with resources (mainly configuration for caches, logging, etc) that
That is when you have any jar file attached to you your class path.

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.