Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SEAMFACES-158: Added more ways to obtain BeanManager #26

Merged
merged 1 commit into from May 16, 2011

Conversation

chkal
Copy link
Contributor

@chkal chkal commented May 14, 2011

I created a small patch for SEAMFACES-158. I added three additional lookups to obtain the BeanManager in case the injection into the listener did not work correctly:

  1. Check the servlet context attribute "javax.enterprise.inject.spi.BeanManager" which is supported by Weld 1.0.x and OpenWebBeans.
  2. Check the servlet context attribute "org.jboss.weld.environment.servlet.javax.enterprise.inject.spi.BeanManager" which is supported by Weld 1.1.x.
  3. Use Solder's BeanManagerLocator.

I think this is a nice solution to work around this issue. I use the first two servlet context attribute lookups also in the PrettyFaces code and it works very well.

…ch the injection into the listener didn't work
bleathem added a commit that referenced this pull request May 16, 2011
SEAMFACES-158: Added more ways to obtain BeanManager
@bleathem bleathem merged commit 0a5f977 into seam:master May 16, 2011
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
2 participants