{"id":23338390,"url":"https://github.com/abhirockzz/javaee-cdi-concurrency-utils","last_synced_at":"2025-04-09T22:32:17.820Z","repository":{"id":79125048,"uuid":"88342826","full_name":"abhirockzz/javaee-cdi-concurrency-utils","owner":"abhirockzz","description":"Example of using CDI beans as tasks managed by Java EE Concurrency Utilities","archived":false,"fork":false,"pushed_at":"2017-04-20T12:18:12.000Z","size":9,"stargazers_count":10,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-24T00:24:44.628Z","etag":null,"topics":["cdi","concurrency","javaee-concurrency-utilities","javaee7"],"latest_commit_sha":null,"homepage":"https://abhirockzz.wordpress.com/2017/04/15/using-cdi-with-java-ee-concurrency-utilities","language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/abhirockzz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-04-15T11:29:49.000Z","updated_at":"2019-05-02T01:42:24.000Z","dependencies_parsed_at":"2023-03-12T06:43:21.683Z","dependency_job_id":null,"html_url":"https://github.com/abhirockzz/javaee-cdi-concurrency-utils","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhirockzz%2Fjavaee-cdi-concurrency-utils","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhirockzz%2Fjavaee-cdi-concurrency-utils/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhirockzz%2Fjavaee-cdi-concurrency-utils/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/abhirockzz%2Fjavaee-cdi-concurrency-utils/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/abhirockzz","download_url":"https://codeload.github.com/abhirockzz/javaee-cdi-concurrency-utils/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248123480,"owners_count":21051479,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["cdi","concurrency","javaee-concurrency-utilities","javaee7"],"created_at":"2024-12-21T03:13:46.570Z","updated_at":"2025-04-09T22:32:17.807Z","avatar_url":"https://github.com/abhirockzz.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"## To run on Docker\r\n\r\n- Shortcut\r\n\t- `docker pull abhirockzz/javaee-cdi-concurrency-utils`\r\n\t- `docker run -it -p 8080:8080 abhirockzz/javaee-cdi-concurrency-utils`\r\n\r\n- Build it yourself using the [`Dockerfile`](https://github.com/abhirockzz/javaee-cdi-concurrency-utils/blob/master/Dockerfile) in the project (it [uses this Payara image](https://hub.docker.com/r/airhacks/payara/) as the base)\r\n\t- `docker build -t \u003cyour tag\u003e .`\r\n\t- `docker run -it -p 8080:8080 \u003cyour tag\u003e` \r\n\r\n## To run\r\n\r\n- `git clone` the project and execute `mvn clean install`\r\n- Deploy `javaee-cdi-concurrency-utils.war` in `target` directory to any of the [Java EE 7 containers](http://www.oracle.com/technetwork/java/javaee/overview/compatibility-jsp-136984.html)\r\n\r\n## To check\r\n\r\n- execute a HTTP `POST` to `http://localhost:8080/javaee-cdi-concurrency-utils/tasks/` - [this initiates a task](https://github.com/abhirockzz/javaee-cdi-concurrency-utils/blob/master/src/main/java/com/wordpress/abhirockzz/cdi/concutils/TasksResource.java#L27) and returns the task ID\r\n\r\n![](https://abhirockzz.files.wordpress.com/2017/04/1.jpg)\r\n\r\n- execute a HTTP `GET` to `http://localhost:8080/javaee-cdi-concurrency-utils/tasks/\u003ctaskID\u003e` - [it will give you a JSON payload](https://github.com/abhirockzz/javaee-cdi-concurrency-utils/blob/master/src/main/java/com/wordpress/abhirockzz/cdi/concutils/TasksResource.java#L40) with the task details\r\n\r\n![](https://abhirockzz.files.wordpress.com/2017/04/2.jpg)\r\n\r\n- `POST` a few more tasks....\r\n- execute a HTTP `GET` to `http://localhost:8080/javaee-cdi-concurrency-utils/tasks/all` [to get a JSON payload of all the tasks](https://github.com/abhirockzz/javaee-cdi-concurrency-utils/blob/master/src/main/java/com/wordpress/abhirockzz/cdi/concutils/TasksResource.java#L50)\r\n\r\n![](https://abhirockzz.files.wordpress.com/2017/04/3.jpg)\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhirockzz%2Fjavaee-cdi-concurrency-utils","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fabhirockzz%2Fjavaee-cdi-concurrency-utils","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fabhirockzz%2Fjavaee-cdi-concurrency-utils/lists"}