Skip to content

Instantly share code, notes, and snippets.

@cajar1988
Created September 17, 2013 18:03
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
Star You must be signed in to star a gist
Save cajar1988/7fc310a509dce21d7d5b to your computer and use it in GitHub Desktop.
object BeanManagerProvider {
def retrieve(): BeanManager = {
val initialContext = new InitialContext
initialContext.lookup("java:comp/BeanManager").asInstanceOf[BeanManager]
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment