tomee-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Dale Green (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (TOMEE-2205) The sort method in References removes entries
Date Fri, 03 Aug 2018 09:30:00 GMT

     [ https://issues.apache.org/jira/browse/TOMEE-2205?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Dale Green updated TOMEE-2205:
------------------------------
    Description: 
This is a bug in openejb.

The sort method in References [https://git-wip-us.apache.org/repos/asf?p=tomee.git;a=blob;f=container/openejb-core/src/main/java/org/apache/openejb/util/References.java;hb=bf929780ae384de305388594c7227c73a3193f9a]
converts the List to a LinkedHashMap and this may (and actually does!) lead to removing entries.
The issue was introduced probably here: [https://git-wip-us.apache.org/repos/asf?p=tomee.git;a=commitdiff;h=0093a759f19f59397011d9075d1eb1c916cff9cb]
.

 

I do not know at how many places it is used, but here is my problem with it: I have two pojects/EJBs
and want to test them using openejb. Each project has its own bean (Startup + Singleton),
but those 2 beans have the same class name. To be able to start the container I had to use
something like 
{code:java}
System.setProperty("openejb.jndiname.format", "{moduleId}/{deploymentId}{interfaceType.annotationName}");
{code}
. Now both beans are detected, but only the second one is started. The first one is lost in
the sort method.

  was:
This is a bug in openejb.

The sort method in References [https://git-wip-us.apache.org/repos/asf?p=tomee.git;a=blob;f=container/openejb-core/src/main/java/org/apache/openejb/util/References.java;hb=bf929780ae384de305388594c7227c73a3193f9a]
converts the List to a LinkedHashMap and this may (and actually does!) lead to removing entries.
The issue was introduced probably here: [https://git-wip-us.apache.org/repos/asf?p=tomee.git;a=commitdiff;h=0093a759f19f59397011d9075d1eb1c916cff9cb]
.

 

I do not know at how many places it is used, but here is my problem with it: I have two pojects/EJBs
and want to test them using openejb. Each project has its own bean (Startup + Singleton),
but those 2 beans have the same class name. To be able to start the container I had to use
something like System.setProperty("openejb.jndiname.format", "\{moduleId}/\{deploymentId}{interfaceType.annotationName}");.
Now both beans are detected, but only the second one is started. The first one is lost in
the sort method.


> The sort method in References removes entries
> ---------------------------------------------
>
>                 Key: TOMEE-2205
>                 URL: https://issues.apache.org/jira/browse/TOMEE-2205
>             Project: TomEE
>          Issue Type: Bug
>            Reporter: Dale Green
>            Priority: Minor
>              Labels: openejb
>
> This is a bug in openejb.
> The sort method in References [https://git-wip-us.apache.org/repos/asf?p=tomee.git;a=blob;f=container/openejb-core/src/main/java/org/apache/openejb/util/References.java;hb=bf929780ae384de305388594c7227c73a3193f9a]
converts the List to a LinkedHashMap and this may (and actually does!) lead to removing entries.
The issue was introduced probably here: [https://git-wip-us.apache.org/repos/asf?p=tomee.git;a=commitdiff;h=0093a759f19f59397011d9075d1eb1c916cff9cb]
.
>  
> I do not know at how many places it is used, but here is my problem with it: I have two
pojects/EJBs and want to test them using openejb. Each project has its own bean (Startup +
Singleton), but those 2 beans have the same class name. To be able to start the container
I had to use something like 
> {code:java}
> System.setProperty("openejb.jndiname.format", "{moduleId}/{deploymentId}{interfaceType.annotationName}");
> {code}
> . Now both beans are detected, but only the second one is started. The first one is lost
in the sort method.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Mime
View raw message