0 Replies Latest reply on Jul 25, 2011 4:41 AM by redcar

    Configuration of Attributes of a EJB

    redcar

      Hallo,

       

      I have a configuration of my TestBean like this:

       

      public class TestBean implements TestBeanRemote, TestBeanLocal

      {

        @Resource

        (

          name = "adminEmail",

          type = String.class,

          shareable=true

        )

        String adminEmail;

       

       

        public void sayHello()

        {

          System.out.println("I say hello : " + adminEmail);

        }

       

      and the entry inside ejb-jar.xml:

       

      <?xml version="1.0" encoding="UTF-8"?>

      <ejb-jar xmlns="http://java.sun.com/xml/ns/javaee" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"

        version="3.0" xsi:schemaLocation="http://java.sun.com/xml/ns/javaee http://java.sun.com/xml/ns/javaee/ejb-jar_3_0.xsd">

        <enterprise-beans>

          <session>

            <ejb-name>TestBean</ejb-name>

            <env-entry>

              <description>admin email</description>

              <env-entry-name>adminEmail</env-entry-name>

              <env-entry-value>admin@example.x</env-entry-value>

            </env-entry>

          </session>

        </enterprise-beans>

      </ejb-jar>

       

      This is working fine.

       

      My question is:

       

      What do I have to do, that I can configure the EJB about the JMX MBean View?

      The bean is listed inside jboss.j2ee, but the field adminEmail I can not see on the info page for this bean.

       

      Is it possible, make it sense and is there a documentation for this?

       

      Thank you,

      Werner