what version of glassfish are you using?
I agree with your interpretation of the spec that both `beanName` and `DepeondsOn` should support either "ejb-link" syntax, that is `jarName#beanName` or `moduleName/beanName`.
I think what you are seeing is just a bug in Glassfish.
-----Original Message-----
From: ejb-dev <ejb-dev-bounces@xxxxxxxxxxx> On Behalf Of Piotr Zygielo via ejb-dev
Sent: Wednesday, June 4, 2025 5:33 AM
To: ejb developer discussions <ejb-dev@xxxxxxxxxxx>
Cc: Piotr Żygieło <piotr.zygielo@xxxxxxxxx>
Subject: [EXTERNAL] 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
_______________________________________________
ejb-dev mailing list
ejb-dev@xxxxxxxxxxx
To unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/ejb-dev
_______________________________________________
ejb-dev mailing list
ejb-dev@xxxxxxxxxxx
To unsubscribe from this list, visit
https://www.eclipse.org/mailman/listinfo/ejb-dev