Results 1 to 7 of 7

Thread: RCP client server connection

  1. #1
    Join Date
    Apr 2009
    Posts
    3

    Default RCP client server connection

    Hi, my company is starting to work on something call MDA and AndroMDA, the last one is a tool that generates code from models. Is very interesting and the idea is to see how that works. And it uses springs. creates the application context and others xml that dont know well whats for...

    im testing with java richclient. it generates a server with the domain and some services that are like modules of the system. It also generates the hibernate mapping of the domain and the connection to the DB. So i developed a domain, lets say a User, that have a name and lastname. Then a module that list all the users of the DB. till here we're ok. now i can upload that in tomcat and there's my server. So now i have to create a client that connects to that server and uses that method to see all the users. And thats my question, how i create the client that uses that server? i want a simple console connection. no GUI...

    I asked in AndroMDA forums and they said i should search for Spring remoting. i read things about RMi that could be my answer. but dont know if there's another solution. Also i search about spring RPC but the examples i saw where about GUI, and the petclinic dont see a case like mine where i have to call the methods in the server... Also see the documentation of the "framework spring" but didnt find anything related...

    So this topic is more about a guide to where to look, some information and examples...

    thanks

    greetings from Venezuela
    Edwind

  2. #2
    Join Date
    May 2008
    Location
    Segovia
    Posts
    11

    Default

    Hi Edwin,

    there are various alternatives to connect client and server, the best way it is hard to determine, depends on what are your needs, in my opinion spring-remoting offers the easiest way of implement remote communication , to learn how it works, you have to review the documentation of spring-remoting project, you can see it here http://static.springframework.org/sp.../remoting.html.

    I Hope this helps you decide.

    Greetings.

  3. #3
    Join Date
    Apr 2009
    Posts
    3

    Default

    thanks a lot man, i'll give a try to that. There are working examples that i can use as guide?

  4. #4
    Join Date
    May 2008
    Location
    Segovia
    Posts
    11

    Default

    Hi edwind,

    I found some examples in google, the easiest is http://cosminaru.ro/blog/2006/11/02/...-examples-rmi/.

    In any case the spring documentation contains some source code.

    If you need something implemented, I will try to do some example.

    Greetings.

  5. #5
    Join Date
    Apr 2009
    Posts
    3

    Default

    thanks a lot again for the guidelines. For those that want more information about this:

    http://www.roseindia.net/spring/springpart4.shtml

    http://www.proactiva-calidad.com/jav...roduccion.html

  6. #6
    Join Date
    May 2008
    Location
    Segovia
    Posts
    11

    Default

    Hi Edwind,

    if you need more help I will try to help you always I can do it.

    Greetings

  7. #7
    Join Date
    Jun 2008
    Location
    Germany
    Posts
    67

    Default

    Maybe something like cayenne with its 'remote object persistence' feature could be interesting for you:

    http://cayenne.apache.org/doc20/remo...nce-guide.html

    with that framework it is possible to communicate with a DB over http

Tags for this Thread

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •