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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 1, 20262026-06-01T17:21:54+00:00 2026-06-01T17:21:54+00:00

I want to build a web application which basically is a restful web-service serving

  • 0

I want to build a web application which basically is a restful web-service serving json messages. I would like it to be as simple as possible. I was thinking about using servlets (with annotations). JPA as a database layer is a must – Toplink or Hibernate. Preferably working on Tomcat. I want to have app divided into modules serving different functionality (auth service, customer service, etc..). And I would like to be able to update those modules without reinstalling whole application on the server – like eclipse plugins, user is notified (when he enters webapp’s home url) that update is available, clicks it, and app is downloading and installing updated module.

I think this functionality can be made with OSGI, but I can’t find any example code, or tutorial with simple hello world updatable servlet providing some data from database through jpa.

I’m looking for an advice:
– Is OSGI the right tool for this or it can be done with something simpler?
– Where can I find some examples covering topic (or topics) which I need for this project.
– Which OSGI implementation would be best-simplest for this task.

*My knowledge of OSGI is basic. I know how bundles are described, I understand concept of OSGI container and what it does. I have never created any OSGI app yet.

  • 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-01T17:21:55+00:00Added an answer on June 1, 2026 at 5:21 pm

    I think OSGi is a good fit for what you’re describing, yes. Once you add servlets and JPA into the mix you’re looking at using what’s known as enterprise OSGi, which is a layer of functionality on top of core OSGi. There are two main implementations, Apache Aries and Eclipse Gemini. These come pre-integrated into various servers, including Apache Geronimo, or you can roll your own stack. (I’m an Aries committer.)

    For a tutorial on web development using Aries, have a look at http://www.javabeat.net/articles/378-writing-an-osgi-web-application-1.html. Aries themselves have a sample you can download and play with, apache.org/downloads/blogsample-0.3.html. However, it’s a bit more complex than Hello World, and you may need a bit more OSGi knowledge than your current level to get the most out of it. As a starting point, I’d recommend getting familiar with an OSGi console (the blog sample uses the equinox one) to see what’s going on in your system. For equinox, the ss command is most useful, and the bundle command is the one I use next most often.

    If you search for enterprise OSGi, servlet, and JPA, you should find some useful resources. DeveloperWorks have several articles.

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

Sidebar

Related Questions

I want to build a simple web-interface application that can send/receive chat messages to/from
Is it possible to build a Java web application which has a PHP front
Whats the easiest way to build a simple 'web' application which is a single
I want to build application which servers as a stand-alone system service, always run
I want to build a Java EE application (EAR) which not only provides web
I want to build a web application where users can register and have a
I want to build a REST web service on app engine. Currently i have
We have build several web service based on .net. Now we want to create
I have a spring-based Web Service. I now want to build a sort of
I want to assemble a web module which looks like the following: src/main/java (has

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.