holixon / axon-cdi

CDI Extension to use AxonFramework 3.x in Container Environments
Apache License 2.0
4 stars 1 forks source link

Provide example. #1

Closed zambrovski closed 6 years ago

zambrovski commented 6 years ago

Implement example showing usage of the component

alexmacavei commented 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.

jangalinski commented 6 years ago

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

alexmacavei commented 6 years ago

That's great guys! Awesome work!

alexmacavei commented 6 years ago

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.

zambrovski commented 6 years ago

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

alexmacavei commented 6 years ago

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 .

zambrovski commented 6 years ago

An empty beans.xmlshould 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>