473,322 Members | 1,614 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,322 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 1338
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

1
by: hyperbob | last post by:
Hi, I'm working on a distributed application using Pyro, and I've come across several issues I'm not really sure how to handle, since this is my first distributed application. My application...
2
by: Peter Gordon | last post by:
Is there somethin like tcl "send" command in Python. I would like to be able to exucate calls in a python program on one machine from another machine.
3
by: Michael Rybak | last post by:
Hi, everyone. In topic "2-player game, client and server at localhost", I've asked about subj, and Peter Hansen suggested to switch to Twisted, Pyro or the like. I've tried using Pyro. I've...
0
by: adam | last post by:
I'm using Pyro to develop a distribuited system running my integration test suite I've found a strange behaviour it seems that whenever I have a failed resolve or unregister on a name server,...
38
by: writeson | last post by:
Hi all, At work I'm considering proposing a solution for our distributed processing system (a web based shopping cart that feeds an actual printing production line) based on Pyro. I've done some...
0
by: Sells, Fred | last post by:
I'm using ActiveState python on a windows box to talk to ACtive Directory. I'm running a Pyro Server on the same box. The client is Linux running std Python 2.4. It works just fine until the...
2
by: jamitwidme | last post by:
Hello everyone Can someone help me fix this problem? I am using an example from Pyro(Python Remote Object) website directly. It is the last example from...
0
by: Irmen de Jong | last post by:
I'm happy to announce Pyro 3.8 -- Python's own powerful remote method invocation technology! You can get it via http://pyro.sourceforge.net, then go to the SF project homepage download area. ...
0
by: Chuckk Hubbard | last post by:
The docs say to try to discover the URI on my own if this happens. Could I get a hand doing that? This isn't just something I want to solve on my machine, e.g. by changing my network setup or what...
0
by: Chuckk Hubbard | last post by:
OK, I think I have it. The Manual says to start a Name Server "using the ns command", and I figured out that means using the pyro-ns script. On Mon, Nov 10, 2008 at 10:49 AM, Chuckk Hubbard...
0
by: DolphinDB | last post by:
Tired of spending countless mintues downsampling your data? Look no further! In this article, you’ll learn how to efficiently downsample 6.48 billion high-frequency records to 61 million...
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....

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.