<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="ru">
		<id>http://www.jexp.ru/index.php?action=history&amp;feed=atom&amp;title=Java%2FEJB3%2FMessage_Bean</id>
		<title>Java/EJB3/Message Bean - История изменений</title>
		<link rel="self" type="application/atom+xml" href="http://www.jexp.ru/index.php?action=history&amp;feed=atom&amp;title=Java%2FEJB3%2FMessage_Bean"/>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java/EJB3/Message_Bean&amp;action=history"/>
		<updated>2026-04-18T21:42:25Z</updated>
		<subtitle>История изменений этой страницы в вики</subtitle>
		<generator>MediaWiki 1.30.0</generator>

	<entry>
		<id>http://www.jexp.ru/index.php?title=Java/EJB3/Message_Bean&amp;diff=7773&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java/EJB3/Message_Bean&amp;diff=7773&amp;oldid=prev"/>
				<updated>2010-06-01T06:50:32Z</updated>
		
		<summary type="html">&lt;p&gt;1 версия&lt;/p&gt;
&lt;table class=&quot;diff diff-contentalign-left&quot; data-mw=&quot;interface&quot;&gt;
				&lt;tr style=&quot;vertical-align: top;&quot; lang=&quot;ru&quot;&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;← Предыдущая&lt;/td&gt;
				&lt;td colspan=&quot;1&quot; style=&quot;background-color: white; color:black; text-align: center;&quot;&gt;Версия 06:50, 1 июня 2010&lt;/td&gt;
				&lt;/tr&gt;&lt;tr&gt;&lt;td colspan=&quot;2&quot; style=&quot;text-align: center;&quot; lang=&quot;ru&quot;&gt;&lt;div class=&quot;mw-diff-empty&quot;&gt;(нет различий)&lt;/div&gt;
&lt;/td&gt;&lt;/tr&gt;&lt;/table&gt;</summary>
		<author><name>Admin</name></author>	</entry>

	<entry>
		<id>http://www.jexp.ru/index.php?title=Java/EJB3/Message_Bean&amp;diff=7772&amp;oldid=prev</id>
		<title> в 18:01, 31 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://www.jexp.ru/index.php?title=Java/EJB3/Message_Bean&amp;diff=7772&amp;oldid=prev"/>
				<updated>2010-05-31T18:01:45Z</updated>
		
		<summary type="html">&lt;p&gt;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;Новая страница&lt;/b&gt;&lt;/p&gt;&lt;div&gt;== EJB Tutorial from JBoss: Consumer producer  ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
File: ExampleProducer.java&lt;br /&gt;
/*&lt;br /&gt;
 * JBoss, Home of Professional Open Source.&lt;br /&gt;
 * Copyright 2006, Red Hat Middleware LLC, and individual contributors&lt;br /&gt;
 * as indicated by the @author tags. See the copyright.txt file in the&lt;br /&gt;
 * distribution for a full listing of individual contributors.&lt;br /&gt;
 *&lt;br /&gt;
 * This is free software; you can redistribute it and/or modify it&lt;br /&gt;
 * under the terms of the GNU Lesser General Public License as&lt;br /&gt;
 * published by the Free Software Foundation; either version 2.1 of&lt;br /&gt;
 * the License, or (at your option) any later version.&lt;br /&gt;
 *&lt;br /&gt;
 * This software is distributed in the hope that it will be useful,&lt;br /&gt;
 * but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br /&gt;
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU&lt;br /&gt;
 * Lesser General Public License for more details.&lt;br /&gt;
 *&lt;br /&gt;
 * You should have received a copy of the GNU Lesser General Public&lt;br /&gt;
 * License along with this software; if not, write to the Free&lt;br /&gt;
 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA&lt;br /&gt;
 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.&lt;br /&gt;
 */&lt;br /&gt;
package org.jboss.tutorial.consumer.bean;&lt;br /&gt;
import org.jboss.annotation.ejb.MessageProperties;&lt;br /&gt;
import org.jboss.annotation.ejb.DeliveryMode;&lt;br /&gt;
import org.jboss.annotation.ejb.DeliveryMode;&lt;br /&gt;
import org.jboss.annotation.ejb.MessageProperties;&lt;br /&gt;
import java.util.Map;&lt;br /&gt;
/**&lt;br /&gt;
 * comment&lt;br /&gt;
 *&lt;br /&gt;
 * @author &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== EJB Tutorial from JBoss: demo for message driven bean ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
File: ExampleMDB.java&lt;br /&gt;
/*&lt;br /&gt;
 * JBoss, Home of Professional Open Source.&lt;br /&gt;
 * Copyright 2006, Red Hat Middleware LLC, and individual contributors&lt;br /&gt;
 * as indicated by the @author tags. See the copyright.txt file in the&lt;br /&gt;
 * distribution for a full listing of individual contributors.&lt;br /&gt;
 *&lt;br /&gt;
 * This is free software; you can redistribute it and/or modify it&lt;br /&gt;
 * under the terms of the GNU Lesser General Public License as&lt;br /&gt;
 * published by the Free Software Foundation; either version 2.1 of&lt;br /&gt;
 * the License, or (at your option) any later version.&lt;br /&gt;
 *&lt;br /&gt;
 * This software is distributed in the hope that it will be useful,&lt;br /&gt;
 * but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br /&gt;
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU&lt;br /&gt;
 * Lesser General Public License for more details.&lt;br /&gt;
 *&lt;br /&gt;
 * You should have received a copy of the GNU Lesser General Public&lt;br /&gt;
 * License along with this software; if not, write to the Free&lt;br /&gt;
 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA&lt;br /&gt;
 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.&lt;br /&gt;
 */&lt;br /&gt;
package org.jboss.tutorial.mdb.bean;&lt;br /&gt;
import javax.ejb.MessageDriven;&lt;br /&gt;
import javax.ejb.ActivationConfigProperty;&lt;br /&gt;
import javax.jms.Message;&lt;br /&gt;
import javax.jms.MessageListener;&lt;br /&gt;
@MessageDriven(activationConfig =&lt;br /&gt;
        {&lt;br /&gt;
        @ActivationConfigProperty(propertyName=&amp;quot;destinationType&amp;quot;, propertyValue=&amp;quot;javax.jms.Queue&amp;quot;),&lt;br /&gt;
        @ActivationConfigProperty(propertyName=&amp;quot;destination&amp;quot;, propertyValue=&amp;quot;queue/tutorial/example&amp;quot;)&lt;br /&gt;
        })&lt;br /&gt;
public class ExampleMDB implements MessageListener&lt;br /&gt;
{&lt;br /&gt;
   public void onMessage(Message recvMsg)&lt;br /&gt;
   {&lt;br /&gt;
      System.out.println(&amp;quot;----------------&amp;quot;);&lt;br /&gt;
      System.out.println(&amp;quot;Received message&amp;quot;);&lt;br /&gt;
      System.out.println(&amp;quot;----------------&amp;quot;);&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
File: Client.java&lt;br /&gt;
/*&lt;br /&gt;
 * JBoss, Home of Professional Open Source.&lt;br /&gt;
 * Copyright 2006, Red Hat Middleware LLC, and individual contributors&lt;br /&gt;
 * as indicated by the @author tags. See the copyright.txt file in the&lt;br /&gt;
 * distribution for a full listing of individual contributors.&lt;br /&gt;
 *&lt;br /&gt;
 * This is free software; you can redistribute it and/or modify it&lt;br /&gt;
 * under the terms of the GNU Lesser General Public License as&lt;br /&gt;
 * published by the Free Software Foundation; either version 2.1 of&lt;br /&gt;
 * the License, or (at your option) any later version.&lt;br /&gt;
 *&lt;br /&gt;
 * This software is distributed in the hope that it will be useful,&lt;br /&gt;
 * but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br /&gt;
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU&lt;br /&gt;
 * Lesser General Public License for more details.&lt;br /&gt;
 *&lt;br /&gt;
 * You should have received a copy of the GNU Lesser General Public&lt;br /&gt;
 * License along with this software; if not, write to the Free&lt;br /&gt;
 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA&lt;br /&gt;
 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.&lt;br /&gt;
 */&lt;br /&gt;
package org.jboss.tutorial.mdb.client;&lt;br /&gt;
import javax.jms.Queue;&lt;br /&gt;
import javax.jms.QueueConnection;&lt;br /&gt;
import javax.jms.QueueConnectionFactory;&lt;br /&gt;
import javax.jms.QueueSender;&lt;br /&gt;
import javax.jms.QueueSession;&lt;br /&gt;
import javax.jms.TextMessage;&lt;br /&gt;
import javax.naming.InitialContext;&lt;br /&gt;
public class Client&lt;br /&gt;
{&lt;br /&gt;
   public static void main(String[] args) throws Exception&lt;br /&gt;
   {&lt;br /&gt;
      QueueConnection cnn = null;&lt;br /&gt;
      QueueSender sender = null;&lt;br /&gt;
      QueueSession session = null;&lt;br /&gt;
      InitialContext ctx = new InitialContext();&lt;br /&gt;
      Queue queue = (Queue) ctx.lookup(&amp;quot;queue/tutorial/example&amp;quot;);&lt;br /&gt;
      QueueConnectionFactory factory = (QueueConnectionFactory) ctx.lookup(&amp;quot;ConnectionFactory&amp;quot;);&lt;br /&gt;
      cnn = factory.createQueueConnection();&lt;br /&gt;
      session = cnn.createQueueSession(false, QueueSession.AUTO_ACKNOWLEDGE);&lt;br /&gt;
      TextMessage msg = session.createTextMessage(&amp;quot;Hello World&amp;quot;);&lt;br /&gt;
      sender = session.createSender(queue);&lt;br /&gt;
      sender.send(msg);&lt;br /&gt;
      System.out.println(&amp;quot;Message sent successfully to remote queue.&amp;quot;);&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== EJB Tutorial from JBoss: Message driven bean ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
File: DependedOnMBean.java&lt;br /&gt;
/*&lt;br /&gt;
 * JBoss, Home of Professional Open Source.&lt;br /&gt;
 * Copyright 2006, Red Hat Middleware LLC, and individual contributors&lt;br /&gt;
 * as indicated by the @author tags. See the copyright.txt file in the&lt;br /&gt;
 * distribution for a full listing of individual contributors.&lt;br /&gt;
 *&lt;br /&gt;
 * This is free software; you can redistribute it and/or modify it&lt;br /&gt;
 * under the terms of the GNU Lesser General Public License as&lt;br /&gt;
 * published by the Free Software Foundation; either version 2.1 of&lt;br /&gt;
 * the License, or (at your option) any later version.&lt;br /&gt;
 *&lt;br /&gt;
 * This software is distributed in the hope that it will be useful,&lt;br /&gt;
 * but WITHOUT ANY WARRANTY; without even the implied warranty of&lt;br /&gt;
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU&lt;br /&gt;
 * Lesser General Public License for more details.&lt;br /&gt;
 *&lt;br /&gt;
 * You should have received a copy of the GNU Lesser General Public&lt;br /&gt;
 * License along with this software; if not, write to the Free&lt;br /&gt;
 * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA&lt;br /&gt;
 * 02110-1301 USA, or see the FSF site: http://www.fsf.org.&lt;br /&gt;
 */&lt;br /&gt;
package org.jboss.tutorial.dependency.bean;&lt;br /&gt;
import org.jboss.system.ServiceMBean;&lt;br /&gt;
/**&lt;br /&gt;
 * Comment&lt;br /&gt;
 *&lt;br /&gt;
 * @author &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== EJB Tutorial from JBoss: message driven bean deployment descriptor ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- start source code --&amp;gt;&lt;br /&gt;
   &lt;br /&gt;
    &amp;lt;source lang=&amp;quot;java&amp;quot;&amp;gt;&lt;br /&gt;
&lt;br /&gt;
File: ejb-jar.xml&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;UTF-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;ejb-jar&lt;br /&gt;
        xmlns=&amp;quot;http://java.sun.ru/xml/ns/javaee&amp;quot;&lt;br /&gt;
        xmlns:xsi=&amp;quot;http://www.w3.org/2001/XMLSchema-instance&amp;quot;&lt;br /&gt;
        xsi:schemaLocation=&amp;quot;http://java.sun.ru/xml/ns/javaee&lt;br /&gt;
                            http://java.sun.ru/xml/ns/javaee/ejb-jar_3_0.xsd&amp;quot;&lt;br /&gt;
        version=&amp;quot;3.0&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;description&amp;gt;JBoss Message Driven Bean Tutorial&amp;lt;/description&amp;gt;&lt;br /&gt;
   &amp;lt;display-name&amp;gt;JBoss Message Driven Bean Tutorial&amp;lt;/display-name&amp;gt;&lt;br /&gt;
   &amp;lt;enterprise-beans&amp;gt;&lt;br /&gt;
      &amp;lt;message-driven&amp;gt;&lt;br /&gt;
     &amp;lt;ejb-name&amp;gt;ExampleMDB&amp;lt;/ejb-name&amp;gt;&lt;br /&gt;
     &amp;lt;ejb-class&amp;gt;org.jboss.tutorial.mdb_deployment_descriptor.bean.ExampleMDB&amp;lt;/ejb-class&amp;gt;&lt;br /&gt;
         &amp;lt;transaction-type&amp;gt;Bean&amp;lt;/transaction-type&amp;gt;&lt;br /&gt;
         &amp;lt;message-destination-type&amp;gt;javax.jms.Queue&amp;lt;/message-destination-type&amp;gt;&lt;br /&gt;
       &amp;lt;activation-config&amp;gt;   &lt;br /&gt;
          &amp;lt;activation-config-property&amp;gt;&lt;br /&gt;
            &amp;lt;activation-config-property-name&amp;gt;acknowledgeMode&amp;lt;/activation-config-property-name&amp;gt;&lt;br /&gt;
            &amp;lt;activation-config-property-value&amp;gt;AUTO_ACKNOWLEDGE&amp;lt;/activation-config-property-value&amp;gt;&lt;br /&gt;
          &amp;lt;/activation-config-property&amp;gt;&lt;br /&gt;
        &amp;lt;/activation-config&amp;gt;&lt;br /&gt;
      &amp;lt;/message-driven&amp;gt;&lt;br /&gt;
   &amp;lt;/enterprise-beans&amp;gt;&lt;br /&gt;
&amp;lt;/ejb-jar&amp;gt;&lt;br /&gt;
&lt;br /&gt;
File: jboss.xml&lt;br /&gt;
&amp;lt;?xml version=&amp;quot;1.0&amp;quot; encoding=&amp;quot;utf-8&amp;quot;?&amp;gt;&lt;br /&gt;
&amp;lt;jboss&lt;br /&gt;
        xmlns=&amp;quot;http://java.sun.ru/xml/ns/javaee&amp;quot;&lt;br /&gt;
        xmlns:xsi=&amp;quot;http://www.w3.org/2001/XMLSchema-instance&amp;quot;&lt;br /&gt;
        xsi:schemaLocation=&amp;quot;http://java.sun.ru/xml/ns/javaee&lt;br /&gt;
                            http://www.jboss.org/j2ee/schema/jboss_5_0.xsd&amp;quot;&lt;br /&gt;
        version=&amp;quot;3.0&amp;quot;&amp;gt;&lt;br /&gt;
   &amp;lt;enterprise-beans&amp;gt;&lt;br /&gt;
      &amp;lt;message-driven&amp;gt;&lt;br /&gt;
         &amp;lt;ejb-name&amp;gt;ExampleMDB&amp;lt;/ejb-name&amp;gt;&lt;br /&gt;
         &amp;lt;destination-jndi-name&amp;gt;queue/tutorial/example&amp;lt;/destination-jndi-name&amp;gt;&lt;br /&gt;
      &amp;lt;/message-driven&amp;gt;&lt;br /&gt;
   &amp;lt;/enterprise-beans&amp;gt;&lt;br /&gt;
&amp;lt;/jboss&amp;gt;&lt;br /&gt;
&lt;br /&gt;
           &lt;br /&gt;
       &amp;lt;/source&amp;gt;&lt;br /&gt;
    &lt;br /&gt;
   &lt;br /&gt;
  &amp;lt;!-- end source code --&amp;gt;&lt;/div&gt;</summary>
			</entry>

	</feed>