Skip to content

Commit

Permalink
WELD-1338 Not every SessionBean is a passivation capable dependency!
Browse files Browse the repository at this point in the history
  • Loading branch information
jharting committed Mar 19, 2013
1 parent 083e5c7 commit 331ca92
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion impl/src/main/java/org/jboss/weld/bean/SessionBean.java
Expand Up @@ -272,7 +272,7 @@ public boolean isPassivationCapableBean() {

@Override
public boolean isPassivationCapableDependency() {
return true; // all session beans are passivation capable dependencies
return (ejbDescriptor.isStateful() && isPassivationCapableBean()) || ejbDescriptor.isSingleton() || ejbDescriptor.isStateless();
}

@Override
Expand Down

0 comments on commit 331ca92

Please sign in to comment.