3 Replies Latest reply on Mar 29, 2009 9:36 PM by Gavin King

    Declaring Beans from xml

    Martin Eigenbrodt Newbie

      I've tried to play with beans.xml but had no success. Does declaring beans from xml already work?


      I've tried this one:


      <Beans xmlns="urn:java:ee">
          <Integer>
              <Named>TestInt</Named>
              <value>4711</value>
          </Integer>
      </Beans>
      


      Should give me a named bean, but from the JBoss logfile it doesn't look like.


      This should throw an Definition Exception, since there is no such class:


      <Beans xmlns="urn:java:ee">
          <asdfkhlsadklfsd/>
      </Beans>
      



      However the beans.xml is beeing parsed since changing it to be non xml gives an org.xml.sax.SAXParseException.