Bug 1148961 - JBossStandaloneEJBContainerProvider does not respect javax.ejb.embeddable.provider
Summary: JBossStandaloneEJBContainerProvider does not respect javax.ejb.embeddable.pro...
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: EJB
Version: 6.3.2
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: DR4
: EAP 6.4.0
Assignee: jboss-set
QA Contact: Jan Martiska
URL:
Whiteboard:
Depends On:
Blocks: 1136898 1161074
TreeView+ depends on / blocked
 
Reported: 2014-10-02 18:41 UTC by Dominik Pospisil
Modified: 2019-08-19 12:40 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
: 1161074 (view as bug list)
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)

Description Dominik Pospisil 2014-10-02 18:41:23 UTC
JBossStandaloneEJBContainerProvider does not respect javax.ejb.embeddable.provider property as required by EJB 3.1 specification:

22.3.3

...

The EJBContainer bootstrap class will locate all of the container providers by their provider config-
uration files and call EJBContainerProvider.createEJBContainer(Map<?, ?>) on
them in turn until an appropriate backing provider returns an EJBContainer. A provider may deem
itself as appropriate for the embeddable application if any of the following are true :
• The javax.ejb.embeddable.provider property was included in the Map passed to
createEJBContainer and the value of the property is the provider’s implementation
class.
• No javax.ejb.embeddable.provider property was specified.
If a provider does not qualify as the provider for the embeddable application, it must return null when
createEJBContainer is invoked on it.

...


JBossStandaloneEJBContainerProvider implementation always try to instantiate a container regardles of No javax.ejb.embeddable.provider property setting.

This violates EJB specs and makes TCK6 test com/sun/ts/tests/ejb30/lite/packaging/embed/provider/Client.java to pass by pure luck or to fail on JDK8.

Comment 1 Dominik Pospisil 2014-10-02 18:57:23 UTC
PR sent: https://github.com/jbossas/jboss-eap/pull/1762

Comment 2 Jan Martiska 2014-10-14 06:54:32 UTC
Verified in EAP 6.4.0.DR4. TCK regression caused by this is tracked under https://bugzilla.redhat.com/show_bug.cgi?id=1150968


Note You need to log in before you can comment on or make changes to this bug.