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

	<entry>
		<id>http://jexp.ru/index.php?title=Java/EJB3/Asynchronous&amp;diff=7725&amp;oldid=prev</id>
		<title>Admin: 1 версия</title>
		<link rel="alternate" type="text/html" href="http://jexp.ru/index.php?title=Java/EJB3/Asynchronous&amp;diff=7725&amp;oldid=prev"/>
				<updated>2010-06-01T06:50:14Z</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://jexp.ru/index.php?title=Java/EJB3/Asynchronous&amp;diff=7724&amp;oldid=prev</id>
		<title> в 18:01, 31 мая 2010</title>
		<link rel="alternate" type="text/html" href="http://jexp.ru/index.php?title=Java/EJB3/Asynchronous&amp;diff=7724&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: Asynchronous call ==&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;
 * 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.asynch.client;&lt;br /&gt;
import javax.naming.InitialContext;&lt;br /&gt;
import org.jboss.aspects.asynch.Future;&lt;br /&gt;
import org.jboss.ejb3.asynchronous.Asynch;&lt;br /&gt;
import org.jboss.tutorial.asynch.bean.Echo;&lt;br /&gt;
&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;
      InitialContext ctx = new InitialContext();&lt;br /&gt;
      Echo echo = (Echo)ctx.lookup(&amp;quot;EchoBean/remote&amp;quot;);&lt;br /&gt;
      System.out.println(&amp;quot;-------- Synchronous call&amp;quot;);&lt;br /&gt;
      String ret = echo.echo(&amp;quot;normal call&amp;quot;);&lt;br /&gt;
      System.out.println(ret);&lt;br /&gt;
      Echo asynchEcho = (Echo) Asynch.getAsynchronousProxy(echo);&lt;br /&gt;
      System.out.println(&amp;quot;-------- Asynchronous call&amp;quot;);&lt;br /&gt;
      ret = asynchEcho.echo(&amp;quot;asynchronous call&amp;quot;);&lt;br /&gt;
      System.out.println(&amp;quot;Direct return of async invocation is: &amp;quot; + ret);&lt;br /&gt;
      System.out.println(&amp;quot;-------- Synchronous call&amp;quot;);&lt;br /&gt;
      ret = echo.echo(&amp;quot;normal call 2&amp;quot;);&lt;br /&gt;
      System.out.println(ret);&lt;br /&gt;
      System.out.println(&amp;quot;-------- Result of Asynchronous call&amp;quot;);&lt;br /&gt;
      Future future = Asynch.getFutureResult(asynchEcho);&lt;br /&gt;
      System.out.println(&amp;quot;Waiting for asynbch invocation to complete&amp;quot;);&lt;br /&gt;
      while (!future.isDone())&lt;br /&gt;
      {&lt;br /&gt;
         Thread.sleep(100);&lt;br /&gt;
      }&lt;br /&gt;
      ret = (String)future.get();&lt;br /&gt;
      System.out.println(ret);&lt;br /&gt;
&lt;br /&gt;
   }&lt;br /&gt;
}&lt;br /&gt;
&lt;br /&gt;
File: Echo.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.asynch.bean;&lt;br /&gt;
&lt;br /&gt;
/**&lt;br /&gt;
 * @author&lt;/div&gt;</summary>
			</entry>

	</feed>