Axon 2.x to 3.x porting guide

534 views
Skip to first unread message

Joseph Winston

unread,
Jun 29, 2016, 10:40:31 AM6/29/16
to Axon Framework Users
I'd like to move https://github.com/AxonFramework/Axon-trader from Axon 2.4.3 to something closer to 3.0.  Is there a document that explains what needs to be done given the current state of either 3.0-M2 or master?

Thanks

Allard Buijze

unread,
Jul 4, 2016, 5:41:55 AM7/4/16
to Axon Framework Users
Hi Joseph,

documentation is (very high) on our backlog. We will also include (or create a separate) migration guide.
Axon 3 is currently in m2 status. Once we get to a proper release candidate, it will include the documentation.

Kind regards,

Allard

On Wed, Jun 29, 2016 at 4:40 PM Joseph Winston <josephwi...@gmail.com> wrote:
I'd like to move https://github.com/AxonFramework/Axon-trader from Axon 2.4.3 to something closer to 3.0.  Is there a document that explains what needs to be done given the current state of either 3.0-M2 or master?

Thanks

--
You received this message because you are subscribed to the Google Groups "Axon Framework Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to axonframewor...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Joseph Winston

unread,
Jul 4, 2016, 11:47:51 AM7/4/16
to axonfr...@googlegroups.com
Thanks.  Is there anything that a new user of Axon can help with on these tasks?


You received this message because you are subscribed to a topic in the Google Groups "Axon Framework Users" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/axonframework/YV8nBShoLc8/unsubscribe.
To unsubscribe from this group and all its topics, send an email to axonframewor...@googlegroups.com.

Allard Buijze

unread,
Jul 7, 2016, 11:45:56 AM7/7/16
to axonfr...@googlegroups.com
Hi Joseph,

that depends on how new you are, and how far in the deep end you're comfortable jumping.

If you're willing to help on porting the sample application to Axon 3, that'd be great.
Basically what needs to happen is the following:
* update maven dependencies to 3.0-M2
* change aggregates extending AbstractAnnotatedAggregateRoot. Remove extends and statically import the apply method from AggregateLifyCycle.
* Same for AbstractAnnotatedSaga (import lifecycle methods from SagaLiceCycle)
* Replace Spring XML support by Spring JavaConfig
* Define SubscribingEventProcessors for the various components and register the event handlers with them.

The last bullet is probably a bit hard without documentation, but the other should be reasonably 'doable'.

Let me know if you're willing/able to pick any of these tasks...

Cheers,

Allard

Eric Jan Malotaux

unread,
Dec 23, 2016, 4:57:41 AM12/23/16
to Axon Framework Users
Any news on the migration guide?

Allard Buijze

unread,
Dec 26, 2016, 7:45:00 AM12/26/16
to Axon Framework Users
Hi,

the reference guide is up first. When the 3.0 GA release is out, we'll start working on a migration guide.

Cheers,

Allard

Dadepo Aderemi

unread,
Jul 25, 2017, 8:23:07 AM7/25/17
to Axon Framework Users
When the 3.0 GA release is out, we'll start working on a migration guide.

so last weekend I attempted to upgrade a toy project I have in Axon 2 to Axon 3...
After upgrading the version in my pom.xml, I was greeted with numerous compile time errors :)

A couple of packages were gone (org.axonframework.unitofwork, import org.axonframework.commandhandling.annotation, org.axonframework.repository no name a few...)
...more classes than I could count have also disappeared...

Without nowhere to start making sense of what needs to change, I abandoned the idea to upgrade and went out for a walk instead :)

A migration guide would be really really useful! :)

Steven van Beelen

unread,
Jul 25, 2017, 8:58:38 AM7/25/17
to Axon Framework Users
Hi Dadepo,

Definitely got a point there...I'll see what we can do to work on this ASAP.
Thanks for the refresher btw!
If you've got time it would be great of you could share some pitfalls you've come across.

Cheers,

Steven

Jorg Heymans

unread,
Nov 16, 2017, 5:01:36 AM11/16/17
to Axon Framework Users
refresher :-) 

My current thinking is that we'll skip 3.0 and jump straight to 3.1. Will the migration guide be part of the 3.1 release ? I appreciate that it's potentially quite a daunting task :/

Thanks,
Jorg
Reply all
Reply to author
Forward
0 new messages