-
Apr 29th, 2009, 11:45 AM
#1
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
-
Apr 29th, 2009, 12:45 PM
#2
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.
-
Apr 29th, 2009, 01:18 PM
#3
thanks a lot man, i'll give a try to that. There are working examples that i can use as guide?
-
Apr 30th, 2009, 01:24 AM
#4
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.
-
May 11th, 2009, 09:25 AM
#5
-
May 12th, 2009, 12:16 AM
#6
Hi Edwind,
if you need more help I will try to help you always I can do it.
Greetings
-
May 14th, 2009, 09:54 AM
#7
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
-
Forum Rules