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

The Archive Base Latest Questions

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

Let me exaplain you the complete situation currently I am stuck with in. We

  • 0

Let me exaplain you the complete situation currently I am stuck with in.

We are developing very much complex application in GWT and Hibernate, we are trying to host client and server code on different servers because of client’s requirement. Now, I am able to achieve so using JNDI.

Here comes the tricky part, client need to have that application on different Platform also, database would be same and methods would be the same, lets say iPhone / .Net version of our application. we don’t want to generate Server code again because it’s gonna be the same for all.

I have tried for WebServices wrapper on the top of my server code but because of complexity of architecture and Classes dependencies I am not able to do so. For example, Lets consider below code.

    class Document {
        List<User>;
        List<AccessLevels>;
     }

Document class have list of users, list of accesslevels and lot more list of other classes and that other classes have more lists. Some important server methods takes Class (Document or any other) as input and return some other class in output. And we shouldn’t use complex architecture in WebServices.

So, I need to stick with JNDI. Now, I don’t know how can I access JNDI call to any other application ???

Please suggest ways to overcome this situation. I am open for technology changes that means JNDI / WebServices or any other technology that servers me well.

Thanking You,

Regards,

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

    I have never seen JNDI used as a mechanism for request/response inter-process communication. I don’t believe that this will be a productive line of attack.

    You believe that Web Services are inappropriate when the payloads are complex. I disagree, I have seen many successful projects using quite large payloads, with many nested classes. Trivial example: Customers with Orders with Order Lines with Products with … and so on.

    It is clearly desirable to keep payload sizes small, there are serialization and network costs, big objects will be more expensive. But it’s by far preferable to have one big request than lot’s of little one. A “busy” interface will not perform well across a network.

    I suspect that the one problem you may have is that certain of the server-side classes are not pure data, they refer to classes that only make sense on the server, you don’t want those classes in you client.

    I this case you need to build an “adapter” layer. This is dull work, but no matter what Inter-process communication technique you use you will need to do it. You need what I refer to as Data Transfer Objects (DTOs) – these represent payloads that are understood in client, using only classes reasonable for the client, and which the server can consume and create.

    Lets suppose that you use technology XXX (JNDI, Web Service, direct socket call, JMS)

      Client --- sends Document DTO --XXX---> Adapter transform DTO to server's Document
    

    and similarly in reverse. My claim is that no matter what XXX is chosen you have the same problem, you need the client to work with “cut-down” objects that reveal none of the server’s implementation details.

    The adapter has responsibility for creating and understanding DTOs.

    I find that working with RESTful Web Services using JAX/RS is very easy once you have a set of DTOs it’s the work of minutes to create Web Services.

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

Sidebar

Related Questions

Very new, so let me know if this is asking too much. I am
Let me explain you my situation. I have a base class called Shape, and
let me explain my current situation i have a SharePoint site lets say it
First let me explain how I currently handle validation, say, for an IPv4 address:
Quite new to maven here so let me explain first what I am trying
Let me explain the situation before I ask the question. I have a site,
Let me explain the structure of my application, In my app i have 3
Let me explain my situation. So I installed a trial of SQL Server 2008.
Let me explain what I'm trying to do, and if someone could point the
iPhone/objC I'm really stuck here and I could use some help, please. Let me

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.