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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 26, 20262026-05-26T03:05:00+00:00 2026-05-26T03:05:00+00:00

I am working on developing a JAX-RS webservice using RestEasy 2.2.2 to be deployed

  • 0

I am working on developing a JAX-RS webservice using RestEasy 2.2.2 to be deployed on Tomcat 7. The webservice returns JSON (via Jackson) to the clients. I got it working so far but I am not sure how to build the dynamic links that needs to be sent to the clients.

The following comes to my mind:

1- Make a deep copy of the root object (that itself contains other objects, three levels total), modify the String properties that represent the links, and return this new object.

Concern: Performance, getting the deep copy implementation correct

2- Modify the object per request and return it

Concern: Concurrency issues (I am not even sure if this is even possible)

3- Build a new root object, iterating over the “main object” and modify/add as needed

Concern: Similar to (1). Basically this is implementing a copy constructor vs. cloning() the object.

The only example I could find (scroll down to the “JAX-RS resource class” section) seems to implement option 3. However, if I am not mistaken, it also behaves like option 2 (it modifies the object and adds to the collection) and I am not sure how the concurrency issues are handled.

Thank you in advance for any guidance, help and opinions.

  • 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-26T03:05:01+00:00Added an answer on May 26, 2026 at 3:05 am

    In case anyone reads this question in the future: I went with the “serialize-deserialize in memory” route to get a fresh copy and built the links dynamically on this fresh copy. I already have JSON readers and writers available so the solution was available with very little work (single line for the actual call, to be exact). For the purposes of the project, it seems to work fine (in terms of performance).

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

Sidebar

Related Questions

I am developing a JAX-RS webservice using RestEasy 2.2.2 to be deployed to Tomcat
So I'm working on developing a game for a school project and so far
I am working on developing a lossless compression algorithm using MATLAB. I would like
I'm using Watir 1.6.7. I'm working on developing some regression tests for a PeopleSoft
I'm working on developing a page that pulls data down only via ajax: http://itprojectguide.org/projectmatrix/itprojectguideprojectmatrix.html
I'm currently working on developing a windows service which will be deployed to all
I am working in drupal 7 for developing site. I am using webform for
I am working on developing a mobile application using java for messaging services(P2P) I
I'm working on developing a Firefox add-on using the Add-on SDK . I changed
When working on developing new software i normally get stuck with the redundancy vs

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.