<commit_before>#DDDSample for Ceylon / JEE

This project is a **Ceylon+JEE** port of this [Java+JEE](https://java.net/projects/cargotracker/pages/Home) 
port of the [original Java+Spring DDDSample](http://dddsample.sourceforge.net/) project

##Quickstart

###Build

You need a Ceylon 1.2 distribution available in your path.

At the root directory of
the project execute

* `ceylon compile`
* `ceylon war dddsample/1.0.0  -R webapp`

The war file `dddsample-1.0.0.war` is created at the root of your the project

*(note : at the time of writing Ceylon 1.2 is not yet available, so you may have to recompile a
Ceylon distribution from source)* 

###Deploy

The created war file can be deployed into [Wildfly 9](http://wildfly.org/) (other containers
could be suported in the futur). 

* Copy the war at `wildfly-9.0.0.Final/standalone/deployments`
* Start Wildfly with the script `wildfly-9.0.0.Final/bin/standalone.sh`

The JPA persistent-unit of the application uses the default in memory database preconfigured in
Wildfly 9 (`java:jboss/datasources/ExampleDS`). So this should work out of the box.

###Try it

* In your browser go to http://localhost:8080/dddsample-1.0.0/
* click on the *public landing page* link
* type a cargo name, as suggested, in the search box

Other links are not yet implemented

###Misc

* the project uses a private Ceylon repository for the JEE modules that were not yet available in Herd.
* the project does not use the usual [initialization scheme](https://github.com/ceylon/ceylon-sdk/blob/master/source/com/redhat/ceylon/war/WarInitializer.java) 
of a Ceylon war. Instead, it uses a [modified version of this scheme](https://github.com/ceylon/ceylon-sdk/blob/master/source/com/redhat/ceylon/war/WarInitializer.java)
that had dependencies on Wildfly-specific libraries (the initial scheme did not work when Ceylon code was use too early during
the container startup phase). <commit_msg>cosmetic<commit_after>#DDDSample for Ceylon / JEE

This project is a **Ceylon+JEE** port of this [Java+JEE](https://java.net/projects/cargotracker/pages/Home) 
port of the [original Java+Spring DDDSample](http://dddsample.sourceforge.net/) project

##Quickstart

###Build

You need a Ceylon 1.2 distribution available in your path.

At the root directory of
the project execute

* `ceylon compile`
* `ceylon war dddsample/1.0.0  -R webapp`

The war file `dddsample-1.0.0.war` is created at the root of your the project

*(note : at the time of writing Ceylon 1.2 is not yet available, so you may have to recompile a
Ceylon distribution from source)* 

###Deploy

The created war file can be deployed into [Wildfly 9](http://wildfly.org/) (other containers
could be suported in the futur). 

* Copy the war at `wildfly-9.0.0.Final/standalone/deployments`
* Start Wildfly with the script `wildfly-9.0.0.Final/bin/standalone.sh`

The JPA persistent-unit of the application uses the default in memory database preconfigured in
Wildfly 9 (`java:jboss/datasources/ExampleDS`). So this should work out of the box.

###Try it

* In your browser go to [http://localhost:8080/dddsample-1.0.0/](http://localhost:8080/dddsample-1.0.0/)
* click on the *public landing page* link
* type a cargo name, as suggested, in the search box

Other links are not yet implemented

###Misc

* the project uses a private Ceylon repository for the JEE modules that were not yet available in Herd.
* the project does not use the usual [initialization scheme](https://github.com/ceylon/ceylon-sdk/blob/master/source/com/redhat/ceylon/war/WarInitializer.java) 
of a Ceylon war. Instead, it uses a [modified version of this scheme](https://github.com/ceylon/ceylon-sdk/blob/master/source/com/redhat/ceylon/war/WarInitializer.java)
that had dependencies on Wildfly-specific libraries (the initial scheme did not work when Ceylon code was use too early during
the container startup phase). 
{'fraction_non_alphanumeric': 0.09569254578282177, 'fraction_numerical': 0.014702089244261026, 'mean_word_length': 4.401114206128134, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 6, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1931280', 'n_tokens_mistral': 1242, 'n_tokens_neox': 1180, 'n_words': 468}