Skip to main content

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [List Home]
Re: [ejb-dev] Should it be possible to express @DependsOn with module-name instead of file-name-with-extension?

On Tue, 3 Jun 2025 at 22:11, David Blevins <dblevins@xxxxxxxxxxxxx> wrote:
> ...

Thanks for checking.

> this was brittle as jar names contain versions which change frequently and would result in constantly breaking code that would need to be updated.

Yeah, that's my original case exactly...

I've found [3] xsd:documentation for depends-on:

> Each dependent bean is expressed using ejb-link syntax.

which IMO would allow to use module-name as described in [2].
But with dependency configured with DD (still using only GF so far)
with "module-name/bean-name" deployment fails the same (and works with
file-name-with-extension#bean-name) as with @.

If my understanding is correct, then it could just be a defect in GF
to not support it.

And there is also footnote 72 for beanName [4]:

> The Bean Provider may also use this syntax in the beanName element of the EJB annotation.

which I'm not sure I saw working for me either.

I need to reread spec (which at this moment appears to me as not
needing the update in that area), then split and clarify my
expectations/tests.
As of now I'm only getting more and more confused ;)

1. https://jakarta.ee/specifications/enterprise-beans/4.0/jakarta-enterprise-beans-spec-core-4.0#singleton-session-bean-initialization
2. https://jakarta.ee/specifications/enterprise-beans/4.0/jakarta-enterprise-beans-spec-core-4.0#a4057
3. https://jakarta.ee/specifications/enterprise-beans/4.0/jakarta-enterprise-beans-spec-core-4.0#a5910
4. https://jakarta.ee/specifications/enterprise-beans/4.0/jakarta-enterprise-beans-spec-core-4.0#_footnoteref_72

-- 
Piotrek


Back to the top