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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 31, 20262026-05-31T17:39:33+00:00 2026-05-31T17:39:33+00:00

What options are there to achieve low-latency communication between two wars running in the

  • 0

What options are there to achieve low-latency communication between two wars running in the same jetty-container?

I basically need to call a service in one war from the other, but can’t afford the overhead of calling it as a web service.

Since they are running in the same JVM, I’m hoping to avoid using RMI/JMS etc., but I don’t know what other options I have?

I’ve looked at inter-servlet communication, but since direct method invocation is deprecated that doesn’t seem to be the right choice?

I also found kyronet, but are there better solutions since this is in the same JVM?

What I’m looking for is something like Apache Camel’s VM Component (seda between web-applications), but since only one of the applications is using Camel for this is not an option.

I know I might have to share some DTO’s between the wars, but please don’t suggest pulling the service into a shared library, if that was an option I wouldn’t be asking this question:)

Edit:

Embedding an EJB-container is probably not an option either.

  • 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-31T17:39:34+00:00Added an answer on May 31, 2026 at 5:39 pm

    Register interfaces with JNDI and make them global so that the ‘other’ servlet can retrieve them from the repository.

    Check this

    (note: we gave up JNDI in favor of our own registry implementation but we start the registry and Jetty programmatically in the same JVM)

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

Sidebar

Related Questions

Is there any code or custom options available to achieve the following : 1>
I just wonder what options there are to properly measure/profile/optimize ASP.net 2.0 Web Parts,
I wonder what options there are for .NET (or C# specifically) code coverage, especially
What options are there for installing Django such that multiple users (each with an
What options are there in the industry for enterprise reporting? I'm currently using SSRS
What options are there in ASP Classic for error handling? For example: I'm using
What options are there for localizing an app on Google App Engine? How do
What customization options are there for Cocoas NSFontPanel? The NSFontPanel accessible in iWork Pages
Are there some options somewhere where I can set the defaults, like the project
Is there an easy way to separate the help-option from the 'real' program options?

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.