Commit Graph

56 Commits

Author SHA1 Message Date
Grzegorz Piwowarek 03f530126f
Multiple threads odd-even refactor (#5617)
* encoding

* Converting synchronous and asynchronous API to observables

* Adding different ways of converting sync/async APIs to observalbles.

* Replace anonymous class with lambda

* update based on comment from Grzegorz Piwowarek

* Refactor even-odd semaphore demo

* Remove unrelated files
2018-11-10 12:22:48 +01:00
Tom Hombergs 90135befd9
added link 2018-11-07 20:34:58 +01:00
Tom Hombergs 6bc487bfab
Merge pull request #5428 from vaibs28/master
BAEL-2188 Print even and odd numbers using 2 threads
2018-11-03 21:51:29 +01:00
Vaibhav Sahay b49dd4f1ac
print odd and even using Semaphore 2018-11-02 09:37:00 +05:30
eric-martin b12849dea6 Fixed SemaphoresManualTest 2018-10-27 22:29:02 -05:00
amit2103 ee5fe8faab [BAEL-9461] - Added code examples for difference between thenApply() and thenCompose() 2018-10-14 15:14:27 +05:30
Rokon Uddin Ahmed 3c35e25015 BAEL-9344 (#5435)
* 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

* 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

* Update README.md

* Update README.md
2018-10-12 22:22:56 +02:00
Vaibhav Sahay 8b6e6fd554
initial commit 2018-10-12 00:51:58 +05:30
Kumar Chandrakant 88601730d0 BAEL-2187 - Adding files for the tutorial related to Java Yield (#5169) 2018-09-13 07:34:28 +02:00
sachin29aug 2caf645726 BAEL-8833: Cleanup the maven-dependency-plugin usage 2018-09-07 15:58:10 -04:00
sachin fb0023286a BAEL-7674: Let's make sure our logging configuration has the same pattern 2018-08-21 18:22:53 -04:00
amit2103 c0eca27723 [BAEL-8401] - Moved concurrent locks related codes to core-java-concurrency module 2018-08-19 14:41:53 +05:30
amit2103 0a679c1978 [BAEL-8401] - Added new module core-java-concurrency-collections and moved code and github references from core-java-concurrency module 2018-08-19 10:36:41 +05:30
DOHA 08d4356d5b fix blocking queue 2018-08-18 15:34:42 +03:00
charlesgonzales 671bf20fe8 add/fix links - team BAEL-7962 (#4891)
* 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

* 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

* Update README.md

* Create README.md

* Update README.md

* Update README.md

* Create README.md

* Create README.md
2018-08-05 20:30:25 +02:00
Eugen Paraschiv 22b7cf7957 plugin cleanup 2018-07-15 09:51:16 +03:00
Eugen Paraschiv b3b91b990d plugin cleanup 2018-07-15 09:41:47 +03:00
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
Amit Pandey dfcc0cab05 Bael 6556 2 (#4365)
* Added parent module on poms that have no parent defined

* Removed dependency reduced pom from undertow module

* [BAEL-6556] - Next set of testcase renamed
2018-05-29 22:14:19 +02:00
amit2103 05b7e933bd Bael 5247 (#4175)
* Added parent module on poms that have no parent defined

* Removed dependency reduced pom from undertow module

* Added new parent pom

* initial clean up of child poms

* Added new parent pom

* [BAEL-5247] - New Parents in the tutorials repo
2018-05-05 22:30:00 +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
amit2103 7ae3babd59 Bael 5927 (#4042)
* Added parent module on poms that have no parent defined

* Removed dependency reduced pom from undertow module

* Defined the integration profile in the parent
2018-04-19 09:41:39 +02:00
Loredana Crusoveanu a60f86ddee remove sysout 2018-04-14 18:17:25 +03:00
Loredana Crusoveanu f79236b433 fix volatile test 2018-04-14 18:16:08 +03:00
Rokon Uddin Ahmed 5da2ea995c 08.04.2018 (#3954)
* 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

* 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

* Create 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

* Create README.md

* Update README.md

* Update README.md

* Create README.md

* Update README.md

* Update README.md

* Create README.md

* Update README.md

* Update README.md

* Update README.md
2018-04-11 07:33:18 +02:00
Loredana Crusoveanu 70fd753e48 enable concurrency project (#3709) 2018-02-24 08:14:29 +01:00
ramansahasi a18ce8a380 Bael 1427 Life cycle of thread (#3637)
* Interrupted thread before logging

* abbrevated word thread and interrupted main thread
2018-02-12 09:39:31 -08:00
Ganesh d935985ec1 Priorityjobscheduler (#3583)
* priority based job execution in java

* minor fixes

* updated to use java 8 features

* fix need for type inference

* handle exception

* indentation

* handling exception generated during terminal of normal flow

* handling exception generated during terminal of normal flow

* added comment
2018-02-11 08:59:30 +01:00
ramansahasi 3e4b6df194 Interrupted thread before logging (#3563) 2018-01-31 13:06:16 -08:00
Ganesh 32e309ae4d BAEL-1456 - How to implement task prioritization in Java (#3366)
* priority based job execution in java

* minor fixes

* updated to use java 8 features
2018-01-30 15:55:08 +01:00
ramansahasi 5d6c47789e Logged InterruptedException instead of ignoring it (#3517) 2018-01-26 10:04:38 -08:00
Grzegorz Piwowarek b1520c93fd
Update README.md (#3443) 2018-01-20 11:54:39 +01:00
Rokon Uddin Ahmed c3e8ba4a70 Pull request 17.01 (#3442)
* 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

* 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
2018-01-17 21:53:17 +01:00
Nikhil Khatwani 5b8e84b26c Refaactoring-Thread Interrupt (#3412) 2018-01-14 16:00:32 +01:00
Doha2012 ee86e6b6ad fix blocking tests (#3378)
* make sure modules using java8

* move url matching code

* upgrade boot parent

* minor cleanup

* fix blocking tests
2018-01-08 22:39:01 +01:00
Grzegorz Piwowarek 04df1cfef0 Remove spring-flyway (#3240)
* Remove spring-flyway

* Remove spring-flyway
2017-12-14 08:06:17 -08:00
Rokon Uddin Ahmed b59226a68c 12.12 (#3219)
* Create README.md

* Update 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

* Update README.MD

* Create README.md

* Update readme.md

* Update README.md

* Update README.md

* Update README.md
2017-12-12 07:32:35 +01:00
tamasradu d562f429a1 Radutamas/bael 1265 update junit with lambdas (#3196)
* Code for test article: Different Types of Bean Injection in Spring

* Adding jUnits for test article: Different Types of Bean Injection in Spring

* BAEL-1265: Adding jUnit for article

* BAEL-1265: Closing ExecutorService in jUnit

* BAEL-1265: Using lambdas instead of anonymous classes
2017-12-04 08:34:13 -08:00
ramansahasi 58f8e6163f BAEL-1327 Java Threads: notify and wait (initial commit) (#3160) 2017-11-30 11:01:44 -08:00
Grzegorz Piwowarek 7f2ace0da9
FilesTest fix (#3146)
* FilesTest fix

* StopThreadTest fix
2017-11-27 21:02:42 +01:00
Ahmed Tawila 6435d5723a BAEL-1309 Append Data to a File with Java (#3054)
* Evaluation article: Different Types of Bean Injection in Spring

* added tests & changed configuration to Java-based config

* removed xml config files

* rename unit tests

* BAEL-972 - Apache Commons Text

* remove code from evaluation article

* remove code from evaluation article

* BAEL-972 - Apache Commons Text - added another example

* BAEL-972 - Apache Commons Text - just indentation

* BAEL-994 - TemporalAdjuster in Java

* BAEL-994 - TemporalAdjuster in Java

* BAEL-994 - TemporalAdjuster in Java

* BAEL-994 - TemporalAdjuster in Java

* BAEL-994 - TemporalAdjuster in Java - fix problems

* BAEL-1033 Introduction to StreamUtils

* BAEL-1033 Introduction to StreamUtils

* BAEL-1033 Introduction to StreamUtils

* fix formatting

* BAEL-1033 minor refactor

* BAEL-1035 Introduction to Eclipse Collections

* format

* BAEL-1035 Introduction to Eclipse Collections

* BAEL-1035 Introduction to Eclipse Collections

* BAEL-1035 Introduction to Eclipse Collections

* cleanup

* cleanup

* BAEL-1109 Introduction to JCache

* BAEL-1109 Introduction to JCache

* remove unneeded property in pom.xml

* fix formatting

* close cache instances properly

* remove latest commit

* BAEL-1057 Introduction to rxjava-jdbc

* refactor rxjava-jdbc

* Refactor rxjava-jdbc

* Refactoring rxjava-jdbc

* BAEL-1171 java.lang.String API

* refactor rxjava-jdbc

* refactor String

* String API - move multiple classes into a single class

* move class into test package

* BAEL-1171 String.lang.String API

* BAEL-1171 java.lang.String API

* BAEL-1250 Initializing Arrays in Java

* BAEL-1250 Initializing Arrays in Java

* BAEL-1250 Initializing Arrays in Java

* small fix

* BAEL-1171 java.lang.String API

* BAEL-1263 Daemon Threads in Java

* merge with fork

* BAEL-1263 Daemon Threads in Java

* fix compilation error

* BAEL-1309 Append Data to a File with Java

* fix build fails

* fix test error

* fix build failures

* cleanup

* fix Sneaky Runnable test

* revert sneaky runnable fix attempt

* fix test failure

* fix test failure

* fix all test failures

* fix test failure

* fix test failures

* Nested Classes in Java
2017-11-25 11:18:49 +01:00
Rokon Uddin Ahmed f02ffe9ae6 pull req 16.11 (#3059)
* 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

* Update README.md
2017-11-17 15:00:32 +01:00
Eric Goebelbecker b30097b581 BAEL-1264 - class and tests for killing a thread (#3069) 2017-11-16 15:41:00 -08:00
Grzegorz Piwowarek 00282dd43e
Build fix (#3033) 2017-11-13 18:10:14 +01:00
tamasradu 90c2739563 Radu/bael 1265 junit updates (#2965)
* Code for test article: Different Types of Bean Injection in Spring

* Adding jUnits for test article: Different Types of Bean Injection in Spring

* BAEL-1265: Adding jUnit for article

* BAEL-1265: Closing ExecutorService in jUnit

* BAEL-1265: Adding jUnit for CountDownLatch and example for ExecutorService.awaitTermination
2017-11-05 17:46:29 -08:00
tamasradu 7c12965a45 Radutamas/bael 1265 wait for threads to finish (#2933)
* BAEL-1265: Adding jUnits for the article Wait for Threads in an ExecutorService to Finish

* Fix for BAEL-1263 Daemon Threads in Java (commit: dbeb5f8ba4)

* Ignored jUnits with daemon threads
2017-11-01 08:46:36 -07:00
Mohamed Sanaulla a193fbb53f Updated tests for BAEL-1262 (#2917)
* updating test code for BAEL-1262

* some small change
2017-10-30 09:52:49 -07:00
Ahmed Tawila dbeb5f8ba4 BAEL-1171 java.lang.String API (#2874)
* Evaluation article: Different Types of Bean Injection in Spring

* added tests & changed configuration to Java-based config

* removed xml config files

* rename unit tests

* BAEL-972 - Apache Commons Text

* remove code from evaluation article

* remove code from evaluation article

* BAEL-972 - Apache Commons Text - added another example

* BAEL-972 - Apache Commons Text - just indentation

* BAEL-994 - TemporalAdjuster in Java

* BAEL-994 - TemporalAdjuster in Java

* BAEL-994 - TemporalAdjuster in Java

* BAEL-994 - TemporalAdjuster in Java

* BAEL-994 - TemporalAdjuster in Java - fix problems

* BAEL-1033 Introduction to StreamUtils

* BAEL-1033 Introduction to StreamUtils

* BAEL-1033 Introduction to StreamUtils

* fix formatting

* BAEL-1033 minor refactor

* BAEL-1035 Introduction to Eclipse Collections

* format

* BAEL-1035 Introduction to Eclipse Collections

* BAEL-1035 Introduction to Eclipse Collections

* BAEL-1035 Introduction to Eclipse Collections

* cleanup

* cleanup

* BAEL-1109 Introduction to JCache

* BAEL-1109 Introduction to JCache

* remove unneeded property in pom.xml

* fix formatting

* close cache instances properly

* remove latest commit

* BAEL-1057 Introduction to rxjava-jdbc

* refactor rxjava-jdbc

* Refactor rxjava-jdbc

* Refactoring rxjava-jdbc

* BAEL-1171 java.lang.String API

* refactor rxjava-jdbc

* refactor String

* String API - move multiple classes into a single class

* move class into test package

* BAEL-1171 String.lang.String API

* BAEL-1171 java.lang.String API

* BAEL-1250 Initializing Arrays in Java

* BAEL-1250 Initializing Arrays in Java

* BAEL-1250 Initializing Arrays in Java

* small fix

* BAEL-1171 java.lang.String API

* BAEL-1263 Daemon Threads in Java

* BAEL-1263 Daemon Threads in Java
2017-10-29 22:17:41 +01:00
Mohamed Sanaulla 080af1cb45 adding code for BAEL-1262 (#2866)
* adding code for BAEL-1262

* fixing the build issue by moving the test to test folder
2017-10-25 15:11:28 -07:00