On 2010-12-08 18.20, Niclas Hedhman wrote:
* Deployment of Qi4j applications on OSGi platform.
- Fixing all Import/Export Package issues and versionings.
- Ensuring that OSGi Services can be nicely imported to Qi4j
- Exporting of QI4j services to OSGi.
Interesting. Like I said, I've given up on OSGi myself due to packaging
and deployment problems, but those are not inherent problems and so are
theoretically fixable.
- Need a system where Entities can subscribe to 'Domain Events', such
as "Notify me of any Domain Events related to Cargo 123", so that when
[Cargo 123 Loaded in Shanghai on to Vessel Abc at 12:40, 7 Dec 2010]
event is published, some service will create a UnitOfWork and call a
method on the Entity of that subscription. This probably requires a
Pub/Sub abstraction as well at SPI level, for cross-JVM event
forwarding.
In Streamflow we have done similar things a bit different. Entities
should not subscribe to events, but only consume commands (from external
sources), and so what happens is that you instead create an application
service that consumes the events and create the appropriate commands on
the domain. That works really well, even cross-JVM (consume locally by
service, invoke entities remotely, probably hidden under a REST API).
Just need to port the EventSourcing API/SPI/impl to Qi4j. Hopefully this
weekend.
/Rickard
_______________________________________________
qi4j-dev mailing list
[email protected]
http://lists.ops4j.org/mailman/listinfo/qi4j-dev