Overlord SVN: r447 - cdl/tags.
by overlord-commits@lists.jboss.org
Author: jeff.yuchang
Date: 2008-11-18 09:09:08 -0500 (Tue, 18 Nov 2008)
New Revision: 447
Added:
cdl/tags/1.0-M1/
Log:
* Tag it as 1.0-M1 for CDL release.
Copied: cdl/tags/1.0-M1 (from rev 446, cdl/trunk)
15 years, 5 months
Overlord SVN: r446 - cdl/tags.
by overlord-commits@lists.jboss.org
Author: jeff.yuchang
Date: 2008-11-15 09:46:26 -0500 (Sat, 15 Nov 2008)
New Revision: 446
Removed:
cdl/tags/1.0-M1/
Log:
* Remove this tag, as its obsolete now.
15 years, 5 months
Overlord SVN: r445 - cdl/trunk/docs/docbook/samplesguide/src/main/module.
by overlord-commits@lists.jboss.org
Author: jeff.yuchang
Date: 2008-11-15 08:08:31 -0500 (Sat, 15 Nov 2008)
New Revision: 445
Modified:
cdl/trunk/docs/docbook/samplesguide/src/main/module/cdlconformance.xml
cdl/trunk/docs/docbook/samplesguide/src/main/module/cdlvalidator.xml
Log:
* Add the hot-deploy issue warnning in the samples guide.
* Restructure the 'ant deploy-error-client' explanation.
Modified: cdl/trunk/docs/docbook/samplesguide/src/main/module/cdlconformance.xml
===================================================================
--- cdl/trunk/docs/docbook/samplesguide/src/main/module/cdlconformance.xml 2008-11-14 15:59:58 UTC (rev 444)
+++ cdl/trunk/docs/docbook/samplesguide/src/main/module/cdlconformance.xml 2008-11-15 13:08:31 UTC (rev 445)
@@ -11,6 +11,11 @@
These examples make use of a common <emphasis>Credit Agency</emphasis> service, defined within the <filename>common-creditAgency</filename> Eclipse project, and are executed through the use of client applications defined in the <filename>${OverlordCDL}/samples/client</filename> folder.
</para>
+ <warning>
+ At the moment, the conversation aware ESB runtime doesn't support the hot-deploy. That means if you update the business pojo class, such as <emphasis role="bold">$creditAgency/src/main/com/acme/services/creditAgency/CreditAgencyPurchase.java</emphasis> file,
+ You need to re-deploy it, and then <emphasis role="bold">restart the server </emphasis> to cause it to take effect. This issue has been tracked under <ulink url="https://jira.jboss.org/jira/browse/SOAG-72">https://jira.jboss.org/jira/browse/SOAG-72</ulink>. Will be fixed in the next release.
+ </warning>
+
<section>
<title>Purchasing Example</title>
Modified: cdl/trunk/docs/docbook/samplesguide/src/main/module/cdlvalidator.xml
===================================================================
--- cdl/trunk/docs/docbook/samplesguide/src/main/module/cdlvalidator.xml 2008-11-14 15:59:58 UTC (rev 444)
+++ cdl/trunk/docs/docbook/samplesguide/src/main/module/cdlvalidator.xml 2008-11-15 13:08:31 UTC (rev 445)
@@ -92,34 +92,39 @@
</para>
<orderedlist>
<listitem>
-Edit the LoanBroker.java in the <filename>$Overlord/samples/trailblazer/client/src/org/jboss/soa/esb/samples/trailblazer/loanbroker</filename> folder
+ Run the ant task <emphasis role="bold">ant deploy-error-client</emphasis> to redeploy the trailblaizer example.
+ </listitem>
+ <listitem>
+ Run the commands from step 6 above.
</listitem>
- <listitem>
-Find the following code within the <emphasis>processLoanRequest</emphasis> method, and change the 4 to a 7
-
+ </orderedlist>
+ <para>
+ The above steps show how changing the service implementation without updating a choreography can result in behavioural validation errors being detected.
+ </para>
+ <tip>
+ <title>What is changed when we run ant deploy-error-client</title>
+ <para>
+ Compared to command of <emphasis role="bold">ant deploy</emphasis>, basically, we have just updated the following code in
+ <emphasis role="bold">$Overlord/samples/trailblazer/client/src/org/jboss/soa/esb/samples/trailblazer/loanbroker/LoanBroker.java</emphasis> file.
+ </para>
+ <para>
+ In the following code within the <emphasis role="bold">processLoanRequest</emphasis> method, we've changed the "4" to "7"
+
<programlisting>
- //step 2 - check if score is acceptable
-
+ //step 2 - check if score is acceptable
if (score >= 4) {
</programlisting>
- </listitem>
- <listitem>
-Re-deploy the trailblazer example (step 7 above)
- </listitem>
- <listitem>
-Issue further loan requests, remembering to change the quote reference each time, until a Credit Check result of between 4 and 6 inclusive occurs, which will result in an out of sequence message being reported (in red) to the Choreography Monitor
-
-<note><para>
-It is currently a requirement that the choreography used within the Choreography Monitor is the same as the description used to locally monitor the services (i.e. within the overlord-cdl-validator.esb/models directory).
-</para></note>
- </listitem>
- </orderedlist>
-
+ </para>
+ </tip>
+
<para>
- </para>
+ Issue further loan requests, remembering to change the quote reference each time, until a Credit Check result of between 4 and 6 inclusive occurs, which will result in an out of sequence message being reported (in red) to the Choreography Monitor
- <para>
-The above steps show how changing the service implementation without updating a choreography can result in behavioural validation errors being detected. The other way to demonstrate the effect of this change is to simply run the ant task: <emphasis role="bold">ant deploy-error-client</emphasis>, from the <filename>$Overlord/samples/trailblazer</filename> folder, which achieves the same results.
+ <note>
+ <para>
+ It is currently a requirement that the choreography used within the Choreography Monitor is the same as the description used to locally monitor the services (i.e. within the overlord-cdl-validator.esb/models directory).
+ </para>
+ </note>
</para>
</section>
15 years, 5 months
Overlord SVN: r444 - in cdl/trunk/docs/docbook: gettingstartedguide/src/main/module and 1 other directories.
by overlord-commits@lists.jboss.org
Author: objectiser
Date: 2008-11-14 10:59:58 -0500 (Fri, 14 Nov 2008)
New Revision: 444
Added:
cdl/trunk/docs/docbook/gettingstartedguide/src/main/images/TrailBlazerMonitorError.jpg
Modified:
cdl/trunk/docs/docbook/gettingstartedguide/src/main/module/soagwithcdl.xml
cdl/trunk/docs/docbook/samplesguide/src/main/module/cdlvalidator.xml
Log:
Updated to include instructions on deploying trailblazer client that results in unexpected message error.
Added: cdl/trunk/docs/docbook/gettingstartedguide/src/main/images/TrailBlazerMonitorError.jpg
===================================================================
(Binary files differ)
Property changes on: cdl/trunk/docs/docbook/gettingstartedguide/src/main/images/TrailBlazerMonitorError.jpg
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: cdl/trunk/docs/docbook/gettingstartedguide/src/main/module/soagwithcdl.xml
===================================================================
--- cdl/trunk/docs/docbook/gettingstartedguide/src/main/module/soagwithcdl.xml 2008-11-13 13:28:01 UTC (rev 443)
+++ cdl/trunk/docs/docbook/gettingstartedguide/src/main/module/soagwithcdl.xml 2008-11-14 15:59:58 UTC (rev 444)
@@ -325,7 +325,7 @@
<orderedlist>
<listitem>
-From the <filename>trailblazer</filename> folder, execute the command to start the ESB: <emphasis role="bold">ant deploy</emphasis>
+From the <filename>trailblazer</filename> folder, execute the following command to deploy the example to the ESB: <emphasis role="bold">ant deploy</emphasis>
<para>
this should deploy the ESB and WAR files to your JBoss AS <filename>server/default</filename>.
</para>
@@ -386,6 +386,37 @@
</section>
+ <section>
+ <title>Detecting a Validation Error</title>
+
+ <para>
+To demonstrate the detection of validation errors, there is an alternative implementation of the trailblazer modules that behaviour differently to the choreography that is being monitored. Specifically, the credit score threshold used to determine whether a loan request should be issued to the banks, is raised from 4 to 7.
+ </para>
+
+ <para>
+To deploy the version of the TrailBlazer example that results in validation errors, then:
+ </para>
+
+ <itemizedlist>
+ <listitem>
+From the <filename>$Overlord/samples/trailblazer</filename> folder, execute the following command to deploy the example to the ESB: <emphasis role="bold">ant deploy-error-client</emphasis>.
+ </listitem>
+ </itemizedlist>
+
+ <para>
+The next step is to issue more transactions, until a credit check score occurs that is between 4 and 6 inclusive. This will result in a <emphasis>insufficientCredit</emphasis> interaction being reported, which would be unexpected in terms of the choreography.
+ </para>
+
+ <imageobject>
+ <imagedata fileref="images/TrailBlazerMonitorError.jpg" align="center" width="4in" />
+ </imageobject>
+
+ <para>
+When errors, such as unexpected messages, are detected by the service validators and reported to the Choreography Monitor, they are displayed in red.
+ </para>
+
+ </section>
+
</section>
</chapter>
Modified: cdl/trunk/docs/docbook/samplesguide/src/main/module/cdlvalidator.xml
===================================================================
--- cdl/trunk/docs/docbook/samplesguide/src/main/module/cdlvalidator.xml 2008-11-13 13:28:01 UTC (rev 443)
+++ cdl/trunk/docs/docbook/samplesguide/src/main/module/cdlvalidator.xml 2008-11-14 15:59:58 UTC (rev 444)
@@ -115,6 +115,13 @@
</listitem>
</orderedlist>
+ <para>
+ </para>
+
+ <para>
+The above steps show how changing the service implementation without updating a choreography can result in behavioural validation errors being detected. The other way to demonstrate the effect of this change is to simply run the ant task: <emphasis role="bold">ant deploy-error-client</emphasis>, from the <filename>$Overlord/samples/trailblazer</filename> folder, which achieves the same results.
+ </para>
+
</section>
</chapter>
15 years, 5 months
Overlord SVN: r443 - in cdl/trunk/distribution/eclipse: features and 1 other directories.
by overlord-commits@lists.jboss.org
Author: objectiser
Date: 2008-11-13 08:28:01 -0500 (Thu, 13 Nov 2008)
New Revision: 443
Added:
cdl/trunk/distribution/eclipse/features/org.jboss.tools.overlord.cdl.jbossesb.feature_1.0.0.200811131234.jar
cdl/trunk/distribution/eclipse/features/org.scribble.conversation.feature_0.1.0.200811131234.jar
cdl/trunk/distribution/eclipse/features/org.scribble.experimental.feature_0.1.0.200811131234.jar
cdl/trunk/distribution/eclipse/features/org.scribble.feature_0.1.0.200811131234.jar
cdl/trunk/distribution/eclipse/features/org.scribble.java.feature_0.1.0.200811131234.jar
cdl/trunk/distribution/eclipse/features/org.scribble.protocol.feature_0.1.0.200811131234.jar
cdl/trunk/distribution/eclipse/plugins/org.jboss.tools.overlord.cdl.runtime.jbossesb_1.0.0.200811131234.jar
cdl/trunk/distribution/eclipse/plugins/org.jboss.tools.overlord.cdl.validator.jbossesb_1.0.0.200811131234.jar
cdl/trunk/distribution/eclipse/plugins/org.scribble.conformance_0.1.0.200811131234.jar
cdl/trunk/distribution/eclipse/plugins/org.scribble.conversation.comparator_0.1.0.200811131234.jar
cdl/trunk/distribution/eclipse/plugins/org.scribble.conversation.export.text_0.1.0.200811131234.jar
cdl/trunk/distribution/eclipse/plugins/org.scribble.conversation.model_0.1.0.200811131234.jar
cdl/trunk/distribution/eclipse/plugins/org.scribble.conversation.parser_0.1.0.200811131234.jar
cdl/trunk/distribution/eclipse/plugins/org.scribble.conversation.projector_0.1.0.200811131234.jar
cdl/trunk/distribution/eclipse/plugins/org.scribble.conversation.validation_0.1.0.200811131234.jar
cdl/trunk/distribution/eclipse/plugins/org.scribble.core_0.1.0.200811131234.jar
cdl/trunk/distribution/eclipse/plugins/org.scribble.designer_0.1.0.200811131234.jar
cdl/trunk/distribution/eclipse/plugins/org.scribble.lang.comparator_0.1.0.200811131234.jar
cdl/trunk/distribution/eclipse/plugins/org.scribble.lang.java.parser_0.1.0.200811131234.jar
cdl/trunk/distribution/eclipse/plugins/org.scribble.lang.model_0.1.0.200811131234.jar
cdl/trunk/distribution/eclipse/plugins/org.scribble.osgi_0.1.0.200811131234.jar
cdl/trunk/distribution/eclipse/plugins/org.scribble.protocol.comparator_0.1.0.200811131234.jar
cdl/trunk/distribution/eclipse/plugins/org.scribble.protocol.export.text_0.1.0.200811131234.jar
cdl/trunk/distribution/eclipse/plugins/org.scribble.protocol.model_0.1.0.200811131234.jar
cdl/trunk/distribution/eclipse/plugins/org.scribble.protocol.parser_0.1.0.200811131234.jar
cdl/trunk/distribution/eclipse/plugins/org.scribble.protocol.projector_0.1.0.200811131234.jar
cdl/trunk/distribution/eclipse/plugins/org.scribble.protocol.validation_0.1.0.200811131234.jar
cdl/trunk/distribution/eclipse/plugins/org.scribble.type.java.parser_0.1.0.200811131234.jar
Removed:
cdl/trunk/distribution/eclipse/features/org.jboss.tools.overlord.cdl.jbossesb.feature_1.0.0.200811122154.jar
cdl/trunk/distribution/eclipse/features/org.scribble.conversation.feature_0.1.0.200810221847.jar
cdl/trunk/distribution/eclipse/features/org.scribble.experimental.feature_0.1.0.200810221847.jar
cdl/trunk/distribution/eclipse/features/org.scribble.feature_0.1.0.200810221847.jar
cdl/trunk/distribution/eclipse/features/org.scribble.protocol.feature_0.1.0.200810221847.jar
cdl/trunk/distribution/eclipse/plugins/org.jboss.tools.overlord.cdl.runtime.jbossesb_1.0.0.200811122154.jar
cdl/trunk/distribution/eclipse/plugins/org.jboss.tools.overlord.cdl.validator.jbossesb_1.0.0.200811122154.jar
cdl/trunk/distribution/eclipse/plugins/org.scribble.conformance_0.1.0.200810221847.jar
cdl/trunk/distribution/eclipse/plugins/org.scribble.conversation.comparator_0.1.0.200810221847.jar
cdl/trunk/distribution/eclipse/plugins/org.scribble.conversation.export.text_0.1.0.200810221847.jar
cdl/trunk/distribution/eclipse/plugins/org.scribble.conversation.model_0.1.0.200810221847.jar
cdl/trunk/distribution/eclipse/plugins/org.scribble.conversation.parser_0.1.0.200810221847.jar
cdl/trunk/distribution/eclipse/plugins/org.scribble.conversation.projector_0.1.0.200810221847.jar
cdl/trunk/distribution/eclipse/plugins/org.scribble.conversation.validation_0.1.0.200810221847.jar
cdl/trunk/distribution/eclipse/plugins/org.scribble.core_0.1.0.200810221847.jar
cdl/trunk/distribution/eclipse/plugins/org.scribble.designer_0.1.0.200810221847.jar
cdl/trunk/distribution/eclipse/plugins/org.scribble.lang.comparator_0.1.0.200810221847.jar
cdl/trunk/distribution/eclipse/plugins/org.scribble.lang.java.parser_0.1.0.200810221847.jar
cdl/trunk/distribution/eclipse/plugins/org.scribble.lang.model_0.1.0.200810221847.jar
cdl/trunk/distribution/eclipse/plugins/org.scribble.osgi_0.1.0.200810221847.jar
cdl/trunk/distribution/eclipse/plugins/org.scribble.protocol.comparator_0.1.0.200810221847.jar
cdl/trunk/distribution/eclipse/plugins/org.scribble.protocol.export.text_0.1.0.200810221847.jar
cdl/trunk/distribution/eclipse/plugins/org.scribble.protocol.model_0.1.0.200810221847.jar
cdl/trunk/distribution/eclipse/plugins/org.scribble.protocol.parser_0.1.0.200810221847.jar
cdl/trunk/distribution/eclipse/plugins/org.scribble.protocol.projector_0.1.0.200810221847.jar
cdl/trunk/distribution/eclipse/plugins/org.scribble.protocol.validation_0.1.0.200810221847.jar
Modified:
cdl/trunk/distribution/eclipse/site.xml
Log:
Updated tool plugins to overcome import issue resulting in jboss-esb.xml validation errors, due to compiled Java classes not being available.
Deleted: cdl/trunk/distribution/eclipse/features/org.jboss.tools.overlord.cdl.jbossesb.feature_1.0.0.200811122154.jar
===================================================================
(Binary files differ)
Added: cdl/trunk/distribution/eclipse/features/org.jboss.tools.overlord.cdl.jbossesb.feature_1.0.0.200811131234.jar
===================================================================
(Binary files differ)
Property changes on: cdl/trunk/distribution/eclipse/features/org.jboss.tools.overlord.cdl.jbossesb.feature_1.0.0.200811131234.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Deleted: cdl/trunk/distribution/eclipse/features/org.scribble.conversation.feature_0.1.0.200810221847.jar
===================================================================
(Binary files differ)
Added: cdl/trunk/distribution/eclipse/features/org.scribble.conversation.feature_0.1.0.200811131234.jar
===================================================================
(Binary files differ)
Property changes on: cdl/trunk/distribution/eclipse/features/org.scribble.conversation.feature_0.1.0.200811131234.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Deleted: cdl/trunk/distribution/eclipse/features/org.scribble.experimental.feature_0.1.0.200810221847.jar
===================================================================
(Binary files differ)
Added: cdl/trunk/distribution/eclipse/features/org.scribble.experimental.feature_0.1.0.200811131234.jar
===================================================================
(Binary files differ)
Property changes on: cdl/trunk/distribution/eclipse/features/org.scribble.experimental.feature_0.1.0.200811131234.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Deleted: cdl/trunk/distribution/eclipse/features/org.scribble.feature_0.1.0.200810221847.jar
===================================================================
(Binary files differ)
Added: cdl/trunk/distribution/eclipse/features/org.scribble.feature_0.1.0.200811131234.jar
===================================================================
(Binary files differ)
Property changes on: cdl/trunk/distribution/eclipse/features/org.scribble.feature_0.1.0.200811131234.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: cdl/trunk/distribution/eclipse/features/org.scribble.java.feature_0.1.0.200811131234.jar
===================================================================
(Binary files differ)
Property changes on: cdl/trunk/distribution/eclipse/features/org.scribble.java.feature_0.1.0.200811131234.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Deleted: cdl/trunk/distribution/eclipse/features/org.scribble.protocol.feature_0.1.0.200810221847.jar
===================================================================
(Binary files differ)
Added: cdl/trunk/distribution/eclipse/features/org.scribble.protocol.feature_0.1.0.200811131234.jar
===================================================================
(Binary files differ)
Property changes on: cdl/trunk/distribution/eclipse/features/org.scribble.protocol.feature_0.1.0.200811131234.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Deleted: cdl/trunk/distribution/eclipse/plugins/org.jboss.tools.overlord.cdl.runtime.jbossesb_1.0.0.200811122154.jar
===================================================================
(Binary files differ)
Added: cdl/trunk/distribution/eclipse/plugins/org.jboss.tools.overlord.cdl.runtime.jbossesb_1.0.0.200811131234.jar
===================================================================
(Binary files differ)
Property changes on: cdl/trunk/distribution/eclipse/plugins/org.jboss.tools.overlord.cdl.runtime.jbossesb_1.0.0.200811131234.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Deleted: cdl/trunk/distribution/eclipse/plugins/org.jboss.tools.overlord.cdl.validator.jbossesb_1.0.0.200811122154.jar
===================================================================
(Binary files differ)
Added: cdl/trunk/distribution/eclipse/plugins/org.jboss.tools.overlord.cdl.validator.jbossesb_1.0.0.200811131234.jar
===================================================================
(Binary files differ)
Property changes on: cdl/trunk/distribution/eclipse/plugins/org.jboss.tools.overlord.cdl.validator.jbossesb_1.0.0.200811131234.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Deleted: cdl/trunk/distribution/eclipse/plugins/org.scribble.conformance_0.1.0.200810221847.jar
===================================================================
(Binary files differ)
Added: cdl/trunk/distribution/eclipse/plugins/org.scribble.conformance_0.1.0.200811131234.jar
===================================================================
(Binary files differ)
Property changes on: cdl/trunk/distribution/eclipse/plugins/org.scribble.conformance_0.1.0.200811131234.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Deleted: cdl/trunk/distribution/eclipse/plugins/org.scribble.conversation.comparator_0.1.0.200810221847.jar
===================================================================
(Binary files differ)
Added: cdl/trunk/distribution/eclipse/plugins/org.scribble.conversation.comparator_0.1.0.200811131234.jar
===================================================================
(Binary files differ)
Property changes on: cdl/trunk/distribution/eclipse/plugins/org.scribble.conversation.comparator_0.1.0.200811131234.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Deleted: cdl/trunk/distribution/eclipse/plugins/org.scribble.conversation.export.text_0.1.0.200810221847.jar
===================================================================
(Binary files differ)
Added: cdl/trunk/distribution/eclipse/plugins/org.scribble.conversation.export.text_0.1.0.200811131234.jar
===================================================================
(Binary files differ)
Property changes on: cdl/trunk/distribution/eclipse/plugins/org.scribble.conversation.export.text_0.1.0.200811131234.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Deleted: cdl/trunk/distribution/eclipse/plugins/org.scribble.conversation.model_0.1.0.200810221847.jar
===================================================================
(Binary files differ)
Added: cdl/trunk/distribution/eclipse/plugins/org.scribble.conversation.model_0.1.0.200811131234.jar
===================================================================
(Binary files differ)
Property changes on: cdl/trunk/distribution/eclipse/plugins/org.scribble.conversation.model_0.1.0.200811131234.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Deleted: cdl/trunk/distribution/eclipse/plugins/org.scribble.conversation.parser_0.1.0.200810221847.jar
===================================================================
(Binary files differ)
Added: cdl/trunk/distribution/eclipse/plugins/org.scribble.conversation.parser_0.1.0.200811131234.jar
===================================================================
(Binary files differ)
Property changes on: cdl/trunk/distribution/eclipse/plugins/org.scribble.conversation.parser_0.1.0.200811131234.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Deleted: cdl/trunk/distribution/eclipse/plugins/org.scribble.conversation.projector_0.1.0.200810221847.jar
===================================================================
(Binary files differ)
Added: cdl/trunk/distribution/eclipse/plugins/org.scribble.conversation.projector_0.1.0.200811131234.jar
===================================================================
(Binary files differ)
Property changes on: cdl/trunk/distribution/eclipse/plugins/org.scribble.conversation.projector_0.1.0.200811131234.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Deleted: cdl/trunk/distribution/eclipse/plugins/org.scribble.conversation.validation_0.1.0.200810221847.jar
===================================================================
(Binary files differ)
Added: cdl/trunk/distribution/eclipse/plugins/org.scribble.conversation.validation_0.1.0.200811131234.jar
===================================================================
(Binary files differ)
Property changes on: cdl/trunk/distribution/eclipse/plugins/org.scribble.conversation.validation_0.1.0.200811131234.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Deleted: cdl/trunk/distribution/eclipse/plugins/org.scribble.core_0.1.0.200810221847.jar
===================================================================
(Binary files differ)
Added: cdl/trunk/distribution/eclipse/plugins/org.scribble.core_0.1.0.200811131234.jar
===================================================================
(Binary files differ)
Property changes on: cdl/trunk/distribution/eclipse/plugins/org.scribble.core_0.1.0.200811131234.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Deleted: cdl/trunk/distribution/eclipse/plugins/org.scribble.designer_0.1.0.200810221847.jar
===================================================================
(Binary files differ)
Added: cdl/trunk/distribution/eclipse/plugins/org.scribble.designer_0.1.0.200811131234.jar
===================================================================
(Binary files differ)
Property changes on: cdl/trunk/distribution/eclipse/plugins/org.scribble.designer_0.1.0.200811131234.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Deleted: cdl/trunk/distribution/eclipse/plugins/org.scribble.lang.comparator_0.1.0.200810221847.jar
===================================================================
(Binary files differ)
Added: cdl/trunk/distribution/eclipse/plugins/org.scribble.lang.comparator_0.1.0.200811131234.jar
===================================================================
(Binary files differ)
Property changes on: cdl/trunk/distribution/eclipse/plugins/org.scribble.lang.comparator_0.1.0.200811131234.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Deleted: cdl/trunk/distribution/eclipse/plugins/org.scribble.lang.java.parser_0.1.0.200810221847.jar
===================================================================
(Binary files differ)
Added: cdl/trunk/distribution/eclipse/plugins/org.scribble.lang.java.parser_0.1.0.200811131234.jar
===================================================================
(Binary files differ)
Property changes on: cdl/trunk/distribution/eclipse/plugins/org.scribble.lang.java.parser_0.1.0.200811131234.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Deleted: cdl/trunk/distribution/eclipse/plugins/org.scribble.lang.model_0.1.0.200810221847.jar
===================================================================
(Binary files differ)
Added: cdl/trunk/distribution/eclipse/plugins/org.scribble.lang.model_0.1.0.200811131234.jar
===================================================================
(Binary files differ)
Property changes on: cdl/trunk/distribution/eclipse/plugins/org.scribble.lang.model_0.1.0.200811131234.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Deleted: cdl/trunk/distribution/eclipse/plugins/org.scribble.osgi_0.1.0.200810221847.jar
===================================================================
(Binary files differ)
Added: cdl/trunk/distribution/eclipse/plugins/org.scribble.osgi_0.1.0.200811131234.jar
===================================================================
(Binary files differ)
Property changes on: cdl/trunk/distribution/eclipse/plugins/org.scribble.osgi_0.1.0.200811131234.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Deleted: cdl/trunk/distribution/eclipse/plugins/org.scribble.protocol.comparator_0.1.0.200810221847.jar
===================================================================
(Binary files differ)
Added: cdl/trunk/distribution/eclipse/plugins/org.scribble.protocol.comparator_0.1.0.200811131234.jar
===================================================================
(Binary files differ)
Property changes on: cdl/trunk/distribution/eclipse/plugins/org.scribble.protocol.comparator_0.1.0.200811131234.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Deleted: cdl/trunk/distribution/eclipse/plugins/org.scribble.protocol.export.text_0.1.0.200810221847.jar
===================================================================
(Binary files differ)
Added: cdl/trunk/distribution/eclipse/plugins/org.scribble.protocol.export.text_0.1.0.200811131234.jar
===================================================================
(Binary files differ)
Property changes on: cdl/trunk/distribution/eclipse/plugins/org.scribble.protocol.export.text_0.1.0.200811131234.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Deleted: cdl/trunk/distribution/eclipse/plugins/org.scribble.protocol.model_0.1.0.200810221847.jar
===================================================================
(Binary files differ)
Added: cdl/trunk/distribution/eclipse/plugins/org.scribble.protocol.model_0.1.0.200811131234.jar
===================================================================
(Binary files differ)
Property changes on: cdl/trunk/distribution/eclipse/plugins/org.scribble.protocol.model_0.1.0.200811131234.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Deleted: cdl/trunk/distribution/eclipse/plugins/org.scribble.protocol.parser_0.1.0.200810221847.jar
===================================================================
(Binary files differ)
Added: cdl/trunk/distribution/eclipse/plugins/org.scribble.protocol.parser_0.1.0.200811131234.jar
===================================================================
(Binary files differ)
Property changes on: cdl/trunk/distribution/eclipse/plugins/org.scribble.protocol.parser_0.1.0.200811131234.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Deleted: cdl/trunk/distribution/eclipse/plugins/org.scribble.protocol.projector_0.1.0.200810221847.jar
===================================================================
(Binary files differ)
Added: cdl/trunk/distribution/eclipse/plugins/org.scribble.protocol.projector_0.1.0.200811131234.jar
===================================================================
(Binary files differ)
Property changes on: cdl/trunk/distribution/eclipse/plugins/org.scribble.protocol.projector_0.1.0.200811131234.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Deleted: cdl/trunk/distribution/eclipse/plugins/org.scribble.protocol.validation_0.1.0.200810221847.jar
===================================================================
(Binary files differ)
Added: cdl/trunk/distribution/eclipse/plugins/org.scribble.protocol.validation_0.1.0.200811131234.jar
===================================================================
(Binary files differ)
Property changes on: cdl/trunk/distribution/eclipse/plugins/org.scribble.protocol.validation_0.1.0.200811131234.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Added: cdl/trunk/distribution/eclipse/plugins/org.scribble.type.java.parser_0.1.0.200811131234.jar
===================================================================
(Binary files differ)
Property changes on: cdl/trunk/distribution/eclipse/plugins/org.scribble.type.java.parser_0.1.0.200811131234.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: cdl/trunk/distribution/eclipse/site.xml
===================================================================
--- cdl/trunk/distribution/eclipse/site.xml 2008-11-13 12:24:19 UTC (rev 442)
+++ cdl/trunk/distribution/eclipse/site.xml 2008-11-13 13:28:01 UTC (rev 443)
@@ -1,20 +1,23 @@
<?xml version="1.0" encoding="UTF-8"?>
<site>
- <feature url="features/org.jboss.tools.overlord.cdl.jbossesb.feature_1.0.0.200811122154.jar" id="org.jboss.tools.overlord.cdl.jbossesb.feature" version="1.0.0.200811122154">
- <category name="JBossESB"/>
+ <feature url="features/org.scribble.conversation.feature_0.1.0.200811131234.jar" id="org.scribble.conversation.feature" version="0.1.0.200811131234">
+ <category name="Common"/>
</feature>
- <feature url="features/org.scribble.conversation.feature_0.1.0.200810221847.jar" id="org.scribble.conversation.feature" version="0.1.0.200810221847">
+ <feature url="features/org.scribble.experimental.feature_0.1.0.200811131234.jar" id="org.scribble.experimental.feature" version="0.1.0.200811131234">
<category name="Common"/>
</feature>
- <feature url="features/org.scribble.experimental.feature_0.1.0.200810221847.jar" id="org.scribble.experimental.feature" version="0.1.0.200810221847">
+ <feature url="features/org.scribble.feature_0.1.0.200811131234.jar" id="org.scribble.feature" version="0.1.0.200811131234">
<category name="Common"/>
</feature>
- <feature url="features/org.scribble.feature_0.1.0.200810221847.jar" id="org.scribble.feature" version="0.1.0.200810221847">
+ <feature url="features/org.scribble.java.feature_0.1.0.200811131234.jar" id="org.scribble.java.feature" version="0.1.0.200811131234">
<category name="Common"/>
</feature>
- <feature url="features/org.scribble.protocol.feature_0.1.0.200810221847.jar" id="org.scribble.protocol.feature" version="0.1.0.200810221847">
+ <feature url="features/org.scribble.protocol.feature_0.1.0.200811131234.jar" id="org.scribble.protocol.feature" version="0.1.0.200811131234">
<category name="Common"/>
</feature>
+ <feature url="features/org.jboss.tools.overlord.cdl.jbossesb.feature_1.0.0.200811131234.jar" id="org.jboss.tools.overlord.cdl.jbossesb.feature" version="1.0.0.200811131234">
+ <category name="JBossESB"/>
+ </feature>
<category-def name="JBossESB" label="JBossESB">
<description>
Overlord CDL tools for JBossESB.
15 years, 5 months
Overlord SVN: r442 - cdl/trunk/tools/plugins/org.jboss.tools.overlord.cdl.runtime.jbossesb/src/java/org/jboss/tools/overlord/cdl/runtime/jbossesb/model.
by overlord-commits@lists.jboss.org
Author: objectiser
Date: 2008-11-13 07:24:19 -0500 (Thu, 13 Nov 2008)
New Revision: 442
Modified:
cdl/trunk/tools/plugins/org.jboss.tools.overlord.cdl.runtime.jbossesb/src/java/org/jboss/tools/overlord/cdl/runtime/jbossesb/model/DefaultESBService.java
Log:
Fixed focus issue when related to top level block in conversation.
Modified: cdl/trunk/tools/plugins/org.jboss.tools.overlord.cdl.runtime.jbossesb/src/java/org/jboss/tools/overlord/cdl/runtime/jbossesb/model/DefaultESBService.java
===================================================================
--- cdl/trunk/tools/plugins/org.jboss.tools.overlord.cdl.runtime.jbossesb/src/java/org/jboss/tools/overlord/cdl/runtime/jbossesb/model/DefaultESBService.java 2008-11-12 21:56:15 UTC (rev 441)
+++ cdl/trunk/tools/plugins/org.jboss.tools.overlord.cdl.runtime.jbossesb/src/java/org/jboss/tools/overlord/cdl/runtime/jbossesb/model/DefaultESBService.java 2008-11-13 12:24:19 UTC (rev 442)
@@ -633,6 +633,7 @@
ret = new Conversation();
ret.derivedFrom(this);
+ ret.getBlock().derivedFrom(this);
ModelName modelName=new ModelName();
modelName.setName(getServiceDescriptionName());
@@ -693,7 +694,7 @@
logger.warning("No conversation type specified");
}
- ret.setBlock(new Block());
+ //ret.setBlock(new Block());
context = new DefaultConversionContext(role);
15 years, 5 months
Overlord SVN: r441 - in cdl/trunk/distribution/eclipse: features and 1 other directories.
by overlord-commits@lists.jboss.org
Author: objectiser
Date: 2008-11-12 16:56:15 -0500 (Wed, 12 Nov 2008)
New Revision: 441
Added:
cdl/trunk/distribution/eclipse/features/org.jboss.tools.overlord.cdl.jbossesb.feature_1.0.0.200811122154.jar
cdl/trunk/distribution/eclipse/plugins/org.jboss.tools.overlord.cdl.runtime.jbossesb_1.0.0.200811122154.jar
cdl/trunk/distribution/eclipse/plugins/org.jboss.tools.overlord.cdl.validator.jbossesb_1.0.0.200811122154.jar
Removed:
cdl/trunk/distribution/eclipse/features/org.jboss.tools.overlord.cdl.jbossesb.feature_1.0.0.200810221847.jar
cdl/trunk/distribution/eclipse/plugins/org.jboss.tools.overlord.cdl.runtime.jbossesb_1.0.0.200810221847.jar
cdl/trunk/distribution/eclipse/plugins/org.jboss.tools.overlord.cdl.validator.jbossesb_1.0.0.200810221847.jar
Modified:
cdl/trunk/distribution/eclipse/site.xml
Log:
Updated jboss plugins to fix annotations problem.
Deleted: cdl/trunk/distribution/eclipse/features/org.jboss.tools.overlord.cdl.jbossesb.feature_1.0.0.200810221847.jar
===================================================================
(Binary files differ)
Added: cdl/trunk/distribution/eclipse/features/org.jboss.tools.overlord.cdl.jbossesb.feature_1.0.0.200811122154.jar
===================================================================
(Binary files differ)
Property changes on: cdl/trunk/distribution/eclipse/features/org.jboss.tools.overlord.cdl.jbossesb.feature_1.0.0.200811122154.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Deleted: cdl/trunk/distribution/eclipse/plugins/org.jboss.tools.overlord.cdl.runtime.jbossesb_1.0.0.200810221847.jar
===================================================================
(Binary files differ)
Added: cdl/trunk/distribution/eclipse/plugins/org.jboss.tools.overlord.cdl.runtime.jbossesb_1.0.0.200811122154.jar
===================================================================
(Binary files differ)
Property changes on: cdl/trunk/distribution/eclipse/plugins/org.jboss.tools.overlord.cdl.runtime.jbossesb_1.0.0.200811122154.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Deleted: cdl/trunk/distribution/eclipse/plugins/org.jboss.tools.overlord.cdl.validator.jbossesb_1.0.0.200810221847.jar
===================================================================
(Binary files differ)
Added: cdl/trunk/distribution/eclipse/plugins/org.jboss.tools.overlord.cdl.validator.jbossesb_1.0.0.200811122154.jar
===================================================================
(Binary files differ)
Property changes on: cdl/trunk/distribution/eclipse/plugins/org.jboss.tools.overlord.cdl.validator.jbossesb_1.0.0.200811122154.jar
___________________________________________________________________
Name: svn:mime-type
+ application/octet-stream
Modified: cdl/trunk/distribution/eclipse/site.xml
===================================================================
--- cdl/trunk/distribution/eclipse/site.xml 2008-11-12 21:54:03 UTC (rev 440)
+++ cdl/trunk/distribution/eclipse/site.xml 2008-11-12 21:56:15 UTC (rev 441)
@@ -1,6 +1,6 @@
<?xml version="1.0" encoding="UTF-8"?>
<site>
- <feature url="features/org.jboss.tools.overlord.cdl.jbossesb.feature_1.0.0.200810221847.jar" id="org.jboss.tools.overlord.cdl.jbossesb.feature" version="1.0.0.200810221847">
+ <feature url="features/org.jboss.tools.overlord.cdl.jbossesb.feature_1.0.0.200811122154.jar" id="org.jboss.tools.overlord.cdl.jbossesb.feature" version="1.0.0.200811122154">
<category name="JBossESB"/>
</feature>
<feature url="features/org.scribble.conversation.feature_0.1.0.200810221847.jar" id="org.scribble.conversation.feature" version="0.1.0.200810221847">
15 years, 5 months
Overlord SVN: r440 - in cdl/trunk/tools/plugins/org.jboss.tools.overlord.cdl.validator.jbossesb/src/java/org/jboss/tools/overlord/cdl/validator/jbossesb/eclipse/annotations: cdl and 1 other directory.
by overlord-commits@lists.jboss.org
Author: objectiser
Date: 2008-11-12 16:54:03 -0500 (Wed, 12 Nov 2008)
New Revision: 440
Added:
cdl/trunk/tools/plugins/org.jboss.tools.overlord.cdl.validator.jbossesb/src/java/org/jboss/tools/overlord/cdl/validator/jbossesb/eclipse/annotations/cdl/
cdl/trunk/tools/plugins/org.jboss.tools.overlord.cdl.validator.jbossesb/src/java/org/jboss/tools/overlord/cdl/validator/jbossesb/eclipse/annotations/cdl/jbossesb.presentation
cdl/trunk/tools/plugins/org.jboss.tools.overlord.cdl.validator.jbossesb/src/java/org/jboss/tools/overlord/cdl/validator/jbossesb/eclipse/annotations/cdl/jbossesb.template
Log:
Fixed problem where annotations were not being loaded.
Added: cdl/trunk/tools/plugins/org.jboss.tools.overlord.cdl.validator.jbossesb/src/java/org/jboss/tools/overlord/cdl/validator/jbossesb/eclipse/annotations/cdl/jbossesb.presentation
===================================================================
--- cdl/trunk/tools/plugins/org.jboss.tools.overlord.cdl.validator.jbossesb/src/java/org/jboss/tools/overlord/cdl/validator/jbossesb/eclipse/annotations/cdl/jbossesb.presentation (rev 0)
+++ cdl/trunk/tools/plugins/org.jboss.tools.overlord.cdl.validator.jbossesb/src/java/org/jboss/tools/overlord/cdl/validator/jbossesb/eclipse/annotations/cdl/jbossesb.presentation 2008-11-12 21:54:03 UTC (rev 440)
@@ -0,0 +1,3 @@
+<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform">
+<xsl:template match="/">
+The JBossESB Service destination is <xsl:if test="jbossesb/destination/@name != ''" >'<xsl:value-of select="jbossesb/destination/@name" />' </xsl:if><xsl:if test="jbossesb/destination/@name = ''" >'undefined' </xsl:if> [temporary=<xsl:value-of select="jbossesb/destination/@temporary"/>]</xsl:template></xsl:stylesheet>
\ No newline at end of file
Added: cdl/trunk/tools/plugins/org.jboss.tools.overlord.cdl.validator.jbossesb/src/java/org/jboss/tools/overlord/cdl/validator/jbossesb/eclipse/annotations/cdl/jbossesb.template
===================================================================
--- cdl/trunk/tools/plugins/org.jboss.tools.overlord.cdl.validator.jbossesb/src/java/org/jboss/tools/overlord/cdl/validator/jbossesb/eclipse/annotations/cdl/jbossesb.template (rev 0)
+++ cdl/trunk/tools/plugins/org.jboss.tools.overlord.cdl.validator.jbossesb/src/java/org/jboss/tools/overlord/cdl/validator/jbossesb/eclipse/annotations/cdl/jbossesb.template 2008-11-12 21:54:03 UTC (rev 440)
@@ -0,0 +1,4 @@
+<jbossesb>
+ <destination name="{{Destination;The URI for the ESB destination;string;;}}"
+ temporary="{{Temporary;Whether the destination is temporary;boolean;;false}}" />
+</jbossesb>
15 years, 5 months
Overlord SVN: r439 - in cdl/trunk/tools/plugins/org.jboss.tools.overlord.cdl.validator.jbossesb: src/java/org/jboss/tools/overlord/cdl/validator/jbossesb/eclipse and 1 other directories.
by overlord-commits@lists.jboss.org
Author: objectiser
Date: 2008-11-12 16:32:24 -0500 (Wed, 12 Nov 2008)
New Revision: 439
Added:
cdl/trunk/tools/plugins/org.jboss.tools.overlord.cdl.validator.jbossesb/src/java/org/jboss/tools/overlord/cdl/validator/jbossesb/eclipse/annotations/
cdl/trunk/tools/plugins/org.jboss.tools.overlord.cdl.validator.jbossesb/src/java/org/jboss/tools/overlord/cdl/validator/jbossesb/eclipse/annotations/annotations.xml
Removed:
cdl/trunk/tools/plugins/org.jboss.tools.overlord.cdl.validator.jbossesb/annotations/
Modified:
cdl/trunk/tools/plugins/org.jboss.tools.overlord.cdl.validator.jbossesb/build.properties
cdl/trunk/tools/plugins/org.jboss.tools.overlord.cdl.validator.jbossesb/src/java/org/jboss/tools/overlord/cdl/validator/jbossesb/eclipse/JBossESBValidatorAnnotations.java
Log:
Fixed problem where annotations were not being loaded.
Modified: cdl/trunk/tools/plugins/org.jboss.tools.overlord.cdl.validator.jbossesb/build.properties
===================================================================
--- cdl/trunk/tools/plugins/org.jboss.tools.overlord.cdl.validator.jbossesb/build.properties 2008-11-12 18:16:01 UTC (rev 438)
+++ cdl/trunk/tools/plugins/org.jboss.tools.overlord.cdl.validator.jbossesb/build.properties 2008-11-12 21:32:24 UTC (rev 439)
@@ -3,14 +3,12 @@
bin.includes = META-INF/,\
.,\
plugin.xml,\
- Copyright.txt,\
- annotations/
+ Copyright.txt
src.includes = .classpath,\
.project,\
.settings/,\
Copyright.txt,\
META-INF/,\
- annotations/,\
build.properties,\
plugin.xml,\
src/
Modified: cdl/trunk/tools/plugins/org.jboss.tools.overlord.cdl.validator.jbossesb/src/java/org/jboss/tools/overlord/cdl/validator/jbossesb/eclipse/JBossESBValidatorAnnotations.java
===================================================================
--- cdl/trunk/tools/plugins/org.jboss.tools.overlord.cdl.validator.jbossesb/src/java/org/jboss/tools/overlord/cdl/validator/jbossesb/eclipse/JBossESBValidatorAnnotations.java 2008-11-12 18:16:01 UTC (rev 438)
+++ cdl/trunk/tools/plugins/org.jboss.tools.overlord.cdl.validator.jbossesb/src/java/org/jboss/tools/overlord/cdl/validator/jbossesb/eclipse/JBossESBValidatorAnnotations.java 2008-11-12 21:32:24 UTC (rev 439)
@@ -19,6 +19,9 @@
*/
package org.jboss.tools.overlord.cdl.validator.jbossesb.eclipse;
+import java.net.URL;
+import java.util.logging.Logger;
+
import org.pi4soa.common.annotations.eclipse.EclipseAnnotationsManager;
/**
@@ -29,4 +32,37 @@
public JBossESBValidatorAnnotations() {
super(Activator.PLUGIN_ID);
}
+
+ /**
+ * This method returns an input stream associated with the
+ * supplied URL. The URL can also reference a local relative
+ * file path.
+ *
+ * @param url The URL, or relative file path
+ * @return The input stream
+ */
+ protected java.io.InputStream getInputStream(String url) {
+ java.io.InputStream ret=null;
+
+ try {
+ String path=ANNOTATIONS_FOLDER +
+ "/" + url;
+
+ logger.fine("Load from path: "+path);
+
+ ret = JBossESBValidatorAnnotations.class.getResourceAsStream(path);
+
+ } catch(Exception e) {
+ logger.severe("Failed to get input stream for URL '"+
+ url+"': "+e);
+ }
+ logger.info("Ret="+ret);
+
+ return(ret);
+ }
+
+ private static Logger logger = Logger.getLogger("org.jboss.tools.overlord.cdl.validator.jbossesb.eclipse");
+
+ private static final String ANNOTATIONS_FOLDER="annotations";
+ private static final String PATH_SEPARATOR = "/";
}
Added: cdl/trunk/tools/plugins/org.jboss.tools.overlord.cdl.validator.jbossesb/src/java/org/jboss/tools/overlord/cdl/validator/jbossesb/eclipse/annotations/annotations.xml
===================================================================
--- cdl/trunk/tools/plugins/org.jboss.tools.overlord.cdl.validator.jbossesb/src/java/org/jboss/tools/overlord/cdl/validator/jbossesb/eclipse/annotations/annotations.xml (rev 0)
+++ cdl/trunk/tools/plugins/org.jboss.tools.overlord.cdl.validator.jbossesb/src/java/org/jboss/tools/overlord/cdl/validator/jbossesb/eclipse/annotations/annotations.xml 2008-11-12 21:32:24 UTC (rev 439)
@@ -0,0 +1,8 @@
+<annotations>
+ <annotation type="jbossesb" component="org.pi4soa.cdl.ExchangeDetails" >
+ <template url="cdl/jbossesb.template"
+ processor="org.pi4soa.common.annotations.impl.DefaultTemplateProcessor" />
+ <presentation url="cdl/jbossesb.presentation"
+ processor="org.pi4soa.common.annotations.impl.XSLTPresentationProcessor" />
+ </annotation>
+</annotations>
\ No newline at end of file
15 years, 5 months
Overlord SVN: r438 - cdl/trunk/samples/jbossesb/trailblazer/client/java-files.
by overlord-commits@lists.jboss.org
Author: jeff.yuchang
Date: 2008-11-12 13:16:01 -0500 (Wed, 12 Nov 2008)
New Revision: 438
Added:
cdl/trunk/samples/jbossesb/trailblazer/client/java-files/FailedLoanBroker.java
cdl/trunk/samples/jbossesb/trailblazer/client/java-files/SuccessfulLoanBroker.java
Log:
* Forgot to add these two files in last commit.
Added: cdl/trunk/samples/jbossesb/trailblazer/client/java-files/FailedLoanBroker.java
===================================================================
--- cdl/trunk/samples/jbossesb/trailblazer/client/java-files/FailedLoanBroker.java (rev 0)
+++ cdl/trunk/samples/jbossesb/trailblazer/client/java-files/FailedLoanBroker.java 2008-11-12 18:16:01 UTC (rev 438)
@@ -0,0 +1,228 @@
+package org.jboss.soa.esb.samples.trailblazer.loanbroker;
+
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2005-2006,
+ * @author mark.little(a)jboss.com
+ */
+
+
+import java.util.Properties;
+
+import javax.xml.parsers.DocumentBuilder;
+import javax.xml.parsers.DocumentBuilderFactory;
+
+import org.apache.log4j.Logger;
+import org.jboss.soa.esb.message.Message;
+import org.jboss.soa.esb.message.format.MessageFactory;
+import org.jboss.soa.esb.message.format.MessageType;
+import org.jboss.soa.esb.samples.trailblazer.util.TrailblazerProperties;
+import org.jboss.soa.esb.samples.trailblazer.web.WebCustomer;
+import org.jboss.soa.esb.client.ServiceInvoker;
+
+/*
+ * LoanBroker is responsible for getting customer requests for loans onto the JBoss ESB
+ * Requests will come from a JSR-181 pojo web service (@org.jboss.soa.esb.samples.trailblazer.web.LoanBrokerWS)
+ * The sequence of events from the LoanBroker are:
+ * 1 - Prepare a request for the CreditAgency (transform the customer into a XML representation)
+ * 2 - Send to CreditAgency and get response (lookup the customer using the SSN (see @CustomerMasterFile)
+ * 3 - Prepare a LoanRequest for each of the banks in their unique data structures and send
+ * 4 - Collect the response(s) from the bank(s) and send an email to the customer with the quote offers
+ */
+
+public class LoanBroker {
+
+ private static Logger logger = Logger.getLogger(LoanBroker.class);
+ //used to locate our entries in the trailblazer-properties
+ private final String CREDIT_AGENCY_SERVICE_NAME = "creditagency.service.epr.name";
+ private final String CREDIT_AGENCY_SERVICE_CAT = "creditagency.service.category";
+ private final String BANK1_SERVICE_NAME = "bank1.service.epr.name";
+ private final String BANK1_SERVICE_CAT = "bank1.service.category";
+ private final String BANK2_SERVICE_NAME = "bank2.service.epr.name";
+ private final String BANK2_SERVICE_CAT = "bank2.service.category";
+ private final String NOTIFIER_SERVICE_NAME = "notifier.service.epr.name";
+ private final String NOTIFIER_SERVICE_CAT = "notifier.service.category";
+ private Properties properties = new TrailblazerProperties();
+ private ServiceInvoker serviceInvoker;
+ private ServiceInvoker bank1Invoker;
+ private ServiceInvoker bank2Invoker;
+ private ServiceInvoker notifierInvoker;
+
+ public LoanBroker() {
+ String serviceCategoryName = properties.getProperty(CREDIT_AGENCY_SERVICE_CAT);
+ String serviceName = properties.getProperty(CREDIT_AGENCY_SERVICE_NAME);
+ String bank1ServiceCategoryName = properties.getProperty(BANK1_SERVICE_CAT);
+ String bank1ServiceName = properties.getProperty(BANK1_SERVICE_NAME);
+ String bank2ServiceCategoryName = properties.getProperty(BANK2_SERVICE_CAT);
+ String bank2ServiceName = properties.getProperty(BANK2_SERVICE_NAME);
+ String notifierServiceCategoryName = properties.getProperty(NOTIFIER_SERVICE_CAT);
+ String notifierServiceName = properties.getProperty(NOTIFIER_SERVICE_NAME);
+
+ try {
+ serviceInvoker = new ServiceInvoker(serviceCategoryName, serviceName);
+ } catch (Exception e) {
+ throw new RuntimeException("Failed to create ServiceInvoker for '" + serviceCategoryName + ":" + serviceName + "'.", e);
+ }
+
+ try {
+ bank1Invoker = new ServiceInvoker(bank1ServiceCategoryName, bank1ServiceName);
+ } catch (Exception e) {
+ throw new RuntimeException("Failed to create ServiceInvoker for '" + bank1ServiceCategoryName + ":" + bank1ServiceName + "'.", e);
+ }
+
+ try {
+ bank2Invoker = new ServiceInvoker(bank2ServiceCategoryName, bank2ServiceName);
+ } catch (Exception e) {
+ throw new RuntimeException("Failed to create ServiceInvoker for '" + bank2ServiceCategoryName + ":" + bank2ServiceName + "'.", e);
+ }
+
+ try {
+ notifierInvoker = new ServiceInvoker(notifierServiceCategoryName, notifierServiceName);
+ } catch (Exception e) {
+ throw new RuntimeException("Failed to create ServiceInvoker for '" + notifierServiceCategoryName + ":" + notifierServiceName + "'.", e);
+ }
+ }
+
+ public void processLoanRequest(WebCustomer wCustomer) {
+
+ Customer customer = getCustomer(wCustomer);
+ //keep the customer in a file someplace for later use, if needed
+ CustomerMasterFile.addCustomer(String.valueOf(customer.ssn), customer);
+
+ //step 1 - send to credit agency for credit score if available
+
+ int score=sendToCreditAgency(customer);
+
+ //added a pause here to give the creditagency some time to reply
+ try {
+ Thread.sleep(5000);
+ } catch (InterruptedException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+
+ //step 2 - check if score is acceptable
+
+ if (score >= 7) {
+ //step 3a - send to Bank - async
+ System.out.println("sending to first Bank...");
+ sendToBank(bank1Invoker, customer, "b1");
+
+ System.out.println("sending to second Bank...");
+ sendToBank(bank2Invoker, customer, "b2");
+ } else {
+ //step 3b - notify customer that credit is not acceptable
+ String invalidCredit="<insufficientCredit><customerUID>"+customer.ssn+"</customerUID>" +
+ "<ref>0</ref>"+
+ "<customerEmail>"+customer.email+"</customerEmail>" +
+ "<errorCode>3</errorCode></insufficientCredit>";
+
+ Message notifyMessage = MessageFactory.getInstance().getMessage(MessageType.JBOSS_XML);
+ notifyMessage.getBody().add(invalidCredit);
+
+ try {
+ notifierInvoker.deliverAsync(notifyMessage);
+ } catch (Exception e) {
+ logger.error(e);
+ }
+ }
+ }
+
+ private Customer getCustomer(WebCustomer wCustomer) {
+ Customer customer = new Customer();
+ customer.ssn = wCustomer.getSsn();
+ customer.name = wCustomer.getName();
+ customer.address = wCustomer.getAddress();
+ customer.email = wCustomer.getEmail();
+ customer.salary = wCustomer.getSalary();
+ customer.loanAmount = wCustomer.getLoanAmount();
+ customer.loanDuration = wCustomer.getLoanDuration();
+ customer.creditScore = 0;
+
+ return customer;
+ }
+
+
+ private void sendToBank(ServiceInvoker invoker, Customer customer, String ref) {
+ Message message = MessageFactory.getInstance().getMessage(MessageType.JBOSS_XML);
+
+ try {
+ //create a Quote Request that the bank expects
+ QuoteRequest quote = new QuoteRequest();
+ quote.ssn = customer.ssn;
+ quote.ref = ref;
+ quote.amount = (int) customer.loanAmount;
+ quote.creditScore = customer.creditScore;
+ quote.creditHistoryLen = 0; //not sure who added this one
+ quote.term = customer.loanDuration;
+ quote.customerEmail = customer.email;
+
+ message.getBody().add(quote.getXML());
+ invoker.deliverAsync(message);
+
+ } catch (Exception e) {
+ logger.error(e);
+ }
+ }
+
+ private int sendToCreditAgency(Customer customer) {
+ Message message = MessageFactory.getInstance().getMessage(MessageType.JBOSS_XML);
+ Message replyMessage;
+ int score = 0;
+
+ try {
+ logger.debug("sending to credit agency");
+
+ //set the customer details inside the message
+ message.getBody().add(customer.getXML());
+
+ logger.info("Sending request to creditAgency: " + message.getBody().get());
+
+ replyMessage = serviceInvoker.deliverSync(message, 5000);
+ if (replyMessage != null) {
+ logger.info("received reply from creditAgency action: " + replyMessage.getBody().get());
+
+ String xml =(String)replyMessage.getBody().get();
+
+ DocumentBuilderFactory fact=DocumentBuilderFactory.newInstance();
+ fact.setNamespaceAware(true);
+
+ java.io.InputStream xmlstr=
+ new java.io.ByteArrayInputStream(xml.getBytes());
+
+ DocumentBuilder builder=fact.newDocumentBuilder();
+ org.w3c.dom.Document doc=builder.parse(xmlstr);
+
+ org.w3c.dom.Element tree = doc.getDocumentElement();
+
+ score = Integer.parseInt(tree.getAttribute("score"));
+
+ logger.debug("Score from XML is: "+score);
+ } else {
+ logger.debug("reply not received from credit agency - setting a value of 5");
+ score = 5;
+ }
+ } catch (Exception ex2) {
+ logger.error("exception occured: " + ex2);
+ }
+
+ return score;
+ }
+
+
+}
Added: cdl/trunk/samples/jbossesb/trailblazer/client/java-files/SuccessfulLoanBroker.java
===================================================================
--- cdl/trunk/samples/jbossesb/trailblazer/client/java-files/SuccessfulLoanBroker.java (rev 0)
+++ cdl/trunk/samples/jbossesb/trailblazer/client/java-files/SuccessfulLoanBroker.java 2008-11-12 18:16:01 UTC (rev 438)
@@ -0,0 +1,228 @@
+package org.jboss.soa.esb.samples.trailblazer.loanbroker;
+
+/*
+ * JBoss, Home of Professional Open Source
+ * Copyright 2006, JBoss Inc., and others contributors as indicated
+ * by the @authors tag. All rights reserved.
+ * See the copyright.txt in the distribution for a
+ * full listing of individual contributors.
+ * This copyrighted material is made available to anyone wishing to use,
+ * modify, copy, or redistribute it subject to the terms and conditions
+ * of the GNU Lesser General Public License, v. 2.1.
+ * This program is distributed in the hope that it will be useful, but WITHOUT A
+ * WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
+ * PARTICULAR PURPOSE. See the GNU Lesser General Public License for more details.
+ * You should have received a copy of the GNU Lesser General Public License,
+ * v.2.1 along with this distribution; if not, write to the Free Software
+ * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston,
+ * MA 02110-1301, USA.
+ *
+ * (C) 2005-2006,
+ * @author mark.little(a)jboss.com
+ */
+
+
+import java.util.Properties;
+
+import javax.xml.parsers.DocumentBuilder;
+import javax.xml.parsers.DocumentBuilderFactory;
+
+import org.apache.log4j.Logger;
+import org.jboss.soa.esb.message.Message;
+import org.jboss.soa.esb.message.format.MessageFactory;
+import org.jboss.soa.esb.message.format.MessageType;
+import org.jboss.soa.esb.samples.trailblazer.util.TrailblazerProperties;
+import org.jboss.soa.esb.samples.trailblazer.web.WebCustomer;
+import org.jboss.soa.esb.client.ServiceInvoker;
+
+/*
+ * LoanBroker is responsible for getting customer requests for loans onto the JBoss ESB
+ * Requests will come from a JSR-181 pojo web service (@org.jboss.soa.esb.samples.trailblazer.web.LoanBrokerWS)
+ * The sequence of events from the LoanBroker are:
+ * 1 - Prepare a request for the CreditAgency (transform the customer into a XML representation)
+ * 2 - Send to CreditAgency and get response (lookup the customer using the SSN (see @CustomerMasterFile)
+ * 3 - Prepare a LoanRequest for each of the banks in their unique data structures and send
+ * 4 - Collect the response(s) from the bank(s) and send an email to the customer with the quote offers
+ */
+
+public class LoanBroker {
+
+ private static Logger logger = Logger.getLogger(LoanBroker.class);
+ //used to locate our entries in the trailblazer-properties
+ private final String CREDIT_AGENCY_SERVICE_NAME = "creditagency.service.epr.name";
+ private final String CREDIT_AGENCY_SERVICE_CAT = "creditagency.service.category";
+ private final String BANK1_SERVICE_NAME = "bank1.service.epr.name";
+ private final String BANK1_SERVICE_CAT = "bank1.service.category";
+ private final String BANK2_SERVICE_NAME = "bank2.service.epr.name";
+ private final String BANK2_SERVICE_CAT = "bank2.service.category";
+ private final String NOTIFIER_SERVICE_NAME = "notifier.service.epr.name";
+ private final String NOTIFIER_SERVICE_CAT = "notifier.service.category";
+ private Properties properties = new TrailblazerProperties();
+ private ServiceInvoker serviceInvoker;
+ private ServiceInvoker bank1Invoker;
+ private ServiceInvoker bank2Invoker;
+ private ServiceInvoker notifierInvoker;
+
+ public LoanBroker() {
+ String serviceCategoryName = properties.getProperty(CREDIT_AGENCY_SERVICE_CAT);
+ String serviceName = properties.getProperty(CREDIT_AGENCY_SERVICE_NAME);
+ String bank1ServiceCategoryName = properties.getProperty(BANK1_SERVICE_CAT);
+ String bank1ServiceName = properties.getProperty(BANK1_SERVICE_NAME);
+ String bank2ServiceCategoryName = properties.getProperty(BANK2_SERVICE_CAT);
+ String bank2ServiceName = properties.getProperty(BANK2_SERVICE_NAME);
+ String notifierServiceCategoryName = properties.getProperty(NOTIFIER_SERVICE_CAT);
+ String notifierServiceName = properties.getProperty(NOTIFIER_SERVICE_NAME);
+
+ try {
+ serviceInvoker = new ServiceInvoker(serviceCategoryName, serviceName);
+ } catch (Exception e) {
+ throw new RuntimeException("Failed to create ServiceInvoker for '" + serviceCategoryName + ":" + serviceName + "'.", e);
+ }
+
+ try {
+ bank1Invoker = new ServiceInvoker(bank1ServiceCategoryName, bank1ServiceName);
+ } catch (Exception e) {
+ throw new RuntimeException("Failed to create ServiceInvoker for '" + bank1ServiceCategoryName + ":" + bank1ServiceName + "'.", e);
+ }
+
+ try {
+ bank2Invoker = new ServiceInvoker(bank2ServiceCategoryName, bank2ServiceName);
+ } catch (Exception e) {
+ throw new RuntimeException("Failed to create ServiceInvoker for '" + bank2ServiceCategoryName + ":" + bank2ServiceName + "'.", e);
+ }
+
+ try {
+ notifierInvoker = new ServiceInvoker(notifierServiceCategoryName, notifierServiceName);
+ } catch (Exception e) {
+ throw new RuntimeException("Failed to create ServiceInvoker for '" + notifierServiceCategoryName + ":" + notifierServiceName + "'.", e);
+ }
+ }
+
+ public void processLoanRequest(WebCustomer wCustomer) {
+
+ Customer customer = getCustomer(wCustomer);
+ //keep the customer in a file someplace for later use, if needed
+ CustomerMasterFile.addCustomer(String.valueOf(customer.ssn), customer);
+
+ //step 1 - send to credit agency for credit score if available
+
+ int score=sendToCreditAgency(customer);
+
+ //added a pause here to give the creditagency some time to reply
+ try {
+ Thread.sleep(5000);
+ } catch (InterruptedException e) {
+ // TODO Auto-generated catch block
+ e.printStackTrace();
+ }
+
+ //step 2 - check if score is acceptable
+
+ if (score >= 4) {
+ //step 3a - send to Bank - async
+ System.out.println("sending to first Bank...");
+ sendToBank(bank1Invoker, customer, "b1");
+
+ System.out.println("sending to second Bank...");
+ sendToBank(bank2Invoker, customer, "b2");
+ } else {
+ //step 3b - notify customer that credit is not acceptable
+ String invalidCredit="<insufficientCredit><customerUID>"+customer.ssn+"</customerUID>" +
+ "<ref>0</ref>"+
+ "<customerEmail>"+customer.email+"</customerEmail>" +
+ "<errorCode>3</errorCode></insufficientCredit>";
+
+ Message notifyMessage = MessageFactory.getInstance().getMessage(MessageType.JBOSS_XML);
+ notifyMessage.getBody().add(invalidCredit);
+
+ try {
+ notifierInvoker.deliverAsync(notifyMessage);
+ } catch (Exception e) {
+ logger.error(e);
+ }
+ }
+ }
+
+ private Customer getCustomer(WebCustomer wCustomer) {
+ Customer customer = new Customer();
+ customer.ssn = wCustomer.getSsn();
+ customer.name = wCustomer.getName();
+ customer.address = wCustomer.getAddress();
+ customer.email = wCustomer.getEmail();
+ customer.salary = wCustomer.getSalary();
+ customer.loanAmount = wCustomer.getLoanAmount();
+ customer.loanDuration = wCustomer.getLoanDuration();
+ customer.creditScore = 0;
+
+ return customer;
+ }
+
+
+ private void sendToBank(ServiceInvoker invoker, Customer customer, String ref) {
+ Message message = MessageFactory.getInstance().getMessage(MessageType.JBOSS_XML);
+
+ try {
+ //create a Quote Request that the bank expects
+ QuoteRequest quote = new QuoteRequest();
+ quote.ssn = customer.ssn;
+ quote.ref = ref;
+ quote.amount = (int) customer.loanAmount;
+ quote.creditScore = customer.creditScore;
+ quote.creditHistoryLen = 0; //not sure who added this one
+ quote.term = customer.loanDuration;
+ quote.customerEmail = customer.email;
+
+ message.getBody().add(quote.getXML());
+ invoker.deliverAsync(message);
+
+ } catch (Exception e) {
+ logger.error(e);
+ }
+ }
+
+ private int sendToCreditAgency(Customer customer) {
+ Message message = MessageFactory.getInstance().getMessage(MessageType.JBOSS_XML);
+ Message replyMessage;
+ int score = 0;
+
+ try {
+ logger.debug("sending to credit agency");
+
+ //set the customer details inside the message
+ message.getBody().add(customer.getXML());
+
+ logger.info("Sending request to creditAgency: " + message.getBody().get());
+
+ replyMessage = serviceInvoker.deliverSync(message, 5000);
+ if (replyMessage != null) {
+ logger.info("received reply from creditAgency action: " + replyMessage.getBody().get());
+
+ String xml =(String)replyMessage.getBody().get();
+
+ DocumentBuilderFactory fact=DocumentBuilderFactory.newInstance();
+ fact.setNamespaceAware(true);
+
+ java.io.InputStream xmlstr=
+ new java.io.ByteArrayInputStream(xml.getBytes());
+
+ DocumentBuilder builder=fact.newDocumentBuilder();
+ org.w3c.dom.Document doc=builder.parse(xmlstr);
+
+ org.w3c.dom.Element tree = doc.getDocumentElement();
+
+ score = Integer.parseInt(tree.getAttribute("score"));
+
+ logger.debug("Score from XML is: "+score);
+ } else {
+ logger.debug("reply not received from credit agency - setting a value of 5");
+ score = 5;
+ }
+ } catch (Exception ex2) {
+ logger.error("exception occured: " + ex2);
+ }
+
+ return score;
+ }
+
+
+}
15 years, 5 months