Skip to content

Asynchronous notification process in JavaEE 7 using CDI events.

Notifications You must be signed in to change notification settings

jannie-louwrens/SampleNotificationInJavaEE7

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Sample Asynchronous Notifications in JavaEE 7

Asynchronous notification process in JavaEE 7 using CDI events.

You can read the article at:

Requirements

  • Java 7 or above
  • Maven

Installation

In the directory where the code was installed, execute the CLI command:

  • mvn test
Expected results

In the console you should see the following messages:

Jun 01, 2017 10:57:20 AM org.apache.deltaspike.testcontrol.api.junit.CdiTestSuiteRunner$LogRunListener testStarted
INFO: [run] net.teksoft.demo.registration.RegistrationServiceTest#testWebOrderEvent
Busy registering student: Roxy in course: Science 101
Sleep for a while to clearly show the effect of asynchronous.
Sending notification now:
You have successfully been registered.
Fired notification event.
Jun 01, 2017 10:57:30 AM org.apache.deltaspike.testcontrol.api.junit.CdiTestSuiteRunner$LogRunListener testFinished
INFO: [finished] net.teksoft.demo.registration.RegistrationServiceTest#testWebOrderEvent

About

Asynchronous notification process in JavaEE 7 using CDI events.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages