Repository: tomee
Updated Branches:
  refs/heads/develop 0eaf73412 -> 5e71da640


don't add new ejb bean in bean manager


Project: http://git-wip-us.apache.org/repos/asf/tomee/repo
Commit: http://git-wip-us.apache.org/repos/asf/tomee/commit/5e71da64
Tree: http://git-wip-us.apache.org/repos/asf/tomee/tree/5e71da64
Diff: http://git-wip-us.apache.org/repos/asf/tomee/diff/5e71da64

Branch: refs/heads/develop
Commit: 5e71da640cd35b91848a63030d0391e87c3316d7
Parents: 0eaf734
Author: Romain Manni-Bucau <[email protected]>
Authored: Tue Nov 25 19:18:02 2014 +0100
Committer: Romain Manni-Bucau <[email protected]>
Committed: Tue Nov 25 19:18:02 2014 +0100

----------------------------------------------------------------------
 .../src/main/java/org/apache/openejb/cdi/CdiPlugin.java          | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/tomee/blob/5e71da64/container/openejb-core/src/main/java/org/apache/openejb/cdi/CdiPlugin.java
----------------------------------------------------------------------
diff --git 
a/container/openejb-core/src/main/java/org/apache/openejb/cdi/CdiPlugin.java 
b/container/openejb-core/src/main/java/org/apache/openejb/cdi/CdiPlugin.java
index 12a344a..c62a0a3 100644
--- a/container/openejb-core/src/main/java/org/apache/openejb/cdi/CdiPlugin.java
+++ b/container/openejb-core/src/main/java/org/apache/openejb/cdi/CdiPlugin.java
@@ -409,9 +409,7 @@ public class CdiPlugin extends AbstractOwbPlugin implements 
OpenWebBeansJavaEEPl
 
     @Override
     public <T> Bean<T> defineNewSessionBean(final Class<T> clazz) {
-        final NewCdiEjbBean<T> newBean = new 
NewCdiEjbBean<T>(findBeanContext(webBeansContext, clazz).get(CdiEjbBean.class));
-        webBeansContext.getBeanManagerImpl().addBean(newBean);
-        return newBean;
+        return new NewCdiEjbBean<T>(findBeanContext(webBeansContext, 
clazz).get(CdiEjbBean.class));
     }
 
     private static Map<Class<?>, BeanContext> pluginBeans(final 
WebBeansContext ctx) {

Reply via email to