Client/server architecture - how is this supposed to work?

Hi all,
I am in the initial throws of developing a client server program - my very first - and have been studying the forums for answers, BUT...
I am curious how this process works without using RMI...?
To pass primative types or objects to the server from the client I can use serializable, however, how does one also call a method on the server AND pass these variables as the parameters? Is this even possible or am I not thinking this through properly?
This is the order of operation I had in mind...
1. Send an int over the connection
2. Use the int in a switch statement at the server side to invoke the correct method
3. The method then reads the serialized data stream and casts to the expected objects/types.
4. Method executes and sends back any data in the same manner.
The process must be common practise? Surely there is a less convoluted way of doing this?
It would be great to suss out a way of doing this without jumping to RMI 'just yet'...
Gracias!
Message was edited by:
hagend
Actually, I think RMI is probably the easiest way of implementing this. I beleive I misinterpreted aspects of RMI - ALL GOOD!

CORBA, basically it is RPC just like RMI, but a little different.

Similar Messages

  • Baffling Interface Casting - How is this supposed to work

    I am trying to cast one interface to another. You can cast one interface to another if all the method signatures and return types in the "to" interface apprear in the "from" interface.
    I am confused as to what should happen if the return type is the interface itself. for example
    package rob;
    public interface Test {
         public Test foo();
    should I be able to cast this to
    package foo;
    public interface Test {
         public Test foo();
    The reason that I am confused is that if I use Eclipse to compile, it works, however under JDK 1.3.1 I get the following error
    C:\workspace\Cast>c:\jdk1.3.1\bin\javac Tester.java
    Tester.java:26: interfaces foo.Test and rob.Test are incompatible; both define foo(), but with different return type
    rob.Test var = (rob.Test)foo();
    ^
    1 error
    We have worked around this issue, but I am interested in knowing what the correct answer is. The language specification is a little vague in this point. It states that if the return types of a method are different then the incompatable error should be seen at compile time.
    While I agree that rob.Test is different to foo.Test a return type of Self should be dealt with differently shouldn't it ?
    If anyone knows the right answer, or why this works in Eclipse please let me know
    Many Thanks

    You can cast one interface to another if all the method signatures
    and return types in the "to" interface apprear in the "from" interface.Sorry, this sentence is not correct!
    You could check the Java language Specification.
    In fact, the 2 interface you wrote are totally different, even
    they contents exacte method signiture.
    rob.Test and foo.Test are 2 things, and no compatible.

  • How long is it to implement JSSE on a client-server architecture?

    Hi all of you,
    Since I'm not a developper but more a system admin, I'm wondering how long approximatly it would take to adapt an existing JAVA client-server architecture to use JSSE or SSL communication over the internet. Is it a simple task or are we talking about weeks of work? Where would be installed the SSL certificate, on the web server or the database server? In brief, what are the main steps that a developper has to go through?
    Architecture:
    JAVA client
    Web server (RMI server), Microsoft IIS5.0
    Database server (MySQL4.0)
    Thanks you all for your precious time,
    AD

    If your webserver has a server certificate from one of the "Big Boys" in the CA business, and if you don't need client-authentication (and almost no-one does) - in your client, write "SSL" in front of everywhere the app currently has the word "Socket", and scratch out "HttpUrl" and replace it with HttpsUrl,." and change your access-urls to start with "https:" and change your socket-connections to talk to your server's SSL port, and you're done. I've taken a Socket-based app and made it SSL/Plain bilingual in two hours once (admittedly, it was a small and well-designed app).
    If your server-cert isn't signed by a known CA, then you have to play some games to get the client side to accept it - but they've all been discussed to death in this forum.
    Grant

  • ActiveX Bridge Usage in Client-Server architecture

    Hi,
    We developed an application (client-server architecture) based on RMI layer. Now we want to expose client as an ActiveX Control. Assume, server is running on one m/c, client is running on different m/c. Now in other m/c, on VB container my client activex is running. This activex should fetch data from server(through java based client) and should display it.
    We implemented an activex control for client, it is interacting with server. To show server data it should use one user-defined object class. We made this object as public static. But we are not able to use this object on activex side. Even serializing this object and reading it again is also not working.
    If anyone has idea on debugging this issue, please help us.
    Sagar.

    Use the 'NI AlarmEvent Browser' ActiveX control.   Set the machine as the remote station.  Lots of parameters.
    Mike
    Mike Crabtree - Lead Developer
    Destek of Nevada, Inc. / Digital Telemetry Systems, Inc.
    (866) 964-6948 / (760) 247-9512

  • 2-tier Client/server Architecture(Urgent!!!!)

    Hi,anyone can help me to do a client/server architecture.The server is able to track and store the client's name,IC number and his machine's IP.And the server is able to broadcast a question stored in the database and get the answer to the question whereby the answer is also stored in the database.The server is able to broadcast the question to multiple server.Thanks!

    Hi,anyone can help me to do a client/server
    architecture.The server is able to track and store the
    client's name,IC number and his machine's IP.And the
    server is able to broadcast a question stored in the
    database and get the answer to the question whereby
    the answer is also stored in the database.The server
    is able to broadcast the question to multiple
    server.Thanks!you mean able to broadcast to multiple clients, right?
    read this webpage:
    http://java.sun.com/docs/books/tutorial/networking/sockets/clientServer.html
    steal some of the code... maybe from the knock knock server client code and then modify it to meet your needs.
    Don't worry about storing the information in a database until after you have everything else working. The database stuff will require knowledge of JDBC.
    Good luck,
    Tim

  • Client server architecture

    hello friends:
    can we use the XE for the client server architecture???.....which means can we use XE in the same way as we use the standard edition by using net configuration assiatant......if yes then how????

    client server architecture :-)

  • I've searched to no avail for this problem. Similar posts but none that tell me what to do. I can't add or delete any bookmarks on my iPad 2 running the newest iOS. I know how it's suppose to work, it just isn't working!

    I've searched to no avail for this problem. Similar posts but none that tell me what to do. I can't add or delete any bookmarks on my iPad 2 running the newest iOS. I know how it's suppose to work, it just isn't working!
    It started after the major update to iOS 7.
    I can't believe that this is so hard to do. It's just not letting me. I can add a bookmark to the home screen just fine, just not in a bookmarks folder anywhere I try.
    I've used Apple products since 2001 and have always loved how intuitive they are. But the Safari browser since iOS 7 has been the worst I've experienced. At least right in the beginning after that update.
    I'd really appreciate any help that doesn't just tell me how it's suppose to work...I know that.
    My iPad 4 is not affected with the problem and works as it should.

    To delete, tap "Edit" (tap to enlarge image)

  • When using firefox on yahoo and opening my mail it says Not Found The requested URL /dc/launch was not found on this server. How can this be fixed?

    when using firefox on yahoo and opening my mail it says Not Found The requested URL /dc/launch was not found on this server. How can this be fixed?

    Clear the cache and the cookies from sites that cause problems.
    "Clear the Cache":
    * Tools > Options > Advanced > Network > Offline Storage (Cache): "Clear Now"
    "Remove Cookies" from sites causing problems:
    * Tools > Options > Privacy > Cookies: "Show Cookies"
    Start Firefox in <u>[[Safe Mode]]</u> to check if one of the extensions is causing the problem (switch to the DEFAULT theme: Firefox (Tools) > Add-ons > Appearance/Themes).
    *Don't make any changes on the Safe mode start window.
    *https://support.mozilla.com/kb/Safe+Mode

  • Is this how pacman is supposed to work? (dependency "problem")[SOLVED]

    Hi
    Just did a fresh install of archlinux after buying a new computer.
    Installed some drivers.. kde (and some other stuff)
    Then.. just for the fun of it I removed qt3 with pacman -Rd.
    I was expecting that pacman -Syu would see that a dependency was missing and try to reinstall qt3.
    So I did a pacman -Syu, and what happened? Nothing.. pacman says all is okay, well all is not okay cus kde will not work without qt3.
    Is this how it should work or is this a bug? I checked the manpages for some kind of "install all missing dependencies" but found nothing..
    /Ivan
    Last edited by Fuel (2008-01-23 01:34:22)

    fwojciec wrote:
    That's not how Arch is supposed to work.  Arch is about giving power to the users.  With power comes responsibility, and this responsibility falls on the users in this case.  Remember -- this is a "do it yourself" kind of distribution and so if what I want to do is to screw up my system I should be able to do it in an easy, efficient and elegant way.  This is consistent with the mission statement of the Arch Linux project, this is how Arch works and this is why many of us love it.
    On a personal note, if Arch/pacman tried to hold my hand more, like you suggest it should, I'd be switching to another distro very, very quickly.
    It's not really about trying to get arch/pacman to hold your hand for you. It's more about giving the possibility to recover from a serious mistake. If you can tell me something wrong with adding an option wich checks for missing dependencies on your system and how that particular feature intervenes with "the arch way" - then please do.
    I'm not saying arch is bad, arch is actually the best linux distro I've used so far - but there is something common with almost all distros - you get dependency problems after a while, one way or another.
    Thats why I think there should be a way to resolve such issues.

  • How are we supposed to work with the new motion tweens if there's no motion editor anymore?

    How are we supposed to work with the new motion tweens if there's no motion editor anymore? Without motion editor we can't see what kind of keyframes are set and we can't set any accelerations anywhere. Does Adobe now want us to go back and use the old motion tweens?

    Hi All,
    Flash Pro CC 2014 (v 14.0.0.110) is now available for download via the Creative Cloud App.
    We have included an all new Motion Editor along with several other new features with this release of Flash Pro. The new Motion Editor is completely redesigned, intuitive and easy to use while preserving the core functionalities and backward compatibility with Flash CS6
    To Invoke the Motion Editor, simply Double-Click on your Motion Tween span on Timeline (or Right-Click and select 'Refine Motion') and the Motion Editor opens up in-context in the Timeline itself. Double-Click again to collapse once you have made your adjustments.
    Complete list of New features in Flash Pro CC 2014 is available at these links:
    Overview:         https://www.adobe.com/in/products/flash.html
    Whats new:      https://helpx.adobe.com/flash/using/whats-new.html
    Release Notes: https://helpx.adobe.com/flash/release-note/flash-professional-cc-2014.html
    Videos:           https://helpx.adobe.com/in/flash.html
    Thanks,
    Nipun

  • How is PUSH *supposed* to work?

    I have just moved from a v1 iPhone to a 3G. I have had the 3G for 3 days.
    I'm trying to understand how the PUSH function works. The User Manual is not very clear.
    I'm using Mobile.Me
    I am not getting an alert when my phone is 'asleep'. Is this normal? (I would have thought the point of PUSH was that you are alerted when there is email .... )
    I can send myself a test, which is picked up pretty much instantly by my desktop Macs, but even if I leave the iPhone untouched for say 20 minutes, then wake it up, there is still no message. If I then go into the Mail app. (on the iPhone) it will then connect, download and alert me.
    This doesn't seem like the correct behaviour.
    Any explanations of how it is supposed to work would be most welcome.
    Grant Symon

    RomingGnome, Deggie, Thanks.
    I think what happened was that I had deleted my non-standard MM account on the iPhone, but then of course, when I did the first sync, it was replaced from the MM servers.
    I have now left this account on the iPhone, but turned it off, and made a new MM, standard account, which I then synced, did a test and it worked immediately, with alert, whilst the phone was asleep. Very very cool and just what I wanted.
    I shall now have to experiment to see if I can get the non-standard MM account to work too. All this because Apple won't let us use a non MM 'return address'. How dumb is that? Still ... one has to hope that with Apple trying to push the iphone towards enterprise, they might notice that [email protected] is not really the return address most business users are going to want.
    Thanks again,
    Grant

  • How does this IMPORT statement works

    can any one tell me how does this statement will work..
    I am wokring on Solution manager system , where in there is a function module SSF_FIELD_LIST
    to which system passes form name.
      import fields to fieldlist
             from database stxfcontr(sf) id l_fullname.
    stxfcontr is a table which contains value of in  a diff
    Regards,
    mayank

    It will import data object stored in memory under named fields to your custom data object fieldlist .
    The table which it is stored is name stxfcontr under RELID (memory area) SF .
    Cluster key (key of the entry) in that table is behind var l_fullname
    Anyhow I think [this link|http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3bf8358411d1829f0000e829fbfe/frameset.htm] is more that any explanation. Once you study it, you will understand the above.
    Regards
    Marcin

  • Framework for client-server Architecture in Java !!!! With swing

    Hi,
    Considering the scenario where we are having the Client-Server application and the rich clients at the client place , based on the frames.I have though of the logic as :
    Client -----------> ClientComponentframeWorkObject(Genric Objects) ---------> reading the data from the configurable files to find where to take the user action ---------> will call the Servercomponetobject(Generic objects) can be Servlet or just a object which connects to the server(DB).I have been able to find the open-source frame work at the Apache ,all covering the server-side framework so i though of doing some work with the framework covering the client(swing) -server Archetect.Even I dont know how the existing server side framework support the swing client.
    I would appericiate if someone who had worked on the client server requirement with java , could share the knowledge about the framework being used in the existing work.
    regards
    Vicky

    Hi,
    GENERIC CLIENT COMPONENT:
    package com.nst.clientcomp;
    import javax.swing.JFrame;
    import javax.swing.JPanel;
    public abstract class ClientComp extends JFrame
      protected JFrame currentframe;     
      protected JPanel  panel;
      public ClientComp()
           // To decide if the ClientComp to be Frame or the Panel.
        //panel=this;     
        //currentframe=new JFrame();
        panel=new JPanel();     
        currentframe=this;
      // Just Concentrate on the GUI , look and feel here .......And the user action will generate
      // generate the event which should call the callNextView()..The component developer have to
      // concentrate on the writing the display() and the callNextView()..
      public abstract void display() ;
      // This is the Final action.Template Pattern being Called
      public String action()
           readServerObj();
           processContent();
           display();              
           return null;
       Reading of the value object which is being Passes from the Server.As per the Design it is
       called VOFS and will be read here.Here
       1) Connect to the Server
       2) Pass the VOFC through the socket connection
       3) Also obtain the VOFS(Value object from server) 
       In certain application it can be implemented here
      public Object readServerObj()
            System.out.println("Hello from ServerObj!!! Should be implemented ");
            return null;
       Processing the Sever Value Object, which is basically as VOFS.It is processed by the
       Client.And infact the Value object from Client(VOFC) should be generated here for next
       user interaction from the Client.
      public void processContent()
            System.out.println("Hello from processContent !!! Should be implemented ");
      // Clear the Frame
      private void cleanUp()
         currentframe.dispose();
         Contains the place where next view takes.Before this is invoked the cache copy of the
         StateObject should be stored in the appropriate Data Structure......      
      public void callNextView(ClientComp com)                     
            panel.removeAll();
            com.action();
            cleanUp();
    }   COMONENTS AS PER THE FRAMEWORK :
    package com.nst.clientcomp;
    import javax.swing.*;
    import java.awt.event.*;
    public class Comp1 extends ClientComp implements ActionListener
      JTextField t,t1;     
    //Default display , displaying the screen.This should be the abstract method
      public void display()
        JLabel l=new JLabel("UserName");
        t=new JTextField(10);
        JLabel l1=new JLabel("Password");
        t1=new JPasswordField(10);
        t.setText("admin");
        t1.setText("admin");
        JButton b=new JButton("Login");
        b.addActionListener(this);
           panel.add(l);
           panel.add(t);
           panel.add(l1);
           panel.add(t1);
           panel.add(b);
           currentframe.getContentPane().add(panel);
           currentframe.setSize(400,400);
           currentframe.setVisible(true);      
      public static void main(String ar[]) throws Exception     
           ClientComp c1 = (ClientComp)(Class.forName(ar[0])).newInstance();
           c1.action();             
           System.out.println("Hello11");
      public void actionPerformed(ActionEvent e)
           //Do someprocessing if required
           if(t.getText().equals("admin")&&t1.getText().equals("admin"))
           callNextView(new Comp2());  
           else
            System.out.println("invalid login");     
    } Similarly you can develop the other components and you have to take care of the display() and the user action Event which eventually calls the callNextView.I hope there might be the cases where this has been implemented ..
    Regards
    Vicky

  • How does this configurator module work?

    Hello,
    I'm a PHP programmer that has some work that I need to do for
    a client.
    He owns an online tshirt store and wants to develop a
    configurator similar to the own seen here:
    http://propercloth.com/custom-mens-shirts.php#
    You can see as you select fabrics & components the image
    of the shirt on the left updates with the texturised version. My
    client already has a database of his materials ready to plug into
    something like this. I'm quite unfamilar with flash as I mainly do
    backend PHP and I was wondering if someone here might know how this
    flash module works or has some experience coding one so I can get
    my head around how this thing works.
    What is required to create or how would I go about creating:
    1. The base model tshirt
    2. Individual components such as pockets that can be
    shown/hidden
    3. The texturisation engine
    4. Populating the base model with a selected material
    (colour)
    Any advice much appreciated!
    Marv.

    There is no flash on that page. All of that animation is done
    using Javascript. It looks like its using elements from the jquery
    library. You can find out more about it at
    http://www.jquery.com. There are
    other libraries with similar functionality. I prefer mootools:
    http://mootools.net/ .

  • HT5642 How is it suppose to work I don't no what to click ????

    How are yu suppose to get the update I can't find where to click plz helpppp!!!!!! XC

    Heheyunno wrote:
    I tried that it didn't work...
    This Information is too little and too vague.
    Suggest you read the Entire Link posted above.
    If you still have Issues...
    Then a Visit to an Apple Store or AASP (Authorized Apple Service Provider) is the Next Step...
    Be sure to make an appointment first...

Maybe you are looking for

  • HT5622 How can I switch the Apple ID that iCloud uses, if my previous Apple ID no longer works?

    One of my family members got a new iPhone and set it up with the same apple ID that the rest of my family uses. Now we can no longer use this apple ID. We have tried changing the password but the security questions will not accept the correct answers

  • Can't add a person on family sharing

    I keep trying to add people to my family sharing and it does nothing when I tell it send an invitation.

  • EJB Transaction does not work

    Hi, I have a servlet, a session bean, and an entity bean. A servlet doesn't have any transaction attribute, a session bean has Required, and an entity bean has Required. I have the code like the following: Servlet: EJBDelegate ed = new EJBDelegate();

  • How to track returnable drums and Isotainers?

    I need to track drums that are shipped out with our liquid product then returned on future deliveries.  We do not charge for the drums and retain ownership.  Also, we ship out large Isotainers (containers pulled by truck) and would like to track whic

  • Adobe Reader XI - How do i stop numbers being rounded up on forms

    Hi, I am using the Adobe Reader XI, with regards to filing in figures on forms that I use. The form keeps on rounding up numbers. For example if I type in 2.5 and go to the next box on the form, the figure will immediately change to 3. It is extremel