Hi,
Is there an easy way to incorporate events into Spring Python (i.e. in process not just using JMS) ?
Hi,
Is there an easy way to incorporate events into Spring Python (i.e. in process not just using JMS) ?
If you are thinking about the type of events that Spring Java supports through the container, then no, we haven't implemented that yet.
Greg L. Turnquist (@gregturn), SpringSource/VMware
Project Lead: Spring Python and author of Spring Python 1.1 and Python Testing Cookbook.
Listen to Pond Jumpers, the international podcast for open source developers.
These comments are my own personal opinions, and do not reflect those of my company.
As a side note, I've already had someone suggest we need a Spring Python Integration module. Again, time is our biggest limitation.![]()
Greg L. Turnquist (@gregturn), SpringSource/VMware
Project Lead: Spring Python and author of Spring Python 1.1 and Python Testing Cookbook.
Listen to Pond Jumpers, the international podcast for open source developers.
These comments are my own personal opinions, and do not reflect those of my company.
An idea I've been thinking of lately is to have an in-process message broker, something that would allow for following constructs:
anwars99, is that what you meant? What sort of an event-driven architecture would you like to see?Code:# (pseudo code, not yet implemented) # module 1 from springpython import broker def callback(event): # process event pass broker.sub("MessageName", callback) # module 2 from springpython import broker class MyEventData(object): def __init__(self, foo, bar): self.foo = foo self.bar = bar event1 = MyEventData(1, 2) event2 = MyEventData(1, 2) # module1's callback will now receive those two events broker.pub("MessageName", event1) broker.pub("MessageName", event2)
Dariusz Suchojad