{"id":20444097,"url":"https://github.com/tknerr/sample-ejb-app","last_synced_at":"2025-06-12T05:07:52.372Z","repository":{"id":12551440,"uuid":"15221683","full_name":"tknerr/sample-ejb-app","owner":"tknerr","description":"Sample WebApp using EJBs","archived":false,"fork":false,"pushed_at":"2014-04-23T10:07:14.000Z","size":296,"stargazers_count":2,"open_issues_count":0,"forks_count":6,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-12T23:53:42.612Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/tknerr.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2013-12-16T09:19:44.000Z","updated_at":"2022-03-28T21:23:30.000Z","dependencies_parsed_at":"2022-09-07T09:30:45.045Z","dependency_job_id":null,"html_url":"https://github.com/tknerr/sample-ejb-app","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/tknerr/sample-ejb-app","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tknerr%2Fsample-ejb-app","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tknerr%2Fsample-ejb-app/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tknerr%2Fsample-ejb-app/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tknerr%2Fsample-ejb-app/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tknerr","download_url":"https://codeload.github.com/tknerr/sample-ejb-app/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tknerr%2Fsample-ejb-app/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":259402144,"owners_count":22851877,"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":[],"created_at":"2024-11-15T09:51:13.571Z","updated_at":"2025-06-12T05:07:52.352Z","avatar_url":"https://github.com/tknerr.png","language":"Java","funding_links":[],"categories":[],"sub_categories":[],"readme":"\n## Headline\n\nThis is a sample Maven Java EE ear/war/ejb project demonstrating dependency injection via annotations (e.g. `@Stateless`, `@EJB`) which can be overridden from XML deployment descriptors (e.g. `ejb-jar.xml` or `application.xml`).\n\n## The Problem\n\nAs long as there is only a single implementation for a given bean interface, there is no problem at all. Once you add additional bean implementations you have to specify which implementation to use, otherwise the deployment will fail.\n\n## The Solution\n\nThere are two use cases:\n\n1.  All EJB implementations are in the same ejb module \n    * use the `ejb-jar.xml` in the ejb module to specify the bean implementation\n    * working sample: browse [sample-ejb-app@249cbe](https://github.com/tknerr/sample-ejb-app/tree/249cbe7247095495f9875f9aaf0334efbb8a1304)\n2.  EJB implementations are spread across multiple ejb modules\n    * use the `application.xml` in the ear project to specify the bean implementation\n    * working sample: browse [sample-ejb-app@d6659a](https://github.com/tknerr/sample-ejb-app/tree/d6659adef967fdc20dcfd6473665480695c9103c)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftknerr%2Fsample-ejb-app","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftknerr%2Fsample-ejb-app","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftknerr%2Fsample-ejb-app/lists"}