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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 15, 20262026-06-15T09:26:38+00:00 2026-06-15T09:26:38+00:00

I am making an android app which will retrieve some information from a remote

  • 0

I am making an android app which will retrieve some information from a remote MySQL database. I will be using restful java web service using JAX-RS which will interact with MySQL DB to retrieve data from tables. I am aware that for interacting with an underlying database, some implementation of JPA can be used. But since I only need to retrieve data from DB and not to insert any new data using my android app (as a client).

So do I really need to implement JPA?
If not, how should I make my java web service fetch data from MySQL database?

My database is installed on Amazon ec2-instance where I am running apache tomcat 7. What will be the best approach? If you can refer me to some good tutorials, please do.

  • 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-15T09:26:39+00:00Added an answer on June 15, 2026 at 9:26 am

    You don’t need to implement JPA for this solution if it’s a fairly small set of data you require from your description. You could just build a RESTful web service that just does simple JDBC queries to the database whenever it’s called.

    REST request comes in – gets interrogated by the web service – web service fetches data – returns XML / JSON response from Tomcat. Also – as you’re using Tomcat and not an application server, if you did want to go down the JPA route I would recommend Hibernate as you wouldn’t be able to use EJB without an application server such as JBoss. Even then, unless it was a large system just a Tomcat instance running some JDBC should work fine, especially in EC2.

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

Sidebar

Related Questions

I am making an android database app in which when i fetch values from
I am making an Android App which interacts with remote server's database and communicate
I'm making an Android app, which gets its information from XML files. I'm filling
I'm writing an Android app which will be making use of the cloud-2-device messaging
I'm making an android app which has to frequently call some .net web services
I'm making an Android app which stores some downloaded pdf files inside the device's
I am making an android app which will have two services that will keep
so i am writing an app for android which will push some data over
I am making an android app in which i am trying to slide between
I'm making a Android app that basically plays video from a website on the

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.