[jboss-cvs] JBossAS SVN: r82217 - projects/docs/enterprise/4.3.2.1/Seam/Seam_Reference_Guide/ja-JP.

jboss-cvs-commits at lists.jboss.org jboss-cvs-commits at lists.jboss.org
Wed Dec 10 22:16:04 EST 2008


Author: noriko
Date: 2008-12-10 22:16:04 -0500 (Wed, 10 Dec 2008)
New Revision: 82217

Modified:
   projects/docs/enterprise/4.3.2.1/Seam/Seam_Reference_Guide/ja-JP/Jms.po
Log:
initial translation completed. one fuzzy left to clear.

Modified: projects/docs/enterprise/4.3.2.1/Seam/Seam_Reference_Guide/ja-JP/Jms.po
===================================================================
--- projects/docs/enterprise/4.3.2.1/Seam/Seam_Reference_Guide/ja-JP/Jms.po	2008-12-11 01:29:40 UTC (rev 82216)
+++ projects/docs/enterprise/4.3.2.1/Seam/Seam_Reference_Guide/ja-JP/Jms.po	2008-12-11 03:16:04 UTC (rev 82217)
@@ -1,11 +1,11 @@
-# translation of Tools.po to Japanese
-# Noriko Mizumoto <noriko at redhat.com>, 2007.
+# translation of Jms.po to Japanese
+# Noriko Mizumoto <noriko at redhat.com>, 2007, 2008.
 msgid ""
 msgstr ""
-"Project-Id-Version: Tools\n"
+"Project-Id-Version: Jms\n"
 "Report-Msgid-Bugs-To: http://bugs.kde.org\n"
 "POT-Creation-Date: 2008-09-30 00:14+0000\n"
-"PO-Revision-Date: 2007-10-31 13:33+1000\n"
+"PO-Revision-Date: 2008-12-11 13:07+1000\n"
 "Last-Translator: Noriko Mizumoto <noriko at redhat.com>\n"
 "Language-Team: Japanese <fedora-trans-ja at redhat.com>\n"
 "MIME-Version: 1.0\n"
@@ -38,14 +38,14 @@
 
 #. Tag: para
 #: Jms.xml:11
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "But for many usecases, JMS is overkill. Seam layers a simple asynchronous "
 "method and event facility over your choice of <emphasis>dispatchers</"
 "emphasis>:"
 msgstr ""
-"しかし多くのユースケースではJMSは過剰です。 Seamはシンプルな非同期メソッドと"
-"イベント機関をEJB 3.0タイマーサービス上にレイヤ化します。"
+"しかし多くの使用事例ではJMSは過剰です。 Seamはシンプルな非同期メソッドとイベ"
+"ント機能をディスパッチャの選択に応じてレイヤ化します。"
 
 #. Tag: para
 #: Jms.xml:18
@@ -54,18 +54,20 @@
 "<literal>java.util.concurrent.ScheduledThreadPoolExecutor</literal> (by "
 "default)"
 msgstr ""
+"<literal>java.util.concurrent.ScheduledThreadPoolExecutor</literal> (デフォル"
+"ト)"
 
 #. Tag: para
 #: Jms.xml:23
 #, no-c-format
 msgid "the EJB timer service (for EJB 3.0 environments)"
-msgstr ""
+msgstr "EJB タイマーサービス (EJB 3.0 環境向け)"
 
 #. Tag: para
 #: Jms.xml:28
 #, no-c-format
 msgid "Quartz"
-msgstr ""
+msgstr "Quartz"
 
 #. Tag: title
 #: Jms.xml:35
@@ -85,12 +87,18 @@
 "working in an environment that supports EJB 3.0, and add the following line "
 "to <literal>components.xml</literal>:"
 msgstr ""
+"非同期のイベントやメソッドのコールは基礎となるディスパッチャーのメカニズムと"
+"同等のサービスが期待されます。 <literal>ScheduledThreadPoolExecutor</"
+"literal> をベースとするデフォルトのディスパッチャーは効率的な働きをします"
+"が、 永続非同期のタスクに対応していないためタスクが実際に実行されるかは保証さ"
+"れません。 EJB 3.0 に対応する環境で作業している場合は次の行を "
+"<literal>components.xml</literal> に追加します。"
 
 #. Tag: programlisting
 #: Jms.xml:46
 #, no-c-format
 msgid "<![CDATA[<async:timer-service-dispatcher/>]]>"
-msgstr ""
+msgstr "<![CDATA[<async:timer-service-dispatcher/>]]>"
 
 #. Tag: para
 #: Jms.xml:48
@@ -103,10 +111,16 @@
 "implementation will have the option of using persistent timers, which gives "
 "some guarantee that the tasks will eventually be processed."
 msgstr ""
+"これを行うと非同期のタスクがコンテナの EJB タイマーサービスによって処理される"
+"ようになります。 タイマーサービスについて十分な知識がなくても心配する必要はあ"
+"りません。 Seam で非同期メソッドを使用する場合は直接タイマーサービスを操作す"
+"る必要はありません。 理解しておくべき重要な部分とは、 適切に実装されている "
+"EJB 3.0 には永続タイマーを使用するオプションがあり、 これによりタスクが最終的"
+"には処理されることを保証します。"
 
 #. Tag: para
 #: Jms.xml:56
-#, no-c-format
+#, fuzzy, no-c-format
 msgid ""
 "Another alternative is to use the open source Quartz library to manage "
 "asynchronous method. You need to bundle the Quartz library JAR (found in the "
@@ -115,25 +129,34 @@
 "the following line to <literal>components.xml</literal> to install the "
 "Quartz dispatcher."
 msgstr ""
+"別の方法としては、 オープンソースの Quartz ライブラリを使って非同期メソッドを"
+"管理する方法です。この場合、 EAR に Quartz ライブラリ JAR (<literal>lib</"
+"literal> ディレクトリにある) を同梱してから <literal>application.xml</"
+"literal> で Java モジュールとして宣言する必要があります。 Quartz ディスパッ"
+"チャーはクラスパスに Quartz プロパティファイルを追加すると設定可能になりま"
+"す。 <literal>seam.quartz.properties</literal> という名前にしてください。 ま"
+"た、 次の行を <literal>components.xml</literal> に追加して Quartz ディスパッ"
+"チャーをインストールする必要があります。"
 
 #. Tag: programlisting
 #: Jms.xml:64
 #, no-c-format
 msgid "<![CDATA[<async:quartz-dispatcher/>]]>"
-msgstr ""
+msgstr "<![CDATA[<async:quartz-dispatcher/>]]>"
 
 #. Tag: para
 #: Jms.xml:66
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "The Seam API for the default <literal>ScheduledThreadPoolExecutor</literal>, "
 "the EJB3 <literal>Timer</literal>, and the Quartz <literal>Scheduler</"
 "literal> are largely the same. They can just \"plug and play\" by adding a "
 "line to <literal>components.xml</literal>."
 msgstr ""
-"通常、<literal>Person</literal>は<literal>person</literal>で参照出来た方が便"
-"利ですので、<literal>components.xml</literal>に下のように一行加えて、そのよう"
-"にしましょう。"
+"デフォルトの <literal>ScheduledThreadPoolExecutor</literal> の Seam API、 "
+"EJB3 <literal>Timer</literal>、 Quartz <literal>Scheduler</literal> の大部分"
+"は同じになります。 <literal>components.xml</literal> に 1 行追加するだけでプ"
+"ラグアンドプレイが可能です。"
 
 #. Tag: title
 #: Jms.xml:73
@@ -170,7 +193,7 @@
 
 #. Tag: programlisting
 #: Jms.xml:88
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "<![CDATA[@Local\n"
 "public interface PaymentHandler\n"
@@ -179,12 +202,12 @@
 "    public void processPayment(Payment payment);\n"
 "}]]>"
 msgstr ""
-"@Local\n"
+"<![CDATA[@Local\n"
 "public interface PaymentHandler\n"
 "{\n"
 "    @Asynchronous\n"
 "    public void processPayment(Payment payment);\n"
-"}"
+"}]]>"
 
 #. Tag: para
 #: Jms.xml:90
@@ -204,7 +227,7 @@
 
 #. Tag: programlisting
 #: Jms.xml:98
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "<![CDATA[@Stateless\n"
 "@Name(\"paymentHandler\")\n"
@@ -216,7 +239,7 @@
 "    }\n"
 "}]]>"
 msgstr ""
-"@Stateless\n"
+"<![CDATA[@Stateless\n"
 "@Name(\"paymentHandler\")\n"
 "public class PaymentHandlerBean implements PaymentHandler\n"
 "{\n"
@@ -224,7 +247,7 @@
 "    {\n"
 "        //do some work!\n"
 "    }\n"
-"}"
+"}]]>"
 
 #. Tag: para
 #: Jms.xml:100
@@ -234,7 +257,7 @@
 
 #. Tag: programlisting
 #: Jms.xml:104
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "<![CDATA[@Stateful\n"
 "@Name(\"paymentAction\")\n"
@@ -250,7 +273,7 @@
 "    }\n"
 "}]]>"
 msgstr ""
-"@Stateful\n"
+"<![CDATA[@Stateful\n"
 "@Name(\"paymentAction\")\n"
 "public class CreatePaymentAction\n"
 "{\n"
@@ -262,7 +285,7 @@
 "        paymentHandler.processPayment( new Payment(bill) );\n"
 "        return \"success\";\n"
 "    }\n"
-"}"
+"}]]>"
 
 #. Tag: para
 #: Jms.xml:106
@@ -291,7 +314,7 @@
 
 #. Tag: programlisting
 #: Jms.xml:118
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "<![CDATA[@Local\n"
 "public interface PaymentHandler\n"
@@ -306,7 +329,7 @@
 "                                        @IntervalDuration Long interval)'\n"
 "}]]>"
 msgstr ""
-"@Local\n"
+"<![CDATA[@Local\n"
 "public interface PaymentHandler\n"
 "{\n"
 "    @Asynchronous\n"
@@ -314,14 +337,14 @@
 "date);\n"
 "\n"
 "    @Asynchronous\n"
-"    public void processRecurringPayment(Payment payment, @Expiration Date "
-"date, \n"
-"      @IntervalDuration Long interval)&#39;\n"
-"}"
+"    public void processRecurringPayment(Payment payment, \n"
+"                                        @Expiration Date date, \n"
+"                                        @IntervalDuration Long interval)'\n"
+"}]]>"
 
 #. Tag: programlisting
 #: Jms.xml:120
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "<![CDATA[@Stateful\n"
 "@Name(\"paymentAction\")\n"
@@ -346,7 +369,7 @@
 "    }\n"
 "}]]>"
 msgstr ""
-"@Stateful\n"
+"<![CDATA[@Stateful\n"
 "@Name(\"paymentAction\")\n"
 "public class CreatePaymentAction\n"
 "{\n"
@@ -363,10 +386,11 @@
 "    public String scheduleRecurringPayment()\n"
 "    {\n"
 "        paymentHandler.processRecurringPayment( new Payment(bill), bill."
-"getDueDate(), ONE_MONTH );\n"
+"getDueDate(), \n"
+"                                                ONE_MONTH );\n"
 "        return \"success\";\n"
 "    }\n"
-"}"
+"}]]>"
 
 #. Tag: para
 #: Jms.xml:122
@@ -380,10 +404,17 @@
 "returns <literal>QuartzTriggerHandle</literal>, which we will discuss in the "
 "next section."
 msgstr ""
+"クライアント、 サーバーいずれも呼び出しに関連する <literal>Timer</literal> オ"
+"ブジェクトにアクセスすることができます。 以下に示す <literal>Timer</literal> "
+"オブジェクトは EJB3 ディスパッチャーを使用する場合は EJB 3 のタイマーになりま"
+"す。 デフォルトの <literal>ScheduledThreadPoolExecutor</literal> の場合、 返"
+"されるオブジェクトは JDK からの <literal>Future</literal> になります。 "
+"Quartz ディスパッチャーの場合は <literal>QuartzTriggerHandle</literal> を返し"
+"ます。 これについては次のセクションで説明していきます。"
 
 #. Tag: programlisting
 #: Jms.xml:127
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "<![CDATA[@Local\n"
 "public interface PaymentHandler\n"
@@ -393,17 +424,17 @@
 "date);\n"
 "}]]>"
 msgstr ""
-"@Local\n"
+"<![CDATA[@Local\n"
 "public interface PaymentHandler\n"
 "{\n"
 "    @Asynchronous\n"
 "    public Timer processScheduledPayment(Payment payment, @Expiration Date "
 "date);\n"
-"}"
+"}]]>"
 
 #. Tag: programlisting
 #: Jms.xml:129
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "<![CDATA[@Stateless\n"
 "@Name(\"paymentHandler\")\n"
@@ -421,7 +452,7 @@
 "\n"
 "}]]>"
 msgstr ""
-"@Stateless\n"
+"<![CDATA[@Stateless\n"
 "@Name(\"paymentHandler\")\n"
 "public class PaymentHandlerBean implements PaymentHandler\n"
 "{\n"
@@ -435,11 +466,11 @@
 "        return timer; //note that return value is completely ignored\n"
 "    }\n"
 "\n"
-"}"
+"}]]>"
 
 #. Tag: programlisting
 #: Jms.xml:131
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "<![CDATA[@Stateful\n"
 "@Name(\"paymentAction\")\n"
@@ -458,7 +489,7 @@
 "    }\n"
 "}]]>"
 msgstr ""
-"@Stateful\n"
+"<![CDATA[@Stateful\n"
 "@Name(\"paymentAction\")\n"
 "public class CreatePaymentAction\n"
 "{\n"
@@ -468,10 +499,12 @@
 "    public String schedulePayment()\n"
 "    {\n"
 "        Timer timer = paymentHandler.processScheduledPayment( new Payment"
-"(bill), bill.getDueDate() );\n"
+"(bill), \n"
+"                                                              bill.getDueDate"
+"() );\n"
 "        return \"success\";\n"
 "    }\n"
-"}"
+"}]]>"
 
 #. Tag: para
 #: Jms.xml:133
@@ -481,9 +514,9 @@
 
 #. Tag: title
 #: Jms.xml:140
-#, fuzzy, no-c-format
+#, no-c-format
 msgid "Asynchronous methods with the Quartz Dispatcher"
-msgstr "非同期メソッドは呼び出し側に他のどんな値も返すことができません。"
+msgstr "Quartz ディスパッチャーを使った非同期メソッド"
 
 #. Tag: para
 #: Jms.xml:142
@@ -495,6 +528,11 @@
 "annotations as above. But it has some powerful additional features. The "
 "Quartz dispatcher supports three new annotations."
 msgstr ""
+"Quartz ディスパッチャー (インストール方法については前述の説明を参照) では上記"
+"のような <literal>@Asynchronous</literal>、 <literal>@Duration</literal>、 "
+"<literal>@Expiration</literal>、 <literal>@IntervalDuration</literal> のアノ"
+"テーションが使用できます。 ただし、 強力な追加機能があります。 Quartz ディス"
+"パッチャーは 3 種類の新しいアノテーションに対応します。"
 
 #. Tag: para
 #: Jms.xml:146
@@ -503,12 +541,13 @@
 "The <literal>@FinalExpiration</literal> annotation specifies an end date for "
 "the recurring task."
 msgstr ""
-"<literal>@Roles</literal> アノテーションは、欲しいだけ多くの追加のロールの指"
-"定を可能にします。"
+"<literal>@FinalExpiration</literal> アノテーションは反復タスクの終了日を指定"
+"します。 <code>QuartzTriggerHandle</code> のインジェクトが可能なので注意して"
+"ください。"
 
 #. Tag: programlisting
 #: Jms.xml:148
-#, no-c-format
+#, fuzzy, no-c-format
 msgid ""
 "<![CDATA[\n"
 "    // Defines the method in the \"processor\" component\n"
@@ -531,6 +570,28 @@
 "payment);\n"
 "]]>"
 msgstr ""
+"<![CDATA[\n"
+"        @In QuartzTriggerHandle timer;\n"
+"        \n"
+"    // Defines the method in the \"processor\" component\n"
+"    @Asynchronous\n"
+"    public QuartzTriggerHandle schedulePayment(@Expiration Date when, \n"
+"                                 @IntervalDuration Long interval,\n"
+"                                 @FinalExpiration Date endDate, \n"
+"                                 Payment payment) \n"
+"    { \n"
+"        // do the repeating or long running task until endDate\n"
+"    }\n"
+"    \n"
+"    ... ...\n"
+"    \n"
+"    // Schedule the task in the business logic processing code\n"
+"    // Starts now, repeats every hour, and ends on May 10th, 2010\n"
+"    Calendar cal = Calendar.getInstance ();\n"
+"    cal.set (2010, Calendar.MAY, 10);\n"
+"    processor.schedulePayment(new Date(), 60*60*1000, cal.getTime(), "
+"payment);\n"
+"]]>"
 
 #. Tag: para
 #: Jms.xml:150
@@ -542,6 +603,11 @@
 "can save it into the database if you need to keep it around for extended "
 "period of time."
 msgstr ""
+"このメソッドは <literal>QuartzTriggerHandle</literal> を返すので注意してくだ"
+"さい。 後でこれを使用してスケジューラの停止、 一時停止、 再開などを行うことが"
+"できます。 <literal>QuartzTriggerHandle</literal> オブジェクトはシリアライズ"
+"可能であるため、 長期間に渡りこれを維持する必要がある場合はデータベースに保存"
+"することができます。"
 
 #. Tag: programlisting
 #: Jms.xml:152
@@ -561,6 +627,19 @@
 "        payment.getQuartzTriggerHandle().cancel();\n"
 "]]>"
 msgstr ""
+"<![CDATA[QuartzTriggerHandle handle =\n"
+"         processor.schedulePayment(payment.getPaymentDate(), \n"
+"                                   payment.getPaymentCron(), \n"
+"                                   payment);\n"
+"        payment.setQuartzTriggerHandle( handle );\n"
+"        // Save payment to DB\n"
+"        \n"
+"        // later ...\n"
+"        \n"
+"        // Retrieve payment from DB\n"
+"        // Cancel the remaining scheduled tasks\n"
+"        payment.getQuartzTriggerHandle().cancel();\n"
+"]]>"
 
 #. Tag: para
 #: Jms.xml:154
@@ -570,6 +649,9 @@
 "syntax for task scheduling. For instance, the following asynchronous method "
 "runs at 2:10pm and at 2:44pm every Wednesday in the month of March."
 msgstr ""
+"<literal>@IntervalCron</literal> アノテーションはタスクのスケジュールを行うの"
+"に Unix cron ジョブ構文をサポートします。 たとえば、 次の非同期メソッドは 3 "
+"月の毎水曜日の 2:10pm と 2:44pm に実行されます。"
 
 #. Tag: programlisting
 #: Jms.xml:157
@@ -593,6 +675,23 @@
 "payment);\n"
 "]]>"
 msgstr ""
+"<![CDATA[\n"
+"    // Define the method\n"
+"    @Asynchronous\n"
+"    public QuartzTriggerHandle schedulePayment(@Expiration Date when, \n"
+"                                 @IntervalCron String cron, \n"
+"                                 Payment payment) \n"
+"    { \n"
+"        // do the repeating or long running task\n"
+"    }\n"
+"    \n"
+"    ... ...\n"
+"    \n"
+"    // Schedule the task in the business logic processing code\n"
+"    QuartzTriggerHandle handle = \n"
+"      processor.schedulePayment(new Date(), \"0 10,44 14 ? 3 WED\", "
+"payment);\n"
+"]]>"
 
 #. Tag: para
 #: Jms.xml:159
@@ -604,6 +703,10 @@
 "default, it excludes all weekends and US federal holidays until 2010 from "
 "the business days."
 msgstr ""
+"<literal>@IntervalBusinessDay</literal> アノテーションは「第X日営業日」という"
+"状況の呼び出しに対応します。 たとえば、 次の非同期メソッドは毎月第2営業日の "
+"14:00 に実行されます。 デフォルトでは 2010 年まですべての週末とアメリカ合衆国"
+"の祝日を営業日から除外します。"
 
 #. Tag: programlisting
 #: Jms.xml:162
@@ -627,6 +730,23 @@
 "          new NthBusinessDay(2, \"14:00\", WEEKLY), payment);\n"
 "]]>"
 msgstr ""
+"<![CDATA[\n"
+"    // Define the method\n"
+"    @Asynchronous\n"
+"    public QuartzTriggerHandle schedulePayment(@Expiration Date when, \n"
+"                                 @IntervalBusinessDay NthBusinessDay nth, \n"
+"                                 Payment payment) \n"
+"    { \n"
+"        // do the repeating or long running task\n"
+"    }\n"
+"    \n"
+"    ... ...\n"
+"    \n"
+"    // Schedule the task in the business logic processing code\n"
+"    QuartzTriggerHandle handle = \n"
+"      processor.schedulePayment(new Date(), \n"
+"          new NthBusinessDay(2, \"14:00\", WEEKLY), payment);\n"
+"]]>"
 
 #. Tag: para
 #: Jms.xml:164
@@ -637,6 +757,9 @@
 "holidays, non-US holidays etc.) via the <literal>additionalHolidays</"
 "literal> property."
 msgstr ""
+"<literal>NthBusinessDay</literal> オブジェクトには呼び出しトリガーの設定が含"
+"まれます。 <literal>additionalHolidays</literal> プロパティを使って祝日を追加"
+"指定することができます (例、 会社固有の休み、 アメリカ合衆国以外の祝日など)。"
 
 #. Tag: programlisting
 #: Jms.xml:166
@@ -667,6 +790,30 @@
 "}\n"
 "]]>"
 msgstr ""
+"<![CDATA[\n"
+"public class NthBusinessDay implements Serializable\n"
+"{\n"
+"      int n;\n"
+"      String fireAtTime;\n"
+"      List <Date> additionalHolidays;\n"
+"      BusinessDayIntervalType interval;\n"
+"      boolean excludeWeekends;\n"
+"      boolean excludeUsFederalHolidays;\n"
+"\n"
+"      public enum BusinessDayIntervalType { WEEKLY, MONTHLY, YEARLY }\n"
+"\n"
+"      public NthBusinessDay ()\n"
+"      {\n"
+"        n = 1;\n"
+"        fireAtTime = \"12:00\";\n"
+"        additionalHolidays = new ArrayList <Date> ();\n"
+"        interval = BusinessDayIntervalType.WEEKLY;\n"
+"        excludeWeekends = true;\n"
+"        excludeUsFederalHolidays = true;\n"
+"      }     \n"
+"      ... ...\n"
+"}\n"
+"]]>"
 
 #. Tag: para
 #: Jms.xml:168
@@ -677,6 +824,10 @@
 "exclusive. If they are used in the same method, a <literal>RuntimeException</"
 "literal> will be thrown."
 msgstr ""
+"<literal>@IntervalDuration</literal>、 <literal>@IntervalCron</literal>、 "
+"<literal>@IntervalNthBusinessDay</literal> のアノテーションは互いに矛盾しま"
+"す。 同じメソッド内で使用されると <literal>RuntimeException</literal> が送出"
+"されます。"
 
 #. Tag: title
 #: Jms.xml:173
@@ -686,7 +837,7 @@
 
 #. Tag: para
 #: Jms.xml:174
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "Component-driven events may also be asynchronous. To raise an event for "
 "asynchronous processing, simply call the <literal>raiseAsynchronousEvent()</"
@@ -697,13 +848,15 @@
 "observe asynchronous events in the usual way, but remember that only the "
 "business process context is propagated to the asynchronous thread."
 msgstr ""
-"コンポーネント駆動イベントもまた、非同期になることができます。非同期処理のた"
-"めのイベントを起こすには、 単に<literal>Events</literal>クラスの"
-"<literal>raiseAsynchronousEvent()</literal>メソッドを呼ぶだけです。 時間指定"
-"イベントをスケジュールするには、<literal>raiseTimedEvent()</literal>メソッド"
-"のひとつを呼びます。 コンポーネントは通常の方法で非同期イベントを観察できます"
-"が、ビジネスプロセスコンテキストだけが 非同期スレッドに伝播されることを覚えて"
-"おいてください。"
+"コンポーネント駆動のイベントも非同期にすることができます。 非同期処理のイベン"
+"トを引き起こす場合は <literal>Events</literal> の "
+"<literal>raiseAsynchronousEvent()</literal> メソッドを呼び出すだけです。 指定"
+"時刻に起きるイベントをスケジュールするには <literal>raiseTimedEvent()</"
+"literal> メソッドを呼び出し <emphasis>schedule</emphasis> オブジェクトを渡し"
+"ます (デフォルトのディスパッチャーまたはタイマーサービスのディスパッチャーの"
+"場合は <literal>TimerSchedule</literal> を使用する)。 コンポーネントは通常通"
+"りに非同期のイベントを監視することができますが、 非同期スレッドに伝播されるの"
+"はビジネスプロセスコンテキストのみになることを忘れないようにしてください。"
 
 #. Tag: title
 #: Jms.xml:188
@@ -728,18 +881,18 @@
 
 #. Tag: para
 #: Jms.xml:197
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "To configure Seam's infrastructure for sending JMS messages, you need to "
 "tell Seam about any topics and queues you want to send messages to, and also "
 "tell Seam where to find the <literal>QueueConnectionFactory</literal> and/or "
 "<literal>TopicConnectionFactory</literal>."
 msgstr ""
-"JMS メッセージ送信のための Seam インフラストラクチャの設定として、 Seam に対"
-"しメッセージ送信する Topic または、Queue を指示する必要があります。 また、 "
-"<literal>QueueConnectionFactory</literal> あるいは、 "
-"<literal>TopicConnectionFactory</literal> の場所を Seam に指示する必要もあり"
-"ます。"
+"JMS メッセージを送信するため Seam のインフラストラクチャを設定するには、 "
+"Seam に メッセージの送信先となるトピックおよびキューに関する情報を知らせ、 ま"
+"た <literal>QueueConnectionFactory</literal> と "
+"<literal>TopicConnectionFactory</literal> の両方あるいはいずれかの場所も知ら"
+"せる必要があります。"
 
 #. Tag: para
 #: Jms.xml:205
@@ -774,7 +927,7 @@
 
 #. Tag: programlisting
 #: Jms.xml:221
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "<![CDATA[<jms:managed-topic-publisher name=\"stockTickerPublisher\" \n"
 "                             auto-create=\"true\" \n"
@@ -784,13 +937,13 @@
 "                          auto-create=\"true\" \n"
 "                          queue-jndi-name=\"queue/paymentQueue\"/>]]>"
 msgstr ""
-"&lt;jms:managed-topic-publisher name=\"stockTickerPublisher\" \n"
-"                   auto-create=\"true  topic-jndi-name=\"topic/"
-"stockTickerTopic\"/&gt;\n"
+"<![CDATA[<jms:managed-topic-publisher name=\"stockTickerPublisher\" \n"
+"                             auto-create=\"true\" \n"
+"                             topic-jndi-name=\"topic/stockTickerTopic\"/>\n"
 "\n"
-"&lt;jms:managed-queue-sender name=\"paymentQueueSender\" auto-create=\"true"
-"\" \n"
-"    queue-jndi-name=\"queue/paymentQueue\"/&gt;"
+"<jms:managed-queue-sender name=\"paymentQueueSender\" \n"
+"                          auto-create=\"true\" \n"
+"                          queue-jndi-name=\"queue/paymentQueue\"/>]]>"
 
 #. Tag: title
 #: Jms.xml:226
@@ -810,7 +963,7 @@
 
 #. Tag: programlisting
 #: Jms.xml:232
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "<![CDATA[@In \n"
 "private TopicPublisher stockTickerPublisher;   \n"
@@ -829,7 +982,7 @@
 "      } \n"
 "}]]>"
 msgstr ""
-"@In \n"
+"<![CDATA[@In \n"
 "private TopicPublisher stockTickerPublisher;   \n"
 "@In \n"
 "private TopicSession topicSession;\n"
@@ -837,13 +990,14 @@
 "public void publish(StockPrice price) {\n"
 "      try\n"
 "      {\n"
-"         topicPublisher.publish( topicSession.createObjectMessage(price) );\n"
+"         stockTickerPublisher.publish( topicSession.createObjectMessage"
+"(price) );\n"
 "      } \n"
 "      catch (Exception ex)\n"
 "      {\n"
 "         throw new RuntimeException(ex);\n"
 "      } \n"
-"}"
+"}]]>"
 
 #. Tag: para
 #: Jms.xml:234
@@ -853,7 +1007,7 @@
 
 #. Tag: programlisting
 #: Jms.xml:236
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "<![CDATA[@In\n"
 "private QueueSender paymentQueueSender;   \n"
@@ -872,7 +1026,7 @@
 "      } \n"
 "}]]>"
 msgstr ""
-"@In\n"
+"<![CDATA[@In\n"
 "private QueueSender paymentQueueSender;   \n"
 "@In\n"
 "private QueueSession queueSession;\n"
@@ -887,7 +1041,7 @@
 "      {\n"
 "         throw new RuntimeException(ex);\n"
 "      } \n"
-"}"
+"}]]>"
 
 #. Tag: title
 #: Jms.xml:241
@@ -915,10 +1069,103 @@
 
 #. Tag: para
 #: Jms.xml:251
-#, fuzzy, no-c-format
+#, no-c-format
 msgid ""
 "Seam Remoting lets you subscribe to a JMS topic from client-side JavaScript. "
 "This is described in <xref linkend=\"remoting\"/>."
 msgstr ""
-"Seam リモーティングは、クライアント側の JavaScript から JMS Topic に購読を可"
-"能にします。 これは次の章に記述します。"
+"Seam Remoting によりクライアント側の JavaScript から JMS トピックにサブスクラ"
+"イブすることができます。 これについては <xref linkend=\"remoting\"/> に記載さ"
+"れています。"
+
+#~ msgid "Handling exceptions from asynchronous calls"
+#~ msgstr "非同期の呼び出しによる例外を処理する"
+
+#, fuzzy
+#~ msgid ""
+#~ "Each asynchronous dispatcher behaves differently when an exception "
+#~ "propagates through it. For example, the <literal>java.util.concurrent</"
+#~ "literal> dispatcher will suspend further executions of a call which "
+#~ "repeats, and the EJB3 timer service will swallow the exception. Seam "
+#~ "therefore catches any exception which propagates out of the asynchronous "
+#~ "call before it reaches the dispatcher."
+#~ msgstr ""
+#~ "各非同期ディスパッチャーは例外がそれを介して伝播される場合はそれぞれ異なっ"
+#~ "た動作をします。 たとえば、 <literal>java.util.concurrent</literal> ディス"
+#~ "パッチャーは繰り返すコールの実行がこれ以上起きないよう一時停止し、 EJB3 タ"
+#~ "イマーサービスはその例外を吸収します。 したがって伝播する例外はそのディス"
+#~ "パッチャーに到達する前にすべて非同期のコールから Seam によって捕らえられま"
+#~ "す。 swallow? any exception which propagates out of the asynchronous call "
+#~ "=> \"any exception (which propagates) out of the asynchronous call\" or  "
+#~ "\"any exception (which propagates out of the asynchronous call)\""
+
+#~ msgid ""
+#~ "By default, any exception which propagates out from an asynchronous "
+#~ "execution will be caught and logged at error level. You can customize "
+#~ "this behavior globally by overriding the <literal>org.jboss.seam.async."
+#~ "asynchronousExceptionHandler</literal> component:"
+#~ msgstr "デフォルトでは、 "
+
+#~ msgid ""
+#~ "<![CDATA[@Scope(ScopeType.STATELESS)\n"
+#~ "@Name(\"org.jboss.seam.async.asynchronousExceptionHandler\")\n"
+#~ "public class MyAsynchronousExceptionHandler extends "
+#~ "AsynchronousExceptionHandler { \n"
+#~ "\n"
+#~ "   @Logger Log log;\n"
+#~ "   \n"
+#~ "   @In Future timer;\n"
+#~ "   \n"
+#~ "   @Override\n"
+#~ "   public void handleException(Exception exception) {\n"
+#~ "      log.debug(exception);\n"
+#~ "      timer.cancel(false);\n"
+#~ "   }\n"
+#~ "   \n"
+#~ "}]]>"
+#~ msgstr ""
+#~ "<![CDATA[@Scope(ScopeType.STATELESS)\n"
+#~ "@Name(\"org.jboss.seam.async.asynchronousExceptionHandler\")\n"
+#~ "public class MyAsynchronousExceptionHandler extends "
+#~ "AsynchronousExceptionHandler { \n"
+#~ "\n"
+#~ "   @Logger Log log;\n"
+#~ "   \n"
+#~ "   @In Future timer;\n"
+#~ "   \n"
+#~ "   @Override\n"
+#~ "   public void handleException(Exception exception) {\n"
+#~ "      log.debug(exception);\n"
+#~ "      timer.cancel(false);\n"
+#~ "   }\n"
+#~ "   \n"
+#~ "}]]>"
+
+#~ msgid ""
+#~ "Here, for example, using <literal>java.util.concurrent</literal> "
+#~ "dispatcher, we inject it's control object and cancel all future "
+#~ "invocations when an exception is encountered"
+#~ msgstr ""
+#~ "たとえば この <literal>java.util.concurrent</literal> ディスパッチャーを使"
+#~ "用している例では、 その制御オブジェクトをインジェクトして例外が発生すると"
+#~ "今後の呼び出しすべてを取り消しています。"
+
+#~ msgid ""
+#~ "You can also alter this behavior for an individual component by "
+#~ "implementing the method <literal>public void handleAsynchronousException"
+#~ "(Exception exception);</literal> on the component. For example:"
+#~ msgstr ""
+#~ "また、 コンポーネント上にメソッド <literal>public void "
+#~ "handleAsynchronousException(Exception exception);</literal> を実装すること"
+#~ "で個別にコンポーネントのこの動作を変更することができます。 たとえば、"
+
+#~ msgid ""
+#~ "<![CDATA[   public void handleAsynchronousException(Exception exception) "
+#~ "{\n"
+#~ "      log.fatal(exception);\n"
+#~ "   }]]>"
+#~ msgstr ""
+#~ "<![CDATA[   public void handleAsynchronousException(Exception exception) "
+#~ "{\n"
+#~ "      log.fatal(exception);\n"
+#~ "   }]]>"




More information about the jboss-cvs-commits mailing list