Closed zambrovski closed 6 years ago
Hey guys! Is this project still going? I'm very interested in it and I'm quite willing to give it a go to create an example. I'm just curious what state it's in, as the readme doesn't look very detailed yet.
We are currently “finalizing” this, features are complete (enough). But as you noticed, documentation, tests and examples are missing. Please feel free to provide an example pr. Thanks, Jan
That's great guys! Awesome work!
Hey @jangalinski ! I'm having trouble getting CDI to scan my @Aggregate annotated class. Is there some extra registering needed? I'm not sure when AxonCdiExtension.processAggregate needs to be called, currently it's not in my context.
Hi Alex,
please check that you are using the right @Aggregate
from org.axonframework.cdi.stereotype
. It should be detected automatically - you don't need to call any methods from the extensions. I'll construct the example showing the basic usage.
Kind regards,
Simon
Ya I'm using the right one, but I think I didn't have beans.xml with discovery=all. Also intelliJ just decided to wipe clean my entire thing I was almost done...I'll have to start over :/
Pe 7 ian. 2018 15:16, "Simon Zambrovski" notifications@github.com a scris:
Hi Alex,
please check that you are using the right @Aggregate from org.axonframework.cdi.stereotype. It should be detected automatically - you don't need to call any methods from the extensions. I'll construct the example showing the basic usage.
Kind regards,
Simon
— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/holisticon/axon-cdi/issues/1#issuecomment-355822175, or mute the thread https://github.com/notifications/unsubscribe-auth/AJ_PRR7DbjctCov0awKdO4kOVcsoxuZuks5tIMOngaJpZM4RKRt3 .
An empty beans.xml
should work too.
<!-- Marker file indicating CDI should be enabled -->
<beans xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="
http://java.sun.com/xml/ns/javaee
http://java.sun.com/xml/ns/javaee/beans_1_0.xsd">
</beans>
Implement example showing usage of the component