Commit Graph

33 Commits

Author SHA1 Message Date
amit2103 a5b5b0fcba [BAEL-12090] - Extract versions into properties 2019-02-04 00:06:11 +05:30
Steven van Beelen 0cf67f5dbe BAEL-2435 Change dependency
Change the autoconfigure dependency to the starter dependency of Axon
2018-12-31 13:45:58 +01:00
Steven van Beelen 03306112bd BAEL-2435 Minor clean ups
-Add toString() function to messages/query-model
-Fix typo in exception
-Reorder event handlers in OrderedProductsEventHandler
-Replace usage of constants for local fields
-Add missing Aggregate test case
2018-12-28 15:58:41 +01:00
Steven van Beelen d5ad67a801 BAEL-2435 Add http resource
Add http resource to try out all the end points when running the
application in Intellij
2018-12-27 10:47:22 +01:00
Steven van Beelen 4c7303c293 BAEL-2435 Rename main file
Rename main file from MessagesRunner to OrderApplication
2018-12-27 10:46:45 +01:00
Steven van Beelen 769af6759e BAEL-2435 Introduce Query message logic
Introduce a FindAllOrderedProductsQuery query message, which is
published on the QueryGateway through the OrderRestEndpoint and handled
by the OrderedProductsEventHandler
2018-12-27 10:39:42 +01:00
Steven van Beelen 84b6dc1dbb BAEL-2435 Switch domain around
Change the domain from 'Messages' to 'Order' as that domain is better
suited for an example project like this. The Query Model would be better
 suited to revolve around the OrderedProducts rather than just printing
 out a line of text. To that end, add a OrderedProduct model with the
 OrderStatus, which is updated in the (renamed)
 OrderedProductsEventHandler upon all the events
2018-12-27 10:36:10 +01:00
Steven van Beelen eab6dfe0dd BAEL-2435 Switch domain around
Change the domain from 'Messages' to 'Order' as that domain is better
suited for an example project like this. Update the endpoint to reflect
the order focus i.o. the message focus. Additionally, add a POST
endpoint which would return an exception due to the state check in the
aggregate
2018-12-27 09:55:49 +01:00
Steven van Beelen bd0a1efe70 BAEL-2435 Switch domain around
Change the domain from 'Messages' to 'Order' as that domain is better
suited for an example project like this. To that end the
MessagesAggregate should be replaced by an OrderAggregate. Additionally,
 add some decision making logic which denies the shipping of an order if
 it hasn't been confirmed yet. Adjust and update thee unit test
 accordingly
2018-12-27 09:51:08 +01:00
Steven van Beelen 2279246a42 BAEL-2435 Switch domain around
Change the domain from 'Messages' to 'Order' as that domain is better
suited for an example project like this. First, update the commands and
events, adding an extra command/event to flesh out the domain some what
2018-12-27 09:39:40 +01:00
Steven van Beelen 557ce65552 BAEL-2435 Update main application
Update the MessagesRunner to be a spring boot application
2018-12-18 15:17:16 +01:00
Steven van Beelen d8ef050867 BAEL-2435 Add JPA and H2 dependencies
Add JPA and H2 dependencies to allow event sourcing, as for event
sourcing and EventStore is mandatory, and to make an EventStore a
database needs to be present for Axon's auto-configuration
2018-12-18 15:16:31 +01:00
Steven van Beelen fe30c44889 BAEL-2435 Add a GUI
-Add spring-boot-starter-web to support rest endpoints
-Add a rest endpoint to spoof some form of UI to publish a message, as
the old main will no longer publish the commands upon start up
2018-12-18 15:15:23 +01:00
Steven van Beelen e731b95ffb BAEL-2435 Rename unit test class
Rename unit test class to actual contain 'UnitTest' per the defined
standards
2018-12-18 15:01:29 +01:00
Steven van Beelen 2b07c0364d BAEL-2435 Change event message package
Change the package of the event messages to coreapi.events to signal
 that the events are part of the API you'd share with the outside
2018-12-18 14:56:23 +01:00
Steven van Beelen 96945027a1 BAEL-2435 Change command message package
Change the package of the command messages to coreapi.commands to signal
 that the commands are part of the API you'd share with the outside
2018-12-18 14:55:28 +01:00
Steven van Beelen aaf2ef2227 BAEL-2435 Change eventhandlers package
Change eventhandlers package to querymodel package per best practices
2018-12-18 14:54:07 +01:00
Steven van Beelen 00b297a4d0 BAEL-2435 Rename aggregate test
Rename aggregate test from MessagesAggregateIntegrationTest to
MessagesAggregateTest, as it's not an integration test but a regular
unit test
2018-12-18 14:53:43 +01:00
Steven van Beelen 3e3210a803 BAEL-2435 Change aggregate package
-Change aggregate package to commandmodel package per best practice
-Move the aggregate test to the same package for the test directory
2018-12-18 14:52:54 +01:00
Steven van Beelen 3553fb7506 BAEL-2435 Update commands and events
-Change TargetAggregateIdentifier import statement to the new location
-Add equals/hashcode as best practice for commands and events
-Add description
-Change parent to parent-boot-2 to leverage a spring boot start up
approach
2018-12-18 14:49:30 +01:00
Steven van Beelen 11b1112771 BAEL-2435 Update the event handler
Change the event handler to become a spring service, as this way Axon
will automatically pick it up as an event handling component
2018-12-18 14:48:10 +01:00
Steven van Beelen bd4881d478 BAEL-2435 Update Aggregate in regards to latest axon version
-Replace old import statements for the new locations
-Mark the aggregate as @Aggregate to make it autowired through the
spring boot starter
-Move all command handlers/decision making functions to the top of the
file
-Rename the command handler to `handle` as a best practice for command
handlers
-Use @EventSourcingHandler i.o. @EventHandler as a best practice for
event handlers in Aggregates, as those only are used to 'source' the
aggregate
-Update test case according to latest standards
2018-12-18 14:47:23 +01:00
Steven van Beelen cf56b33b9b BAEL-2435 Update pom file
-Add description
-Change parent to parent-boot-2 to leverage a spring boot start up
approach
-Replace core dependency for axon-spring-boot-autoconfigure excluding
axon-server as we cant start that up for this use case
-Add spring-boot-autoconfigure dependency
-Adjust the axon version to 4.0.3
2018-12-18 14:43:32 +01:00
Dhawal Kapil 4058bfc601 BAEL-9567 Align module names, folder names and artifact id
- Added "name" in pom.xml whereever it was missing and aligned the present ones with the artifactid and foldername
2018-11-30 22:16:08 +05:30
amit2103 d268ffa5c9 [BAEL-7670] Added logback.xml in missing modules in src/main/resources 2018-08-05 18:40:49 +05:30
Sanjay Patel cddf858c05 BAEL-5246: pom cleanup (#4620)
* BAEL-5246: round 1 of pom cleanup - upto "jersey" project

* BAEL-5246: Initial pass for pom cleanup - upto spring-cloud

* BAEL-5246: pom cleanup upto testing-modules/junit5

* BAEL-5246: pom cleanup - upto xstream

* BAEL-5246: pom cleanup - last round (before review)
2018-07-12 09:04:54 +02:00
amit2103 f2128ad054 Bael 5249 cleanup (#4108)
* Added parent module on poms that have no parent defined

* Removed dependency reduced pom from undertow module

* [BAEL-5249] - 21.02 - pom cleanup - formatted pom.xml
2018-04-26 14:37:47 +02:00
amit2103 ba1ba8455d Bael 5249 (#4052)
* Added parent module on poms that have no parent defined

* Removed dependency reduced pom from undertow module

* Defined the integration profile in the parent

* 21.02 - pom cleanup

* 21.02 - pom cleanup

* 21.02 - pom cleanup

* 21.02 - pom cleanup

* Spring-dependency injection

* BAEL-1683-Guide to Java Clock class

* BAEL-1683-Guide to Java Clock class

* added article link

* added article link

* fixed link

* refactoring packages and using generics

* BAEL-717: Singleton Session Bean. (#4046)

* BAEL-717: Singleton EJB Bean

Files for BAEL-717:Singleton EJB Bean.

* BAEL-717: Singleton EJB Bean

Corrected Indentation.

* BAEL-717: Singleton EJB Bean

Corrected Indentation.

* BAEL-717: Singleton EJB Bean

Corrected Indentation.

* BAEL-717: Singleton EJB Bean

Corrected Indentation.

* BAEL-717: Singleton EJB Bean

Changed artifactId value.

* BAEL-717: Singleton EJB Bean.

Added module for Singleton EJB Bean.

* BAEL-717: Singleton EJB Bean. 

Removed Singleton EJB Bean Module.

* BAEL-717: Singleton EJB Bean

Changed the JNDI Lookup name.

* BAEL-717: Singleton EJB Bean. 

Added the "singleton-ejb-bean" module.

* BAEL-717: Singleton EJB Bean.

Corrected Indentation.

* BAEL-717: Singleton EJB Bean

Corrected Indentation.

* BAEL-717: Singleton EJB Bean.

Corrected Indentation.

* BAEL-717: Singleton EJB Bean.

Corrected Indentation.

* BAEL-717:Singleton EJB Bean.

Corrected Indentation.

* BAEL-717:Singleton EJB Bean.

Corrected Indentation.

* BAEL-717: Singleton Session Bean.

Added class for Bean-Managed concurrrency.
Changed class name from CountryStateCacheBean to CountryStateContainerManagedBean.

* BAEL-717: Singleton Session Bean.

Changing the name of the class to CountryStateContainerManagedBean.

* BAEL-717: Singleton Session Bean.

Added method to test Bean-Managed concurrency.

* Get Latest.

* deleting CountryStateBeanManagedBean for new file.

* deleting CountryStateCacheBean for new file.

* deleting CountryStateContainerManagedBean for new file.

* BAEL-717: Singleton Session Bean.

Adding file for Bean with Bean-Managed concurrency.
Changing file name for original file to CountryStateContainerManagedBean with Container-Managed concurrency.

* Deleting file for new checkin.

* BAEL-717: Singleton Session Bean.

Added test case for Bean-Manged concurrency.
Change in JNDI names.

* BAEL-717: Singleton Session Bean.

Changed the assert method parameter order and null check in test cases.

* BAEL-717:Singleton Session Bean

Removed volatile keyword for the variable countryStatesMap. Marking it as final.

* [BAEL-1641] Find all pairs of numbers in an array that add up to a given sum (#3890)

* [BAEL-1641] Find all pairs of numbers in an array that add up to a given sum

* Commiting editor's suggested changes

* Commiting article Spring Data Reactive Mongo DB microservice in Kotlin

* Revert commit for BAEL 1687 - Moving those files to a new branch

* Use AssertJ and BDD-style on unit testing

* BAEL 1639: added singleton examples and test. (#3977)

* BAEL-1701 (#4012)

* BAEL-1701: Create SQSApplication, add most functionality (still need to format, and add queue monitoring)

* BAEL-1701: Complete examples

* added article links

* removed folder "SpringDependencyInjection"
e Please enter the commit message for your changes. Lines starting

* BAEL-1706 - optional parameters in java (#4050)

* BAEL-1706 - optional parameters in java

* minor adjustments per review

* add tests
* fix formatting
* fix constructor issue with MultiVitaminOverloading

* BAEL-1706 Test name change, formatting

* working with booleans in thymeleaf (#4061)

* BAEL-1725 Java Pass-by-reference vs Pass-by-value - First commit (#4058)

* BAEL-1725 Java Pass-by-reference vs Pass-by-value - First commit

* updated test cases

* Update README.md

* Demonstration of Java assert

* BAEL-1679 (#3959)

* BAEL-1412 add java 8 spring data features

* BAEL-21 new HTTP API overview

* BAEL-21 fix executor

* BAEL-1432 add custom gradle task

* BAEL-1567 add samples of cookie and session in serlvet

* BAEL-1567 use stream api

* BAEL-1567 fix optional

* BAEL-1679 add query annotation jpa spring data

* BAEL-1679 added new junits

* BAEL-1679 use assertJ, use givenWhenThen naming convention

* 21.02 - pom cleanup

* 21.02 - pom cleanup

* 21.02 - pom cleanup

* spring-data final

* service locator pattern

* service locator pattern

* variable name changes

* Spring MVC @PathVariable dot (.) get truncated

* testing changes

* Update README files (#4065)

* BAEL-1612: Update README

* BAEL-1562: Update README

* BAEL-1562: Update README

* BAEL-1369

* BAEL-1369

* BAEL-1369

* remove comments

* Back-link corrected (#4071)

* Back-link corrected (#4073)

* Back-link added (#4074)

* Back-link added (#4075)

* Back-link added (#4076)

* Back-link added (#4077)

* Back-link added (#4078)

* Back-link added (#4080)

* Back-link added (#4081)

* Back-link added (#4083)

* Back-link corrected (#4086)

* Back-link added (#4087)

* Back-link added (#4091)

* Back-link added (#4089)

* added example code for Java mail (#4101)

* Back-link added (#4099)

* Back-link added (#4088)

* Back-link added (#4082)

* 21.02 - pom cleanup

* 21.02 - pom cleanup

* 21.02 - pom cleanup

* 21.02 - pom cleanup
2018-04-26 08:50:35 +02:00
Doha2012 48cd6f876f Fix test names (#1853)
* upgrade to spring boot 1.5.2

* add full update to REST API

* modify ratings controller

* upgrade herold

* fix integration test

* fix integration test

* minor fix

* fix integration test

* fix integration test

* minor cleanup

* minor cleanup

* remove log4j properties

* use standard logbook.xml

* remove log4j dependencies

* remove commons-logging

* merge

* fix conflict

* exclude commons-logging dependency

* cleanup

* minor fix

* minor fix

* fix dependency issues

* Revert "fix dependency issues"

This reverts commit 83bf1f9fd2e1a9a55f9cacb085669568b06b49ec.

* fix dependency issues

* minor fix

* minor fix

* minor fix

* cleanup generated files

* fix commons-logging issue

* add parent to pom

* cleanup parent dependencies

* cleanup pom

* cleanup pom

* add missing parent

* fix logging issue

* fix test names
2017-05-15 11:35:14 -05:00
Doha2012 7c73abdede cleanup pom (#1836)
* upgrade to spring boot 1.5.2

* add full update to REST API

* modify ratings controller

* upgrade herold

* fix integration test

* fix integration test

* minor fix

* fix integration test

* fix integration test

* minor cleanup

* minor cleanup

* remove log4j properties

* use standard logbook.xml

* remove log4j dependencies

* remove commons-logging

* merge

* fix conflict

* exclude commons-logging dependency

* cleanup

* minor fix

* minor fix

* fix dependency issues

* Revert "fix dependency issues"

This reverts commit 83bf1f9fd2e1a9a55f9cacb085669568b06b49ec.

* fix dependency issues

* minor fix

* minor fix

* minor fix

* cleanup generated files

* fix commons-logging issue

* add parent to pom

* cleanup parent dependencies

* cleanup pom
2017-05-12 13:32:54 -05:00
Doha2012 35231d0c19 cleanup parent dependencies (#1828)
* upgrade to spring boot 1.5.2

* add full update to REST API

* modify ratings controller

* upgrade herold

* fix integration test

* fix integration test

* minor fix

* fix integration test

* fix integration test

* minor cleanup

* minor cleanup

* remove log4j properties

* use standard logbook.xml

* remove log4j dependencies

* remove commons-logging

* merge

* fix conflict

* exclude commons-logging dependency

* cleanup

* minor fix

* minor fix

* fix dependency issues

* Revert "fix dependency issues"

This reverts commit 83bf1f9fd2e1a9a55f9cacb085669568b06b49ec.

* fix dependency issues

* minor fix

* minor fix

* minor fix

* cleanup generated files

* fix commons-logging issue

* add parent to pom

* cleanup parent dependencies
2017-05-11 11:02:04 -05:00
mariiakulik 6300112fc6 README files update (#1435)
* Create README.md

* Update README.md

* Update README.md

* Create README.md

* Update README.md

* Update README.md

* Update README.md

* Create README.md

* Update README.md

* Create README.md

* Update README.md

* Create README.md

* Update README.md

* Update README.md

* Create README.md

* Create README.md

* Update README.md

* Update README.md

* Update README.md

* Create README.md

* Create README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Create README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.MD

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Update README.md

* Create README.md

* Create README.md

* Update README.md

* Create README.md

* Update README.md

* Update README.md

* Create README.md

* Create README.md

* Update README.md

* Update README.md

* Update README.MD

* Update README.MD

* Create README.md
2017-03-18 20:25:06 +01:00
Tomasz Lelek a419237226 BAEL-550 Axon framework
* BEEL-550 create axon module

* BEEL-550 proper naming

* BEEL-550 better example of message service

* BEEL-550 proper name of method

* BEEL-550 remove not needed comments

* BEEL-550 proper message

* BEEL-550 axon test scope test

* BEEL-550 tries to migrate to axon 3

* BEEL-550 migrate to vesrion 3 successfull
2017-03-08 10:45:51 +01:00