471,356 Members | 1,519 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,356 software developers and data experts.

RMI with Pyro et al

I need a simple client/server architecture with clients on linux and serverson windows. There is no UI in this part, just business rules and access control.

Pyro seems pretty cool for this due to it's simplicity. I'm just starting with it and have not been able to get the server side to "see" changes to a module. The only way I can stop the server is with the Task Manager. Can anyone offer some insight into
1. stopping/starting the server - perhaps as a windows service.
2. getting the server to recognize new modules "on the fly", i.e. when the .py file is changed.

I'm not doing any UI stuff, so I don't want to deal with HTTP and a webserver. I also do not have any RDBMS involved. I like the idea of passing objects the way pyro does it.

If anyone thinks there is a better python tool for doing this, I would like to know.

---------------------------------------------------------------------------
The information contained in this message may be privileged and / or
confidential and protected from disclosure. If the reader of this message is
not the intended recipient, you are hereby notified that any dissemination,
distribution or copying of this communication is strictly prohibited. If you
have received this communication in error, please notify the sender
immediately by replying to this message and deleting the material from any
computer.
---------------------------------------------------------------------------
Oct 10 '07 #1
1 1257
Sells, Fred schrieb:
I need a simple client/server architecture with clients on linux and servers on windows. There is no UI in this part, just business rules and access control.

Pyro seems pretty cool for this due to it's simplicity. I'm just starting with it and have not been able to get the server side to "see" changes to a module. The only way I can stop the server is with the Task Manager. Can anyone offer some insight into
1. stopping/starting the server - perhaps as a windows service.
2. getting the server to recognize new modules "on the fly", i.e. when the .py file is changed.
That can be done, but isn't supported out-of-the-box. Essentially, you
have to create a watch-thread that checks timestamps on python-files and
then restarts some service if some change.

However, it might be difficult to make that play nicely with pyro -
after all, it stores some state, reloading stuff makes that go away.

So - I wouldn't advice to really implement that. Why do you want that
anyway? Does startuptime of a script really bother you? shouldn't take
more than a few seconds.

Diez
Oct 10 '07 #2

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

1 post views Thread by hyperbob | last post: by
2 posts views Thread by Peter Gordon | last post: by
3 posts views Thread by Michael Rybak | last post: by
reply views Thread by adam | last post: by
38 posts views Thread by writeson | last post: by
reply views Thread by Sells, Fred | last post: by
2 posts views Thread by jamitwidme | last post: by
reply views Thread by Irmen de Jong | last post: by
reply views Thread by Chuckk Hubbard | last post: by
reply views Thread by Chuckk Hubbard | last post: by

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.