Bug 908195 - JNDI View does not work after binding EJB to java:global/MyBean
Summary: JNDI View does not work after binding EJB to java:global/MyBean
Keywords:
Status: CLOSED CURRENTRELEASE
Alias: None
Product: JBoss Enterprise Application Platform 6
Classification: JBoss
Component: EJB
Version: 6.0.1
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ER2
: EAP 6.1.0
Assignee: Jaikiran Pai
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2013-02-06 06:15 UTC by James Livingston
Modified: 2018-12-01 17:08 UTC (History)
4 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed:
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Issue Tracker AS7-6060 0 Major Resolved naming's :jndi-view operation failing with standalone-full.xml configuration 2020-04-08 08:17:58 UTC

Description James Livingston 2013-02-06 06:15:10 UTC
If you specify the name attribute in the @EJB annotation to bind it directly under java:global (and not a sub context), the JNDI view operation in the management console will fail.


To reproduce, follow the steps at https://docs.jboss.org/author/display/AS71/JNDI+Reference and deploy an EJB like:
--
package com.example;
 
import javax.ejb.EJB;
import javax.ejb.Stateless;
 
@Stateless
@EJB(name = "java:global/MyBean", beanInterface = MyBean.class)
public class MyBean
{
}
--


Then go to the management console, and JNDI View. If the @EJB name specifies a sub-context (e.g. java:global/xxx/MyBean) it will work, so that is a work-around

Comment 1 James Livingston 2013-02-06 06:17:47 UTC
This is fixed by AS7-6060, in the master (AS 7.2) branch

Comment 2 Ondrej Chaloupka 2013-03-07 14:11:49 UTC
Verified on EAP 6.1.0.ER2.

Just a note. The problematic case is more likely this one:
@Stateless
@EJB(name = "java:global/MyBean", beanInterface = MyBeanInterface.class)
public class MyBean implements MyBeanInterface {
  ...	
}


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