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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 27, 20262026-05-27T11:40:50+00:00 2026-05-27T11:40:50+00:00

I am currently on a Problem. I have an RMI Server with a Model

  • 0

I am currently on a Problem.
I have an RMI Server with a Model and want to update the View on the Client side based on the Changes of the Model, a typical MVC Structure.
My Problem now is if I want to call Methods from the Server that update the View on the Client, the Server needs a Reference to the View. If the View is referenced in any Class given to the Server the View gets send to the Server, which I don’t want to do and which I can’t because the View uses the not Serializable GroupLayout.

Is there any Way to update the View based on the Model Changes without the need of polling and/or the need to send the View?

Thanks in advance.

edit: Seems like there is no one yet able to answer my Question. So here are a little more Details of my Thought Process.
Imagine three Classes, one View, one Model and one Controller. The Controller acts as a bridge between Model and View. So the Controller has a Reference to the Model and to the View. The View has a Reference to the Controller.
The Controller implements the PropertyChangeListener Interface and registers itself as such on the Model. Everytime a Property is change in the Model it calls the firePropertyChange Method and the controller propagates the Event to the view, which acts accordingly.
Sadly since the Controller on the Server has a Reference to the View on the Client, the View will be serialized, which is not possible with a GroupLayout used by Matisse. GroupLayout is not implementing Serializable. Subclassing Grouplayout does not work because GroupLayout has not default Constructor. Hope that makes my Problem clear enough for you all to go out there and try that construct for yourself and give me a possible Solution on that. 😉

edit:Seems like there is no Possibility to enable the MVC Architecture with RMI with Visible Components without serializing the View itself. So I have to poll the Model on the Server to check if a Property has changed and change the View on the Client appropriately.
This Solution kinda sucks(excuse my Words), because it is the Opposite of Resource saving and the MVC Architecture. Next negative Aspect is that the View is and will never be updated in real Time.

  • 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-27T11:40:51+00:00Added an answer on May 27, 2026 at 11:40 am

    So i searched around and did some Questioning in other Forums etc.
    I finally found a Solution for all of you struggling with something similar.
    The Answer is the so called RMI Callback. The Client has to export a stub of his own to send to the Server and the Server uses that stub to perform the callback.

    Here is the Example that brought me on the right Track:
    h**p://www.javaworld.com/javaworld/javaqa/1999-04/05-rmicallback.html

    It is a little old but it covers the Basics.

    Have Fun Coding!

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

Sidebar

Related Questions

I currently have a problem attepting to update a record within my database. I
Hi currently have the problem, that I want to insert values in a postgres
I currently have a problem with my jgroups configuration, causing thousands of messages getting
I have the following problem: I have a form in site/banen (currently local running
I am new to Rails routing and I currently have a problem and hope
I have a problem that output string must be utf8-formatted, I am writing currently
Currently developing a PHP framework and have ran into my first problem. I need
I have the following problem using subversion: I'm currently working on the trunk of
I am currently trying to learn C and I have come to a problem
I am currently faced with a difficult sorting problem. I have a collection of

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.