Skip to content

Instantly share code, notes, and snippets.

@vanduc1102
Created May 21, 2015 09:41
Show Gist options
  • Save vanduc1102/682d7d17706f1ca7874a to your computer and use it in GitHub Desktop.
Save vanduc1102/682d7d17706f1ca7874a to your computer and use it in GitHub Desktop.
Using Inject JEE
<?xml version="1.0" encoding="UTF-8"?>
<beans xmlns="http://java.sun.com/xml/ns/javaee"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/beans_1_0.xsd">
</beans>
@vanduc1102
Copy link
Author

If you want to use @Inject inside Java EE project.

You should add Beans.xml file.

Otherwire the @Inject will return NULL object.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment