It does when you check the "Enable Context and Dependency Injection" check box.

     Kay Wrobel

MIS Associate
*Hawk Electronics, Inc.*
800-THE-HAWK
800-843-4295
[email protected]

On 12/13/2012 03:08 PM, Romain Manni-Bucau wrote:
Question from a none netbeans user: when creating a new JavaEE 6
project netbeans doesn't create a beans.xml?

Romain Manni-Bucau
Twitter: @rmannibucau
Blog: http://rmannibucau.wordpress.com/
LinkedIn: http://fr.linkedin.com/in/rmannibucau
Github: https://github.com/rmannibucau



2012/12/13 Howard W. Smith, Jr. <[email protected]>:
I struggled getting mine to work as well, but I was advised to either add
beans.xml to WEB-INF or META-INF folder.

I learned that in NetBeans, for META-INF, you create a new folder in the
same folder that contain all your java code. Netbeans does not like
META-INF/beans.xml, you get squiggly lines etc when trying to code, so the
full path of mine is as follows:

C:\Users\Public\NetBeansProjects\mcms_tomee\web\WEB-INF\beans.xml

Empty beans.xml would be like the following:


<?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>




On Thu, Dec 13, 2012 at 3:56 PM, Kay Wrobel <[email protected]> wrote:

Now CDI is item number one in the feature list of TomEE Web Profile and
has been since version 1.0 if I remember correctly. I just can't get it to
work...


--

------------------------------
The information in this e-mail is confidential and is intended solely for the addressee(s). Access to this email by anyone else is unauthorized. If you are not an intended recipient, you may not print, save or otherwise store the e-mail or any of the contents thereof in electronic or physical form, nor copy, use or disseminate the information contained in the email. If you are not an intended recipient, please notify the sender of this email immediately.

Reply via email to