[jboss-cvs] JBossAS SVN: r84911 - projects/docs/enterprise/4.3.3/Server_Configuration_Guide/pt-BR.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Sun Mar 1 22:36:30 EST 2009


Author: ldelima at redhat.com
Date: 2009-03-01 22:36:30 -0500 (Sun, 01 Mar 2009)
New Revision: 84911

Modified:
   projects/docs/enterprise/4.3.3/Server_Configuration_Guide/pt-BR/J2EE_Reference_Introduction.po
Log:
translation ongoing

Modified: projects/docs/enterprise/4.3.3/Server_Configuration_Guide/pt-BR/J2EE_Reference_Introduction.po
===================================================================
--- projects/docs/enterprise/4.3.3/Server_Configuration_Guide/pt-BR/J2EE_Reference_Introduction.po	2009-03-02 00:37:04 UTC (rev 84910)
+++ projects/docs/enterprise/4.3.3/Server_Configuration_Guide/pt-BR/J2EE_Reference_Introduction.po	2009-03-02 03:36:30 UTC (rev 84911)
@@ -9,7 +9,7 @@
 "Project-Id-Version: J2EE_Reference_Introduction\n"
 "Report-Msgid-Bugs-To: http://bugs.kde.org\n"
 "POT-Creation-Date: 2009-01-20 02:37+0000\n"
-"PO-Revision-Date: 2009-03-02 10:32+1000\n"
+"PO-Revision-Date: 2009-03-02 13:36+1000\n"
 "Last-Translator: Leticia de Lima <ldelima at redhat.com>\n"
 "Language-Team: Brazilian Portuguese <en at li.org>\n"
 "MIME-Version: 1.0\n"
@@ -6430,7 +6430,7 @@
 #: J2EE_Reference_Introduction.xml:1724
 #, no-c-format
 msgid "A Standard MBean Example"
-msgstr "Um exemplo do MBean Padrão"
+msgstr "A Amostra do MBean Padrão"
 
 #. Tag: para
 #: J2EE_Reference_Introduction.xml:1725
@@ -6968,7 +6968,9 @@
 "xmbean1.xml</literal> XMBean descriptor. The source can be found in the "
 "<literal>src/main/org/jboss/book/jmx/xmbean</literal> directory of the book "
 "examples."
-msgstr "Vamos inicializar com uma simples variação XMBean da versão MBean padrão do JNDIMap que adiciona a informação descritiva sobre os atributos e operações e seus argumentos. A listagem seguinte apresenta o descritor <literal>jboss-service.xml</literal>"
+msgstr ""
+"Vamos inicializar com uma simples variação XMBean da versão MBean padrão do JNDIMap que adiciona a informação descritiva sobre os atributos e operações e seus argumentos. A listagem seguinte apresenta o descritor <literal>jboss-service.xml</literal> e o descritor <literal>jndimap-"
+"xmbean1.xml</literal> XMBean. A fonte pode ser encontrada no diretório <literal>src/main/org/jboss/book/jmx/xmbean</literal> dos exemplos do livro."
 
 #. Tag: programlisting
 #: J2EE_Reference_Introduction.xml:1785
@@ -7111,12 +7113,114 @@
 "    &lt;/notification&gt;\n"
 "&lt;/mbean&gt;"
 msgstr ""
+"&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\n"
+"&lt;!DOCTYPE mbean PUBLIC\n"
+"          \"-//JBoss//DTD JBOSS XMBEAN 1.0//EN\"\n"
+"          \"http://www.jboss.org/j2ee/dtd/jboss_xmbean_1_0.dtd\"&gt;\n"
+"&lt;mbean&gt;\n"
+"    &lt;description&gt;The JNDIMap XMBean Example Version 1&lt;/"
+"description&gt;\n"
+"    &lt;descriptors&gt;\n"
+"        &lt;persistence persistPolicy=\"Never\" persistPeriod=\"10\"\n"
+"            persistLocation=\"data/JNDIMap.data\" persistName=\"JNDIMap\"/"
+"&gt;\n"
+"        &lt;currencyTimeLimit value=\"10\"/&gt;\n"
+"        &lt;state-action-on-update value=\"keep-running\"/&gt;\n"
+"    &lt;/descriptors&gt;\n"
+"    &lt;class&gt;org.jboss.test.jmx.xmbean.JNDIMap&lt;/class&gt;\n"
+"    &lt;constructor&gt;\n"
+"        &lt;description&gt;The default constructor&lt;/description&gt;\n"
+"        &lt;name&gt;JNDIMap&lt;/name&gt;\n"
+"    &lt;/constructor&gt; \n"
+"    &lt;!-- Attributes --&gt;\n"
+"    &lt;attribute access=\"read-write\" getMethod=\"getJndiName\" setMethod="
+"\"setJndiName\"&gt;\n"
+"        &lt;description&gt;\n"
+"            The location in JNDI where the Map we manage will be bound\n"
+"        &lt;/description&gt;\n"
+"        &lt;name&gt;JndiName&lt;/name&gt;\n"
+"        &lt;type&gt;java.lang.String&lt;/type&gt;\n"
+"        &lt;descriptors&gt;\n"
+"            &lt;default value=\"inmemory/maps/MapTest\"/&gt;\n"
+"        &lt;/descriptors&gt;\n"
+"    &lt;/attribute&gt;\n"
+"    &lt;attribute access=\"read-write\" getMethod=\"getInitialValues\"\n"
+"               setMethod=\"setInitialValues\"&gt;\n"
+"        &lt;description&gt;The array of initial values that will be placed "
+"into the\n"
+"            map associated with the service. The array is a collection of\n"
+"            key,value pairs with elements[0,2,4,...2n] being the keys and\n"
+"            elements [1,3,5,...,2n+1] the associated values. The\n"
+"            \"[Ljava.lang.String;\" type signature is the VM representation "
+"of the\n"
+"            java.lang.String[] type. &lt;/description&gt;\n"
+"        &lt;name&gt;InitialValues&lt;/name&gt;\n"
+"        &lt;type&gt;[Ljava.lang.String;&lt;/type&gt;\n"
+"        &lt;descriptors&gt;\n"
+"            &lt;default value=\"key0,value0\"/&gt;\n"
+"        &lt;/descriptors&gt;\n"
+"    &lt;/attribute&gt; \n"
+"    &lt;!-- Operations --&gt;\n"
+"    &lt;operation&gt;\n"
+"        &lt;description&gt;The start lifecycle operation&lt;/"
+"description&gt;\n"
+"        &lt;name&gt;start&lt;/name&gt;\n"
+"    &lt;/operation&gt;\n"
+"    &lt;operation&gt;\n"
+"        &lt;description&gt;The stop lifecycle operation&lt;/description&gt;\n"
+"        &lt;name&gt;stop&lt;/name&gt;\n"
+"    &lt;/operation&gt;\n"
+"    &lt;operation impact=\"ACTION\"&gt;\n"
+"        &lt;description&gt;Put a value into the map&lt;/description&gt;\n"
+"        &lt;name&gt;put&lt;/name&gt;\n"
+"        &lt;parameter&gt;\n"
+"            &lt;description&gt;The key the value will be store under&lt;/"
+"description&gt;\n"
+"            &lt;name&gt;key&lt;/name&gt;\n"
+"            &lt;type&gt;java.lang.Object&lt;/type&gt;\n"
+"        &lt;/parameter&gt;\n"
+"        &lt;parameter&gt;\n"
+"            &lt;description&gt;The value to place into the map&lt;/"
+"description&gt;\n"
+"            &lt;name&gt;value&lt;/name&gt;\n"
+"            &lt;type&gt;java.lang.Object&lt;/type&gt;\n"
+"        &lt;/parameter&gt;\n"
+"    &lt;/operation&gt;\n"
+"    &lt;operation impact=\"INFO\"&gt;\n"
+"        &lt;description&gt;Get a value from the map&lt;/description&gt;\n"
+"        &lt;name&gt;get&lt;/name&gt;\n"
+"        &lt;parameter&gt;\n"
+"            &lt;description&gt;The key to lookup in the map&lt;/"
+"description&gt;\n"
+"            &lt;name&gt;get&lt;/name&gt;\n"
+"            &lt;type&gt;java.lang.Object&lt;/type&gt;\n"
+"        &lt;/parameter&gt;\n"
+"        &lt;return-type&gt;java.lang.Object&lt;/return-type&gt;\n"
+"    &lt;/operation&gt; \n"
+"    &lt;!-- Notifications --&gt;\n"
+"    &lt;notification&gt;\n"
+"        &lt;description&gt;The notification sent whenever a value is get "
+"into the map\n"
+"            managed by the service&lt;/description&gt;\n"
+"        &lt;name&gt;javax.management.Notification&lt;/name&gt;\n"
+"        &lt;notification-type&gt;org.jboss.book.jmx.xmbean.JNDIMap.get&lt;/"
+"notification-type&gt;\n"
+"    &lt;/notification&gt;\n"
+"    &lt;notification&gt;\n"
+"        &lt;description&gt;The notification sent whenever a value is put "
+"into the map\n"
+"            managed by the service&lt;/description&gt;\n"
+"        &lt;name&gt;javax.management.Notification&lt;/name&gt;\n"
+"        &lt;notification-type&gt;org.jboss.book.jmx.xmbean.JNDIMap.put&lt;/"
+"notification-type&gt;\n"
+"    &lt;/notification&gt;\n"
+"&lt;/mbean&gt;"
 
 #. Tag: para
 #: J2EE_Reference_Introduction.xml:1787
 #, no-c-format
 msgid "You can build, deploy and test the XMBean as follows:"
-msgstr ""
+msgstr "Você pode construir, implementar e testar o XMBean conforme segue abaixo:"
 
 #. Tag: programlisting
 #: J2EE_Reference_Introduction.xml:1790
@@ -7163,6 +7267,36 @@
 "            changed from javax.management.Attribute at 82a72a to \n"
 "            javax.management.Attribute at acdb96]"
 msgstr ""
+"     [java]  + java.lang.Object get(java.lang.Object chap2.xmbean:"
+"service=JNDIMap)\n"
+"     [java] name=chap2.xmbean:service=JNDIMap\n"
+"     [java] listener=org.jboss.book.jmx.xmbean.TestXMBean1$Listener at f38cf0\n"
+"     [java] key=key0, value=value0\n"
+"     [java] handleNotification, event: javax.management.Notification"
+"[source=chap2.xmbean:\n"
+"            service=JNDIMap][type=org.jboss.book.jmx.xmbean.JNDIMap.put]"
+"[message=]\n"
+"     [java] JNDIMap.put(key1, value1) successful\n"
+"     [java] handleNotification, event: javax.management.Notification"
+"[source=chap2.xmbean:\n"
+"            service=JNDIMap][type=org.jboss.book.jmx.xmbean.JNDIMap.get]"
+"[message=]\n"
+"     [java] JNDIMap.get(key0): null\n"
+"     [java] handleNotification, event: javax.management.Notification"
+"[source=chap2.xmbean:\n"
+"            service=JNDIMap][type=org.jboss.book.jmx.xmbean.JNDIMap.get]"
+"[message=]\n"
+"     [java] JNDIMap.get(key1): value1\n"
+"     [java] handleNotification, event: javax.management.Notification"
+"[source=chap2.xmbean:\n"
+"            service=JNDIMap][type=org.jboss.book.jmx.xmbean.JNDIMap.put]"
+"[message=]\n"
+"     [java] handleNotification, event: javax.management."
+"AttributeChangeNotification[source\n"
+"            =chap2.xmbean:service=JNDIMap][type=jmx.attribute.change]"
+"[message=InitialValues \n"
+"            changed from javax.management.Attribute at 82a72a to \n"
+"            javax.management.Attribute at acdb96]"
 
 #. Tag: para
 #: J2EE_Reference_Introduction.xml:1791
@@ -7179,6 +7313,9 @@
 "interface extends the <literal>ModelMBeanNotificationBroadcaster</literal> "
 "which supports <literal>AttributeChangeNotificationListeners</literal>."
 msgstr ""
+"Nós vemos as notificações a partir das operações obter e adicionar no resultado do terminal do cliente de teste. Perceba que há também um <literal>jmx.attribute.change "
+"notification</literal> emitido quando o atributo <literal>jmx.attribute.change "
+"notification</literal> foi alterado. Isto ocorre uma vez que a interface <literal>ModelMBean</literal> extende o <literal>ModelMBeanNotificationBroadcaster</literal> que suporta o <literal>AttributeChangeNotificationListeners</literal>."
 
 #. Tag: para
 #: J2EE_Reference_Introduction.xml:1794
@@ -7191,12 +7328,16 @@
 "\"Version_1_The_Annotated_JNDIMap_XMBean-"
 "The_Version_1_JNDIMapXMBean_jmx_console_view\"/>."
 msgstr ""
+"Outra diferença grande entre as versões XMBean e padrão do JNDIMap é o metadado descritivo. Observe o <literal>chap2.xmbean:"
+"service=JNDIMap</literal> no Terminal JMX e você verá a sessão dos atributos conforme apresentado em <xref linkend="
+"\"Version_1_The_Annotated_JNDIMap_XMBean-"
+"The_Version_1_JNDIMapXMBean_jmx_console_view\"/>."
 
 #. Tag: title
 #: J2EE_Reference_Introduction.xml:1798
 #, no-c-format
 msgid "The Version 1 JNDIMapXMBean jmx-console view"
-msgstr ""
+msgstr "A visualização da Version 1 JNDIMapXMBean jmx-console "
 
 #. Tag: para
 #: J2EE_Reference_Introduction.xml:1805
@@ -7208,12 +7349,14 @@
 "operations and you will also see that these now also have nice descriptions "
 "of their function and parameters."
 msgstr ""
+"Perceba que o Terminal JMX exibe a descrição completa do atributo conforme especificado no descritor MBean ao invés do texto <literal>MBean Attribute</"
+"literal> visto nas implementações MBean padrões. Vá descende a sua tela até operações e você verá que isto possui boas descrições de suas próprias funções e parâmetros."
 
 #. Tag: title
 #: J2EE_Reference_Introduction.xml:1811
 #, no-c-format
 msgid "Version 2, Adding Persistence to the JNDIMap XMBean"
-msgstr ""
+msgstr "Versão 2, Adição de Persistência ao JNDIMap XMBean"
 
 #. Tag: para
 #: J2EE_Reference_Introduction.xml:1812
@@ -7221,7 +7364,7 @@
 msgid ""
 "In version 2 of the XMBean we add support for persistence of the XMBean "
 "attributes. The updated XMBean deployment descriptor is given below."
-msgstr ""
+msgstr "Na versão 2 do XMBean, nós adicionamos suporte para persistência dos atributos XMBean. O descritor de implementação XMBean é fornecido abaixo."
 
 #. Tag: programlisting
 #: J2EE_Reference_Introduction.xml:1815
@@ -7330,12 +7473,114 @@
 "    &lt;/notification&gt;\n"
 "&lt;/mbean&gt;"
 msgstr ""
+"&lt;?xml version=\"1.0\" encoding=\"UTF-8\"?&gt;\n"
+"&lt;!DOCTYPE mbean PUBLIC\n"
+"          \"-//JBoss//DTD JBOSS XMBEAN 1.0//EN\"\n"
+"          \"http://www.jboss.org/j2ee/dtd/jboss_xmbean_1_0.dtd\"&gt;\n"
+"&lt;mbean&gt;\n"
+"    &lt;description&gt;The JNDIMap XMBean Example Version 2&lt;/"
+"description&gt;\n"
+"    &lt;descriptors&gt;\n"
+"        &lt;persistence persistPolicy=\"OnUpdate\" persistPeriod=\"10\"\n"
+"            persistLocation=\"${jboss.server.data.dir}\" persistName="
+"\"JNDIMap.ser\"/&gt;\n"
+"        &lt;currencyTimeLimit value=\"10\"/&gt;\n"
+"        &lt;state-action-on-update value=\"keep-running\"/&gt;\n"
+"        &lt;persistence-manager value=\"org.jboss.mx.persistence."
+"ObjectStreamPersistenceManager\"/&gt;\n"
+"    &lt;/descriptors&gt;  &lt;class&gt;org.jboss.test.jmx.xmbean.JNDIMap&lt;/"
+"class&gt;\n"
+"    &lt;constructor&gt;\n"
+"        &lt;description&gt;The default constructor&lt;/description&gt;\n"
+"        &lt;name&gt;JNDIMap&lt;/name&gt;\n"
+"    &lt;/constructor&gt; \n"
+"    &lt;!-- Attributes --&gt;\n"
+"    &lt;attribute access=\"read-write\" getMethod=\"getJndiName\" setMethod="
+"\"setJndiName\"&gt;\n"
+"        &lt;description&gt;\n"
+"            The location in JNDI where the Map we manage will be bound\n"
+"        &lt;/description&gt;\n"
+"        &lt;name&gt;JndiName&lt;/name&gt;\n"
+"        &lt;type&gt;java.lang.String&lt;/type&gt;\n"
+"        &lt;descriptors&gt;\n"
+"            &lt;default value=\"inmemory/maps/MapTest\"/&gt;\n"
+"        &lt;/descriptors&gt;\n"
+"    &lt;/attribute&gt;\n"
+"    &lt;attribute access=\"read-write\" getMethod=\"getInitialValues\"\n"
+"               setMethod=\"setInitialValues\"&gt;\n"
+"        &lt;description&gt;The array of initial values that will be placed "
+"into the\n"
+"            map associated with the service. The array is a collection of\n"
+"            key,value pairs with elements[0,2,4,...2n] being the keys and\n"
+"            elements [1,3,5,...,2n+1] the associated values&lt;/"
+"description&gt;\n"
+"        &lt;name&gt;InitialValues&lt;/name&gt;\n"
+"        &lt;type&gt;[Ljava.lang.String;&lt;/type&gt;\n"
+"        &lt;descriptors&gt;\n"
+"            &lt;default value=\"key0,value0\"/&gt;\n"
+"        &lt;/descriptors&gt;\n"
+"    &lt;/attribute&gt; \n"
+"    &lt;!-- Operations --&gt;\n"
+"    &lt;operation&gt;\n"
+"        &lt;description&gt;The start lifecycle operation&lt;/"
+"description&gt;\n"
+"        &lt;name&gt;start&lt;/name&gt;\n"
+"    &lt;/operation&gt;\n"
+"    &lt;operation&gt;\n"
+"        &lt;description&gt;The stop lifecycle operation&lt;/description&gt;\n"
+"        &lt;name&gt;stop&lt;/name&gt;\n"
+"    &lt;/operation&gt;\n"
+"    &lt;operation impact=\"ACTION\"&gt;\n"
+"        &lt;description&gt;Put a value into the nap&lt;/description&gt;\n"
+"        &lt;name&gt;put&lt;/name&gt;\n"
+"        &lt;parameter&gt;\n"
+"            &lt;description&gt;The key the value will be store under&lt;/"
+"description&gt;\n"
+"            &lt;name&gt;key&lt;/name&gt;\n"
+"            &lt;type&gt;java.lang.Object&lt;/type&gt;\n"
+"        &lt;/parameter&gt;\n"
+"        &lt;parameter&gt;\n"
+"            &lt;description&gt;The value to place into the map&lt;/"
+"description&gt;\n"
+"            &lt;name&gt;value&lt;/name&gt;\n"
+"            &lt;type&gt;java.lang.Object&lt;/type&gt;\n"
+"        &lt;/parameter&gt;\n"
+"    &lt;/operation&gt;\n"
+"    &lt;operation impact=\"INFO\"&gt;\n"
+"        &lt;description&gt;Get a value from the map&lt;/description&gt;\n"
+"        &lt;name&gt;get&lt;/name&gt;\n"
+"        &lt;parameter&gt;\n"
+"            &lt;description&gt;The key to lookup in the map&lt;/"
+"description&gt;\n"
+"            &lt;name&gt;get&lt;/name&gt;\n"
+"            &lt;type&gt;java.lang.Object&lt;/type&gt;\n"
+"        &lt;/parameter&gt;\n"
+"        &lt;return-type&gt;java.lang.Object&lt;/return-type&gt;\n"
+"    &lt;/operation&gt; \n"
+"    &lt;!-- Notifications --&gt;\n"
+"    &lt;notification&gt;\n"
+"        &lt;description&gt;The notification sent whenever a value is get "
+"into the map\n"
+"            managed by the service&lt;/description&gt;\n"
+"        &lt;name&gt;javax.management.Notification&lt;/name&gt;\n"
+"        &lt;notification-type&gt;org.jboss.book.jmx.xmbean.JNDIMap.get&lt;/"
+"notification-type&gt;\n"
+"    &lt;/notification&gt;\n"
+"    &lt;notification&gt;\n"
+"        &lt;description&gt;The notification sent whenever a value is put "
+"into the map\n"
+"            managed by the service&lt;/description&gt;\n"
+"        &lt;name&gt;javax.management.Notification&lt;/name&gt;\n"
+"        &lt;notification-type&gt;org.jboss.book.jmx.xmbean.JNDIMap.put&lt;/"
+"notification-type&gt;\n"
+"    &lt;/notification&gt;\n"
+"&lt;/mbean&gt;"
 
 #. Tag: para
 #: J2EE_Reference_Introduction.xml:1816
 #, no-c-format
 msgid "Build, deploy and test the version 2 XMBean as follows:"
-msgstr ""
+msgstr "Construção, implementação e teste da versão 2 XMBean conforme abaixo:"
 
 #. Tag: programlisting
 #: J2EE_Reference_Introduction.xml:1819
@@ -7386,6 +7631,50 @@
 "timeStamp=1098632\n"
 "693925,message=null,userData=null]"
 msgstr ""
+"[examples]$ ant -Dchap=jmx -Dex=xmbean2 -Djboss.deploy.conf=default run-"
+"example\n"
+"...\n"
+"run-examplexmbean2:\n"
+"     [java] JNDIMap Class: org.jboss.mx.modelmbean.XMBean\n"
+"     [java] JNDIMap Operations: \n"
+"     [java]  + void start()\n"
+"     [java]  + void stop()\n"
+"     [java]  + void put(java.lang.Object chap2.xmbean:service=JNDIMap,java."
+"lang.Object cha\n"
+"p2.xmbean:service=JNDIMap)\n"
+"     [java]  + java.lang.Object get(java.lang.Object chap2.xmbean:"
+"service=JNDIMap)\n"
+"     [java]  + java.lang.String getJndiName()\n"
+"     [java]  + void setJndiName(java.lang.String chap2.xmbean:"
+"service=JNDIMap)\n"
+"     [java]  + [Ljava.lang.String; getInitialValues()\n"
+"     [java]  + void setInitialValues([Ljava.lang.String; chap2.xmbean:"
+"service=JNDIMap)\n"
+"     [java] handleNotification, event: null\n"
+"     [java] key=key10, value=value10\n"
+"     [java] handleNotification, event: javax.management.Notification"
+"[source=chap2.xmbean:s\n"
+"ervice=JNDIMap,type=org.jboss.chap2.xmbean.JNDIMap.put,sequenceNumber=7,"
+"timeStamp=10986326\n"
+"93716,message=null,userData=null]\n"
+"     [java] JNDIMap.put(key1, value1) successful\n"
+"     [java] handleNotification, event: javax.management.Notification"
+"[source=chap2.xmbean:s\n"
+"ervice=JNDIMap,type=org.jboss.chap2.xmbean.JNDIMap.get,sequenceNumber=8,"
+"timeStamp=10986326\n"
+"93857,message=null,userData=null]\n"
+"     [java] JNDIMap.get(key0): null\n"
+"     [java] handleNotification, event: javax.management.Notification"
+"[source=chap2.xmbean:s\n"
+"ervice=JNDIMap,type=org.jboss.chap2.xmbean.JNDIMap.get,sequenceNumber=9,"
+"timeStamp=10986326\n"
+"93896,message=null,userData=null]\n"
+"     [java] JNDIMap.get(key1): value1\n"
+"     [java] handleNotification, event: javax.management.Notification"
+"[source=chap2.xmbean:s\n"
+"ervice=JNDIMap,type=org.jboss.chap2.xmbean.JNDIMap.put,sequenceNumber=10,"
+"timeStamp=1098632\n"
+"693925,message=null,userData=null]"
 
 #. Tag: para
 #: J2EE_Reference_Introduction.xml:1820
@@ -7395,7 +7684,7 @@
 "this point because we have done nothing to test that changes to attribute "
 "value are actually persisted. Perform this test by running example xmbean2a "
 "several times:"
-msgstr ""
+msgstr "Não há nada diferente manifestado sobre esta versão do XMBean neste ponto, uma vez que não fizemos nada para testar que as alterações do valor do atributo são, na realidade, persistentes. Execute este teste rodando a amostra xmbean2a diversas vezes:"
 
 #. Tag: programlisting
 #: J2EE_Reference_Introduction.xml:1824
@@ -7406,6 +7695,10 @@
 "     [java] InitialValues.length=2\n"
 "     [java] key=key10, value=value10"
 msgstr ""
+"[examples] ant -Dchap=jmx -Dex=xmbean2a run-example\n"
+"...\n"
+"     [java] InitialValues.length=2\n"
+"     [java] key=key10, value=value10"
 
 #. Tag: programlisting
 #: J2EE_Reference_Introduction.xml:1825
@@ -7417,6 +7710,11 @@
 "     [java] key=key10, value=value10\n"
 "     [java] key=key2, value=value2"
 msgstr ""
+"[examples] ant -Dchap=jmx -Dex=xmbean2a run-example\n"
+"...\n"
+"     [java] InitialValues.length=4\n"
+"     [java] key=key10, value=value10\n"
+"     [java] key=key2, value=value2"
 
 #. Tag: programlisting
 #: J2EE_Reference_Introduction.xml:1828
@@ -7429,6 +7727,12 @@
 "     [java] key=key2, value=value2\n"
 "     [java] key=key3, value=value3"
 msgstr ""
+"[examples] ant -Dchap=jmx -Dex=xmbean2a run-example\n"
+"...\n"
+"     [java] InitialValues.length=6\n"
+"     [java] key=key10, value=value10\n"
+"     [java] key=key2, value=value2\n"
+"     [java] key=key3, value=value3"
 
 #. Tag: para
 #: J2EE_Reference_Introduction.xml:1830
@@ -7438,7 +7742,7 @@
 "this example obtains the current <literal>InitialValues</literal> attribute "
 "setting, and then adds another key/value pair to it. The client code is "
 "shown below."
-msgstr ""
+msgstr "O <literal>org.jboss.book.jmx.xmbean.TestXMBeanRestart</literal> usados neste exemplo obtém a configuração do atributo <literal>InitialValues</literal> atual e adiciona outro par chave/valor para isto. Segue abaixo o código do cliente."
 
 #. Tag: programlisting
 #: J2EE_Reference_Introduction.xml:1833
@@ -7497,6 +7801,48 @@
 "    }\n"
 "}"
 msgstr ""
+" *  attributes. Every time it run it looks up the InitialValues\n"
+" *  attribute, prints it out and then adds a new key/value to the\n"
+" *  list.\n"
+" *  \n"
+" *  @author Scott.Stark at jboss.org\n"
+" *  @version $Revision: 1.1 $\n"
+" */\n"
+"public class TestXMBeanRestart\n"
+"{\n"
+"    /**\n"
+"     * @param args the command line arguments\n"
+"     */\n"
+"    public static void main(String[] args) throws Exception\n"
+"    {\n"
+"        InitialContext ic = new InitialContext();\n"
+"        RMIAdaptor server = (RMIAdaptor) ic.lookup(\"jmx/rmi/RMIAdaptor\");\n"
+"        \n"
+"        // Get the InitialValues attribute\n"
+"        ObjectName name = new ObjectName(\"j2eechap2.xmbean:service=JNDIMap"
+"\");\n"
+"        String[] initialValues = (String[])\n"
+"            server.getAttribute(name, \"InitialValues\");\n"
+"        System.out.println(\"InitialValues.length=\"+initialValues.length);\n"
+"        int length = initialValues.length;\n"
+"        for (int n = 0; n &lt; length; n += 2) {\n"
+"            String key = initialValues[n];\n"
+"            String value = initialValues[n+1];\n"
+"            \n"
+"            System.out.println(\"key=\"+key+\", value=\"+value);\n"
+"        }\n"
+"        // Add a new key/value pair\n"
+"        String[] newInitialValues = new String[length+2];\n"
+"        System.arraycopy(initialValues, 0, newInitialValues,\n"
+"                         0, length);\n"
+"        newInitialValues[length] = \"key\"+(length/2+1);\n"
+"        newInitialValues[length+1] = \"value\"+(length/2+1);\n"
+"        \n"
+"        Attribute ivalues = new\n"
+"            Attribute(\"InitialValues\", newInitialValues);\n"
+"        server.setAttribute(name, ivalues);\n"
+"    }\n"
+"}"
 
 #. Tag: para
 #: J2EE_Reference_Introduction.xml:1834
@@ -7505,7 +7851,7 @@
 "At this point you may even shutdown the JBoss server, restart it and then "
 "rerun the initial example to see if the changes are persisted across server "
 "restarts:"
-msgstr ""
+msgstr "Neste estágio você poderá desligar o servidor do JBoss, re-iniciá-lo e rodar novamente a amostra inicial para verificar se as alterações são persistentes através da re-inicialização do servidor:"
 
 #. Tag: programlisting
 #: J2EE_Reference_Introduction.xml:1837
@@ -7574,6 +7920,68 @@
 "timeStamp=10986\n"
 "33665614,message=null,userData=null]"
 msgstr ""
+"[examples]$ ant -Dchap=jmx -Dex=xmbean2 run-example\n"
+"...\n"
+"\n"
+"run-examplexmbean2:\n"
+"     [java] JNDIMap Class: org.jboss.mx.modelmbean.XMBean\n"
+"     [java] JNDIMap Operations: \n"
+"     [java]  + void start()\n"
+"     [java]  + void stop()\n"
+"     [java]  + void put(java.lang.Object chap2.xmbean:service=JNDIMap,java."
+"lang.Object cha\n"
+"p2.xmbean:service=JNDIMap)\n"
+"     [java]  + java.lang.Object get(java.lang.Object chap2.xmbean:"
+"service=JNDIMap)\n"
+"     [java]  + java.lang.String getJndiName()\n"
+"     [java]  + void setJndiName(java.lang.String chap2.xmbean:"
+"service=JNDIMap)\n"
+"     [java]  + [Ljava.lang.String; getInitialValues()\n"
+"     [java]  + void setInitialValues([Ljava.lang.String; chap2.xmbean:"
+"service=JNDIMap)\n"
+"     [java] handleNotification, event: null\n"
+"     [java] <emphasis role=\"bold\">key=key10, value=value10</emphasis>\n"
+"     [java] <emphasis role=\"bold\">key=key2, value=value2</emphasis>\n"
+"     [java] <emphasis role=\"bold\">key=key3, value=value3</emphasis>\n"
+"     [java] <emphasis role=\"bold\">key=key4, value=value4</emphasis>\n"
+"     [java] handleNotification, event: javax.management.Notification"
+"[source=chap2.xmbean:s\n"
+"ervice=JNDIMap,type=org.jboss.book.jmx.xmbean.JNDIMap.put,sequenceNumber=3,"
+"timeStamp=10986\n"
+"33664712,message=null,userData=null]\n"
+"     [java] JNDIMap.put(key1, value1) successful\n"
+"     [java] handleNotification, event: javax.management.Notification"
+"[source=chap2.xmbean:s\n"
+"ervice=JNDIMap,type=org.jboss.book.jmx.xmbean.JNDIMap.get,sequenceNumber=4,"
+"timeStamp=10986\n"
+"33664821,message=null,userData=null]\n"
+"     [java] JNDIMap.get(key0): null\n"
+"     [java] handleNotification, event: javax.management.Notification"
+"[source=chap2.xmbean:s\n"
+"ervice=JNDIMap,type=org.jboss.book.jmx.xmbean.JNDIMap.get,sequenceNumber=5,"
+"timeStamp=10986\n"
+"33664860,message=null,userData=null]\n"
+"     [java] JNDIMap.get(key1): value1\n"
+"     [java] handleNotification, event: javax.management.Notification"
+"[source=chap2.xmbean:s\n"
+"ervice=JNDIMap,type=org.jboss.book.jmx.xmbean.JNDIMap.put,sequenceNumber=6,"
+"timeStamp=10986\n"
+"33664877,message=null,userData=null]\n"
+"     [java] handleNotification, event: javax.management.Notification"
+"[source=chap2.xmbean:s\n"
+"ervice=JNDIMap,type=org.jboss.book.jmx.xmbean.JNDIMap.put,sequenceNumber=7,"
+"timeStamp=10986\n"
+"33664895,message=null,userData=null]\n"
+"     [java] handleNotification, event: javax.management.Notification"
+"[source=chap2.xmbean:s\n"
+"ervice=JNDIMap,type=org.jboss.book.jmx.xmbean.JNDIMap.put,sequenceNumber=8,"
+"timeStamp=10986\n"
+"33664899,message=null,userData=null]\n"
+"     [java] handleNotification, event: javax.management.Notification"
+"[source=chap2.xmbean:s\n"
+"ervice=JNDIMap,type=org.jboss.book.jmx.xmbean.JNDIMap.put,sequenceNumber=9,"
+"timeStamp=10986\n"
+"33665614,message=null,userData=null]"
 
 #. Tag: para
 #: J2EE_Reference_Introduction.xml:1838
@@ -7581,13 +7989,13 @@
 msgid ""
 "You see that the last <literal>InitialValues</literal> attribute setting is "
 "in fact visible."
-msgstr ""
+msgstr "Você poderá ver que a última configuração do atributo <literal>InitialValues</literal> está, na realidade, visível."
 
 #. Tag: title
 #: J2EE_Reference_Introduction.xml:1848
 #, no-c-format
 msgid "Deployment Ordering and Dependencies"
-msgstr ""
+msgstr "Ordenação e Dependências da Implementação"
 
 #. Tag: para
 #: J2EE_Reference_Introduction.xml:1849
@@ -7602,6 +8010,8 @@
 "dependencies. By writing your own filters you can change the coarse grained "
 "ordering performed by the deployment scanner."
 msgstr ""
+"Nós verificamos como gerenciar as dependências usando os caraccteres <literal>depends</literal> e <literal>depends-list</literal> do descritor de serviço. A implementação da ordenação suportada pelos scanners de implementação fornecem um gerenciamento de dependência coarse-"
+"grained, pelo qual possui uma ordem para implementações. Caso as dependências forem consistentes com os pacotes de implementação, isto será um mecanismo muito mais simples do que ter que enumerar as dependências MBean-MBean explícitas. Você poderá alterar a ordenação do coarse grained do scanner implementado pela gravação de seus próprios filtros."
 
 #. Tag: para
 #: J2EE_Reference_Introduction.xml:1852
@@ -7635,6 +8045,20 @@
 "| +- org/jboss/book/jmx/ex3/EjbMBeanAdaptor.class\n"
 "+- META-INF/application.xml"
 msgstr ""
+"<emphasis role=\"bold\">output/jmx/jmx-ex3.ear</emphasis>\n"
+"+- META-INF/MANIFEST.MF\n"
+"+- META-INF/jboss-app.xml\n"
+"+- jmx-ex3.jar (archive) [EJB jar]\n"
+"| +- META-INF/MANIFEST.MF\n"
+"| +- META-INF/ejb-jar.xml\n"
+"| +- org/jboss/book/jmx/ex3/EchoBean.class\n"
+"| +- org/jboss/book/jmx/ex3/EchoLocal.class\n"
+"| +- org/jboss/book/jmx/ex3/EchoLocalHome.class\n"
+"+- jmx-ex3.sar (archive) [MBean sar]\n"
+"| +- META-INF/MANIFEST.MF\n"
+"| +- META-INF/jboss-service.xml\n"
+"| +- org/jboss/book/jmx/ex3/EjbMBeanAdaptor.class\n"
+"+- META-INF/application.xml"
 
 #. Tag: para
 #: J2EE_Reference_Introduction.xml:1856
@@ -7646,6 +8070,8 @@
 "implemented the service as a Dynamic MBean to provide an illustration of "
 "their use."
 msgstr ""
+"O EAR contém um <literal>jmx-ex3.jar</literal> e <literal>jmx-ex3.sar</"
+"literal>. O <literal>jmx-ex3.jar</literal> é um arquivo EJB e o <literal>jmx-ex3.sar</literal> é um arquivo do serviço MBean. Nós implementamos o serviço como um MBean Dinâmico para fornecer uma ilustração do uso dos mesmos."
 
 #. Tag: programlisting
 #: J2EE_Reference_Introduction.xml:1859
@@ -7992,6 +8418,346 @@
 "    \n"
 "}"
 msgstr ""
+"package org.jboss.book.jmx.ex3;\n"
+"            \n"
+"import java.lang.reflect.Method;\n"
+"import javax.ejb.CreateException;\n"
+"import javax.management.Attribute;\n"
+"import javax.management.AttributeList;\n"
+"import javax.management.AttributeNotFoundException;\n"
+"import javax.management.DynamicMBean;\n"
+"import javax.management.InvalidAttributeValueException;\n"
+"import javax.management.JMRuntimeException;\n"
+"import javax.management.MBeanAttributeInfo;\n"
+"import javax.management.MBeanConstructorInfo;\n"
+"import javax.management.MBeanInfo;\n"
+"import javax.management.MBeanNotificationInfo;\n"
+"import javax.management.MBeanOperationInfo;\n"
+"import javax.management.MBeanException;\n"
+"import javax.management.MBeanServer;\n"
+"import javax.management.ObjectName;\n"
+"import javax.management.ReflectionException;\n"
+"import javax.naming.InitialContext;\n"
+"import javax.naming.NamingException;\n"
+"\n"
+"import org.jboss.system.ServiceMBeanSupport;\n"
+"\n"
+"/** \n"
+" *  An example of a DynamicMBean that exposes select attributes and\n"
+" *  operations of an EJB as an MBean.\n"
+" *  @author Scott.Stark at jboss.org\n"
+" *  @version $Revision: 1.1 $\n"
+" */\n"
+"public class EjbMBeanAdaptor extends ServiceMBeanSupport\n"
+"    implements DynamicMBean\n"
+"{\n"
+"    private String helloPrefix;\n"
+"    private String ejbJndiName;\n"
+"    private EchoLocalHome home;\n"
+"    \n"
+"    /** These are the mbean attributes we expose\n"
+"     */\n"
+"    private MBeanAttributeInfo[] attributes = {\n"
+"        new MBeanAttributeInfo(\"HelloPrefix\", \"java.lang.String\",\n"
+"                               \"The prefix message to append to the session "
+"echo reply\",\n"
+"                               true, // isReadable\n"
+"                               true, // isWritable\n"
+"                               false), // isIs\n"
+"        new MBeanAttributeInfo(\"EjbJndiName\", \"java.lang.String\",\n"
+"                               \"The JNDI name of the session bean local home"
+"\",\n"
+"                               true, // isReadable\n"
+"                               true, // isWritable\n"
+"                               false) // isIs\n"
+"    };\n"
+"\n"
+"    /** \n"
+"     * These are the mbean operations we expose\n"
+"     */\n"
+"    private MBeanOperationInfo[] operations;\n"
+"    \n"
+"    /** \n"
+"     * We override this method to setup our echo operation info. It\n"
+"     * could also be done in a ctor.\n"
+"     */\n"
+"    public ObjectName preRegister(MBeanServer server,\n"
+"                                  ObjectName name)\n"
+"        throws Exception\n"
+"    {\n"
+"        log.info(\"preRegister notification seen\");\n"
+"        \n"
+"        operations = new MBeanOperationInfo[5];\n"
+"        \n"
+"        Class thisClass = getClass();\n"
+"        Class[] parameterTypes = {String.class};\n"
+"        Method echoMethod =\n"
+"            thisClass.getMethod(\"echo\", parameterTypes);\n"
+"        String desc = \"The echo op invokes the session bean echo method and"
+"\"\n"
+"            + \" returns its value prefixed with the helloPrefix attribute "
+"value\";\n"
+"        operations[0] = new MBeanOperationInfo(desc, echoMethod);\n"
+"            \n"
+"        // Add the Service interface operations from our super class\n"
+"        parameterTypes = new Class[0];\n"
+"        Method createMethod =\n"
+"            thisClass.getMethod(\"create\", parameterTypes);\n"
+"        operations[1] = new MBeanOperationInfo(\"The\n"
+"                JBoss Service.create\", createMethod);\n"
+"        Method startMethod =\n"
+"            thisClass.getMethod(\"start\", parameterTypes);\n"
+"        operations[2] = new MBeanOperationInfo(\"The\n"
+"                JBoss Service.start\", startMethod);\n"
+"        Method stopMethod =\n"
+"            thisClass.getMethod(\"stop\", parameterTypes);\n"
+"        operations[3] = new MBeanOperationInfo(\"The\n"
+"                JBoss Service.stop\", startMethod);\n"
+"        Method destroyMethod =\n"
+"            thisClass.getMethod(\"destroy\", parameterTypes);\n"
+"        operations[4] = new MBeanOperationInfo(\"The\n"
+"                JBoss Service.destroy\", startMethod);\n"
+"        return name;\n"
+"    }\n"
+"    \n"
+"    \n"
+"    // --- Begin ServiceMBeanSupport overides\n"
+"    protected void createService() throws Exception\n"
+"    {\n"
+"        log.info(\"Notified of create state\");\n"
+"    }\n"
+"\n"
+"    protected void startService() throws Exception\n"
+"    {\n"
+"        log.info(\"Notified of start state\");\n"
+"        InitialContext ctx = new InitialContext();\n"
+"        home = (EchoLocalHome) ctx.lookup(ejbJndiName);\n"
+"    }\n"
+"\n"
+"    protected void stopService()\n"
+"    {\n"
+"        log.info(\"Notified of stop state\");\n"
+"    }\n"
+"\n"
+"    // --- End ServiceMBeanSupport overides\n"
+"            \n"
+"    public String getHelloPrefix()\n"
+"    {\n"
+"        return helloPrefix;\n"
+"    }\n"
+"    public void setHelloPrefix(String helloPrefix)\n"
+"    {\n"
+"        this.helloPrefix = helloPrefix;\n"
+"    }\n"
+"    \n"
+"    public String getEjbJndiName()\n"
+"    {\n"
+"        return ejbJndiName;\n"
+"    }\n"
+"    public void setEjbJndiName(String ejbJndiName)\n"
+"    {\n"
+"        this.ejbJndiName = ejbJndiName;\n"
+"    }\n"
+"    \n"
+"    public String echo(String arg)\n"
+"        throws CreateException, NamingException\n"
+"    {\n"
+"        log.debug(\"Lookup EchoLocalHome@\"+ejbJndiName);\n"
+"        EchoLocal bean = home.create();\n"
+"        String echo = helloPrefix + bean.echo(arg);\n"
+"        return echo;\n"
+"    }\n"
+"    \n"
+"    // --- Begin DynamicMBean interface methods\n"
+"    /** \n"
+"     *  Returns the management interface that describes this dynamic\n"
+"     *  resource.  It is the responsibility of the implementation to\n"
+"     *  make sure the description is accurate.\n"
+"     *\n"
+"     * @return the management interface descriptor.\n"
+"     */\n"
+"    public MBeanInfo getMBeanInfo()\n"
+"    {\n"
+"        String classname = getClass().getName();\n"
+"        String description = \"This is an MBean that uses a session bean in "
+"the\"\n"
+"            + \" implementation of its echo operation.\";\n"
+"        MBeanInfo[] constructors = null;\n"
+"        MBeanNotificationInfo[] notifications = null;\n"
+"        MBeanInfo mbeanInfo = new MBeanInfo(classname,\n"
+"                                            description, attributes,\n"
+"                                            constructors, operations,\n"
+"                                            notifications);\n"
+"        // Log when this is called so we know when in the\n"
+"        lifecycle this is used\n"
+"            Throwable trace = new Throwable(\"getMBeanInfo trace\");\n"
+"        log.info(\"Don&#39;t panic, just a stack\n"
+"                trace\", trace);\n"
+"        return mbeanInfo;\n"
+"    }\n"
+"    \n"
+"    /** \n"
+"     *  Returns the value of the attribute with the name matching the\n"
+"     *  passed string.\n"
+"     *\n"
+"     * @param attribute the name of the attribute.\n"
+"     * @return the value of the attribute.\n"
+"     * @exception AttributeNotFoundException when there is no such\n"
+"     * attribute.\n"
+"     * @exception MBeanException wraps any error thrown by the\n"
+"     * resource when\n"
+"     * getting the attribute.\n"
+"     * @exception ReflectionException wraps any error invoking the\n"
+"     * resource.\n"
+"     */\n"
+"    public Object getAttribute(String attribute)\n"
+"        throws AttributeNotFoundException, \n"
+"               MBeanException, \n"
+"               ReflectionException\n"
+"    {\n"
+"        Object value = null;\n"
+"        if (attribute.equals(\"HelloPrefix\")) {\n"
+"            value = getHelloPrefix();\n"
+"        } else if(attribute.equals(\"EjbJndiName\")) {\n"
+"            value = getEjbJndiName();\n"
+"        } else {\n"
+"            throw new AttributeNotFoundException(\"Unknown\n"
+"                attribute(\"+attribute+\") requested\");\n"
+"        }\n"
+"        return value;\n"
+"    }\n"
+"            \n"
+"    /** \n"
+"     * Returns the values of the attributes with names matching the\n"
+"     * passed string array.\n"
+"     *\n"
+"     * @param attributes the names of the attribute.\n"
+"     * @return an {@link AttributeList AttributeList} of name\n"
+"     * and value pairs.\n"
+"     */\n"
+"    public AttributeList getAttributes(String[] attributes)\n"
+"    {\n"
+"        AttributeList values = new AttributeList();\n"
+"        for (int a = 0; a &lt; attributes.length; a++) {\n"
+"            String name = attributes[a];\n"
+"            try {\n"
+"                Object value = getAttribute(name);\n"
+"                Attribute attr = new Attribute(name, value);\n"
+"                values.add(attr);\n"
+"            } catch(Exception e) {\n"
+"                log.error(\"Failed to find attribute: \"+name, e);\n"
+"            }\n"
+"        }\n"
+"        return values;\n"
+"    }\n"
+"            \n"
+"    /**\n"
+"     *  Sets the value of an attribute. The attribute and new value\n"
+"     *  are passed in the name value pair {@link Attribute\n"
+"     *  Attribute}.\n"
+"     *\n"
+"     * @see javax.management.Attribute\n"
+"     *\n"
+"     * @param attribute the name and new value of the attribute.\n"
+"     * @exception AttributeNotFoundException when there is no such\n"
+"     * attribute.\n"
+"     * @exception InvalidAttributeValueException when the new value\n"
+"     * cannot be converted to the type of the attribute.\n"
+"     * @exception MBeanException wraps any error thrown by the\n"
+"     * resource when setting the new value.\n"
+"     * @exception ReflectionException wraps any error invoking the\n"
+"     * resource.\n"
+"     */\n"
+"    public void setAttribute(Attribute attribute)\n"
+"        throws AttributeNotFoundException, \n"
+"               InvalidAttributeValueException,\n"
+"               MBeanException, \n"
+"               ReflectionException\n"
+"    {\n"
+"        String name = attribute.getName();\n"
+"        if (name.equals(\"HelloPrefix\")) { \n"
+"            String value = attribute.getValue().toString();\n"
+"            setHelloPrefix(value);\n"
+"        } else if(name.equals(\"EjbJndiName\")) {\n"
+"            String value = attribute.getValue().toString();\n"
+"            setEjbJndiName(value);\n"
+"        } else {\n"
+"            throw new AttributeNotFoundException(\"Unknown attribute(\"+name+"
+"\") requested\");\n"
+"        }\n"
+"    }\n"
+"            \n"
+"    /**\n"
+"     * Sets the values of the attributes passed as an\n"
+"     * {@link AttributeList AttributeList} of name and new\n"
+"     * value pairs.\n"
+"     *\n"
+"     * @param attributes the name an new value pairs.\n"
+"     * @return an {@link AttributeList AttributeList} of name and\n"
+"     * value pairs that were actually set.\n"
+"     */\n"
+"    public AttributeList setAttributes(AttributeList attributes)\n"
+"    {\n"
+"        AttributeList setAttributes = new AttributeList();\n"
+"        for(int a = 0; a &lt; attributes.size(); a++) {\n"
+"            Attribute attr = (Attribute) attributes.get(a);\n"
+"            try {\n"
+"                setAttribute(attr);\n"
+"                setAttributes.add(attr);\n"
+"            } catch(Exception ignore) {\n"
+"            }\n"
+"        }\n"
+"        return setAttributes;\n"
+"    }\n"
+"    \n"
+"    /**\n"
+"     *  Invokes a resource operation.\n"
+"     *\n"
+"     *  @param actionName the name of the operation to perform.\n"
+"     *  @param params the parameters to pass to the operation.\n"
+"     *  @param signature the signartures of the parameters.\n"
+"     *  @return the result of the operation.\n"
+"     *  @exception MBeanException wraps any error thrown by the\n"
+"     *  resource when performing the operation.\n"
+"     *  @exception ReflectionException wraps any error invoking the\n"
+"     *  resource.\n"
+"     */\n"
+"    public Object invoke(String actionName, Object[] params,\n"
+"                         String[] signature)\n"
+"        throws MBeanException,\n"
+"               ReflectionException\n"
+"    {\n"
+"        Object rtnValue = null;\n"
+"        log.debug(\"Begin invoke, actionName=\"+actionName);\n"
+"        try {\n"
+"            if (actionName.equals(\"echo\")) {\n"
+"                String arg = (String) params[0];\n"
+"                rtnValue = echo(arg);\n"
+"                log.debug(\"Result: \"+rtnValue);\n"
+"            } else if (actionName.equals(\"create\")) {\n"
+"                super.create();\n"
+"            } else if (actionName.equals(\"start\")) {\n"
+"                super.start();\n"
+"            } else if (actionName.equals(\"stop\")) {\n"
+"                super.stop();\n"
+"            } else if (actionName.equals(\"destroy\")) {\n"
+"                super.destroy();\n"
+"            } else {\n"
+"                throw new JMRuntimeException(\"Invalid state,\n"
+"                don&#39;t know about op=\"+actionName);\n"
+"            }\n"
+"        } catch(Exception e) {\n"
+"            throw new ReflectionException(e, \"echo failed\");\n"
+"        }\n"
+"\n"
+"\n"
+"        log.debug(\"End invoke, actionName=\"+actionName);\n"
+"        return rtnValue;\n"
+"    }\n"
+"    \n"
+"    // --- End DynamicMBean interface methods\n"
+"    \n"
+"}"
 
 #. Tag: para
 #: J2EE_Reference_Introduction.xml:1860




More information about the jboss-cvs-commits mailing list