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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 24, 20262026-05-24T08:00:19+00:00 2026-05-24T08:00:19+00:00

I have created a Web service using Netbeans’, JEE6 and Jersey – Webservice from

  • 0

I have created a Web service using Netbeans’, JEE6 and Jersey – Webservice from Database feature.
So my webservices can be accessed at: http://localhost:8080/SampleWS/listOfItems
The above returns a list of items present in my DataBase. I am using RESTKit on iOS as a client to access this resource.

However, there are two things i would like to do:

1) I would like to restrict access to the above resource only to authenticated users. What is the way to do that?

2) I would also like to restrict only selected out of authorized users to invoke DELETE, PUT and CREATE commands.

Finally, NetBeans allows me to create WS from Database, entities and pattern. Can someone point me to a tutorial for creating a RESTfulwithout using any of the above? In other words, and for example, i would like to map GET, PUT/DELETE methods to mathematical functions like addition, multiplication etc.

  • 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-24T08:00:20+00:00Added an answer on May 24, 2026 at 8:00 am

    You don’t mention which app server your deploying to. I assume GlassFish?

    I haven’t implemented this myself, but I believe Marc Hadleys blog post describes how to configure an application to cover your requirements 1) and 2):

    http://weblogs.java.net/blog/mhadley/archive/2008/03/authentication.html

    If you’re using Spring you might also want to consider using spring-security instead, as described in this answer:

    User authentication on a Jersey REST service

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

Sidebar

Related Questions

I have successfully created Web Services from MySQL Database using Netbeans tutorial . However,
I have created an Axis2 web service from Netbeans and deployed it successfully in
I have created one web service that will may called from web using jQuery
I have created a simple web-service using Java. i want to load jars related
I have created a web service in a virtual directory using VS 2008. I
I have created a web service which has a couple of methods developed using
I have created a dummy web service with 2 optional parameters using the .Net
I have created a C# web service using visual studio to stop the windows
I have a web service created using Apache CXF, and two .NET clients using
I have easily created a JSF project with NetBeans that delivers a web service

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.