[overlord-commits] Overlord SVN: r678 - in sam/trunk: modules/core and 12 other directories.

overlord-commits at lists.jboss.org overlord-commits at lists.jboss.org
Thu Jul 23 08:39:02 EDT 2009


Author: heiko.braun at jboss.com
Date: 2009-07-23 08:39:01 -0400 (Thu, 23 Jul 2009)
New Revision: 678

Added:
   sam/trunk/modules/examples/twitter/src/main/java/org/
   sam/trunk/modules/examples/twitter/src/main/java/org/jboss/
   sam/trunk/modules/examples/twitter/src/main/java/org/jboss/sam/
   sam/trunk/modules/examples/twitter/src/main/java/org/jboss/sam/examples/
   sam/trunk/modules/examples/twitter/src/main/java/org/jboss/sam/examples/twitter/
   sam/trunk/modules/examples/twitter/src/main/java/org/jboss/sam/examples/twitter/IO.java
   sam/trunk/modules/examples/twitter/src/main/java/org/jboss/sam/examples/twitter/Main.java
   sam/trunk/modules/examples/twitter/src/main/java/org/jboss/sam/examples/twitter/TitterSearch.java
   sam/trunk/modules/examples/twitter/src/main/java/org/jboss/sam/examples/twitter/TweetLogger.java
   sam/trunk/modules/examples/twitter/src/main/java/twitter4j/
   sam/trunk/modules/examples/twitter/src/main/java/twitter4j/QueryResultAdapter.java
   sam/trunk/modules/examples/twitter/src/main/java/twitter4j/http/
   sam/trunk/modules/examples/twitter/src/main/java/twitter4j/http/ResponseAdapter.java
   sam/trunk/modules/examples/twitter/src/main/resources/log-tweets.drl
   sam/trunk/modules/examples/twitter/src/main/resources/sam-cfg.xml
   sam/trunk/modules/examples/twitter/src/main/resources/search-jboss.json
Modified:
   sam/trunk/SAMM.ipr
   sam/trunk/SAMM.iws
   sam/trunk/modules/core/core.iml
   sam/trunk/modules/core/src/main/java/org/jboss/sam/internal/drools/DroolsEventProcessorImpl.java
   sam/trunk/modules/examples/twitter/pom.xml
   sam/trunk/modules/examples/twitter/twitter.iml
   sam/trunk/modules/sim/sim.iml
   sam/trunk/toplevel.iml
Log:
First cut of a twitter example

Modified: sam/trunk/SAMM.ipr
===================================================================
--- sam/trunk/SAMM.ipr	2009-07-23 10:28:20 UTC (rev 677)
+++ sam/trunk/SAMM.ipr	2009-07-23 12:39:01 UTC (rev 678)
@@ -164,11 +164,27 @@
               <entry>
                 <value>
                   <collection type="java.util.TreeSet">
-                    <entry type="java.lang.String" value="toplevel" />
+                    <entry type="java.lang.String" value="core" />
                   </collection>
                 </value>
                 <key type="java.lang.String" value="sim" />
               </entry>
+              <entry>
+                <value>
+                  <collection type="java.util.TreeSet">
+                    <entry type="java.lang.String" value="core" />
+                  </collection>
+                </value>
+                <key type="java.lang.String" value="toplevel" />
+              </entry>
+              <entry>
+                <value>
+                  <collection type="java.util.TreeSet">
+                    <entry type="java.lang.String" value="core" />
+                  </collection>
+                </value>
+                <key type="java.lang.String" value="twitter" />
+              </entry>
             </map>
           </value>
         </option>

Modified: sam/trunk/SAMM.iws
===================================================================
--- sam/trunk/SAMM.iws	2009-07-23 10:28:20 UTC (rev 677)
+++ sam/trunk/SAMM.iws	2009-07-23 12:39:01 UTC (rev 678)
@@ -17,9 +17,30 @@
   </component>
   <component name="ChangeListManager">
     <list default="true" name="Default" comment="">
+      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/SAMM.ipr" afterPath="$PROJECT_DIR$/SAMM.ipr" />
+      <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/modules/examples/twitter/src/main/java/twitter4j" />
+      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/modules/examples/twitter/pom.xml" afterPath="$PROJECT_DIR$/modules/examples/twitter/pom.xml" />
+      <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/modules/examples/twitter/src/main/java/twitter4j/http" />
+      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/modules/core/src/main/java/org/jboss/sam/internal/drools/DroolsEventProcessorImpl.java" afterPath="$PROJECT_DIR$/modules/core/src/main/java/org/jboss/sam/internal/drools/DroolsEventProcessorImpl.java" />
+      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/modules/sim/sim.iml" afterPath="$PROJECT_DIR$/modules/sim/sim.iml" />
+      <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/modules/examples/twitter/src/main/resources/sam-cfg.xml" />
+      <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/modules/examples/twitter/src/main/resources/log-tweets.drl" />
+      <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/modules/examples/twitter/src/main/java/org/jboss/sam/examples" />
+      <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/modules/examples/twitter/src/main/java/org/jboss/sam" />
+      <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/modules/examples/twitter/src/main/java/org/jboss/sam/examples/twitter" />
+      <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/modules/examples/twitter/src/main/java/org" />
+      <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/modules/examples/twitter/src/main/java/org/jboss/sam/examples/twitter/IO.java" />
       <change type="MODIFICATION" beforePath="$PROJECT_DIR$/SAMM.iws" afterPath="$PROJECT_DIR$/SAMM.iws" />
-      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/SAMM.ipr" afterPath="$PROJECT_DIR$/SAMM.ipr" />
-      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/pom.xml" afterPath="$PROJECT_DIR$/pom.xml" />
+      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/modules/examples/twitter/twitter.iml" afterPath="$PROJECT_DIR$/modules/examples/twitter/twitter.iml" />
+      <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/modules/examples/twitter/src/main/java/org/jboss/sam/examples/twitter/TweetLogger.java" />
+      <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/modules/examples/twitter/src/main/java/twitter4j/QueryResultAdapter.java" />
+      <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/modules/examples/twitter/src/main/java/org/jboss/sam/examples/twitter/Main.java" />
+      <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/modules/examples/twitter/src/main/resources/search-jboss.json" />
+      <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/modules/examples/twitter/src/main/java/org/jboss/sam/examples/twitter/TitterSearch.java" />
+      <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/modules/examples/twitter/src/main/java/org/jboss" />
+      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/toplevel.iml" afterPath="$PROJECT_DIR$/toplevel.iml" />
+      <change type="MODIFICATION" beforePath="$PROJECT_DIR$/modules/core/core.iml" afterPath="$PROJECT_DIR$/modules/core/core.iml" />
+      <change type="NEW" beforePath="" afterPath="$PROJECT_DIR$/modules/examples/twitter/src/main/java/twitter4j/http/ResponseAdapter.java" />
     </list>
   </component>
   <component name="ChangeListSynchronizer" />
@@ -189,19 +210,53 @@
   </component>
   <component name="FileEditorManager">
     <leaf>
-      <file leaf-file-name="pom.xml" pinned="false" current="true" current-in-tab="true">
-        <entry file="file://$PROJECT_DIR$/modules/examples/twitter/pom.xml">
+      <file leaf-file-name="Main.java" pinned="false" current="false" current-in-tab="false">
+        <entry file="file://$PROJECT_DIR$/modules/examples/twitter/src/main/java/org/jboss/sam/examples/twitter/Main.java">
           <provider selected="true" editor-type-id="text-editor">
-            <state line="31" column="21" selection-start="1054" selection-end="1054" vertical-scroll-proportion="0.58467245">
+            <state line="40" column="10" selection-start="1472" selection-end="1472" vertical-scroll-proportion="-0.18665019">
+              <folding>
+                <element signature="imports" expanded="true" />
+                <element signature="class#2398:2818" expanded="false" />
+              </folding>
+            </state>
+          </provider>
+        </entry>
+      </file>
+      <file leaf-file-name="TitterSearch.java" pinned="false" current="true" current-in-tab="true">
+        <entry file="file://$PROJECT_DIR$/modules/examples/twitter/src/main/java/org/jboss/sam/examples/twitter/TitterSearch.java">
+          <provider selected="true" editor-type-id="text-editor">
+            <state line="71" column="65" selection-start="2111" selection-end="2111" vertical-scroll-proportion="0.27184466">
+              <folding>
+                <element signature="imports" expanded="true" />
+              </folding>
+            </state>
+          </provider>
+        </entry>
+      </file>
+      <file leaf-file-name="TweetLogger.java" pinned="false" current="false" current-in-tab="false">
+        <entry file="file://$PROJECT_DIR$/modules/examples/twitter/src/main/java/org/jboss/sam/examples/twitter/TweetLogger.java">
+          <provider selected="true" editor-type-id="text-editor">
+            <state line="61" column="49" selection-start="1895" selection-end="1895" vertical-scroll-proportion="0.75728154">
+              <folding>
+                <element signature="imports" expanded="true" />
+              </folding>
+            </state>
+          </provider>
+        </entry>
+      </file>
+      <file leaf-file-name="IO.java" pinned="false" current="false" current-in-tab="false">
+        <entry file="file://$PROJECT_DIR$/modules/examples/twitter/src/main/java/org/jboss/sam/examples/twitter/IO.java">
+          <provider selected="true" editor-type-id="text-editor">
+            <state line="61" column="11" selection-start="1945" selection-end="1945" vertical-scroll-proportion="0.7378641">
               <folding />
             </state>
           </provider>
         </entry>
       </file>
-      <file leaf-file-name="pom.xml" pinned="false" current="false" current-in-tab="false">
-        <entry file="file://$PROJECT_DIR$/pom.xml">
+      <file leaf-file-name="log-tweets.drl" pinned="false" current="false" current-in-tab="false">
+        <entry file="file://$PROJECT_DIR$/modules/examples/twitter/src/main/resources/log-tweets.drl">
           <provider selected="true" editor-type-id="text-editor">
-            <state line="14" column="28" selection-start="530" selection-end="530" vertical-scroll-proportion="0.27688503">
+            <state line="18" column="48" selection-start="368" selection-end="368" vertical-scroll-proportion="0.34951457">
               <folding />
             </state>
           </provider>
@@ -337,6 +392,10 @@
           <option name="myItemId" value="SAMM.ipr" />
           <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
         </PATH_ELEMENT>
+        <PATH_ELEMENT>
+          <option name="myItemId" value="twitter" />
+          <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewModuleNode" />
+        </PATH_ELEMENT>
       </PATH>
       <PATH>
         <PATH_ELEMENT>
@@ -344,9 +403,13 @@
           <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
         </PATH_ELEMENT>
         <PATH_ELEMENT>
-          <option name="myItemId" value="toplevel" />
+          <option name="myItemId" value="twitter" />
           <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewModuleNode" />
         </PATH_ELEMENT>
+        <PATH_ELEMENT>
+          <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/modules/examples/twitter" />
+          <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+        </PATH_ELEMENT>
       </PATH>
       <PATH>
         <PATH_ELEMENT>
@@ -354,13 +417,25 @@
           <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
         </PATH_ELEMENT>
         <PATH_ELEMENT>
-          <option name="myItemId" value="toplevel" />
+          <option name="myItemId" value="twitter" />
           <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewModuleNode" />
         </PATH_ELEMENT>
         <PATH_ELEMENT>
-          <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$" />
+          <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/modules/examples/twitter" />
           <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
         </PATH_ELEMENT>
+        <PATH_ELEMENT>
+          <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/modules/examples/twitter/src" />
+          <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+        </PATH_ELEMENT>
+        <PATH_ELEMENT>
+          <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/modules/examples/twitter/src/main" />
+          <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+        </PATH_ELEMENT>
+        <PATH_ELEMENT>
+          <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/modules/examples/twitter/src/main/resources" />
+          <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+        </PATH_ELEMENT>
       </PATH>
       <PATH>
         <PATH_ELEMENT>
@@ -368,21 +443,25 @@
           <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
         </PATH_ELEMENT>
         <PATH_ELEMENT>
-          <option name="myItemId" value="toplevel" />
+          <option name="myItemId" value="twitter" />
           <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewModuleNode" />
         </PATH_ELEMENT>
         <PATH_ELEMENT>
-          <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$" />
+          <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/modules/examples/twitter" />
           <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
         </PATH_ELEMENT>
         <PATH_ELEMENT>
-          <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/modules" />
+          <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/modules/examples/twitter/src" />
           <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
         </PATH_ELEMENT>
         <PATH_ELEMENT>
-          <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/modules/examples" />
+          <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/modules/examples/twitter/src/main" />
           <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
         </PATH_ELEMENT>
+        <PATH_ELEMENT>
+          <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/modules/examples/twitter/src/main/java" />
+          <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+        </PATH_ELEMENT>
       </PATH>
       <PATH>
         <PATH_ELEMENT>
@@ -390,6 +469,58 @@
           <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
         </PATH_ELEMENT>
         <PATH_ELEMENT>
+          <option name="myItemId" value="twitter" />
+          <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewModuleNode" />
+        </PATH_ELEMENT>
+        <PATH_ELEMENT>
+          <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/modules/examples/twitter" />
+          <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+        </PATH_ELEMENT>
+        <PATH_ELEMENT>
+          <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/modules/examples/twitter/src" />
+          <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+        </PATH_ELEMENT>
+        <PATH_ELEMENT>
+          <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/modules/examples/twitter/src/main" />
+          <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+        </PATH_ELEMENT>
+        <PATH_ELEMENT>
+          <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/modules/examples/twitter/src/main/java" />
+          <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+        </PATH_ELEMENT>
+        <PATH_ELEMENT>
+          <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/modules/examples/twitter/src/main/java/org" />
+          <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+        </PATH_ELEMENT>
+        <PATH_ELEMENT>
+          <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/modules/examples/twitter/src/main/java/org/jboss" />
+          <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+        </PATH_ELEMENT>
+        <PATH_ELEMENT>
+          <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/modules/examples/twitter/src/main/java/org/jboss/sam" />
+          <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+        </PATH_ELEMENT>
+        <PATH_ELEMENT>
+          <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/modules/examples/twitter/src/main/java/org/jboss/sam/examples" />
+          <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+        </PATH_ELEMENT>
+        <PATH_ELEMENT>
+          <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/modules/examples/twitter/src/main/java/org/jboss/sam/examples/twitter" />
+          <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+        </PATH_ELEMENT>
+      </PATH>
+      <PATH>
+        <PATH_ELEMENT>
+          <option name="myItemId" value="SAMM.ipr" />
+          <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
+        </PATH_ELEMENT>
+      </PATH>
+      <PATH>
+        <PATH_ELEMENT>
+          <option name="myItemId" value="SAMM.ipr" />
+          <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
+        </PATH_ELEMENT>
+        <PATH_ELEMENT>
           <option name="myItemId" value="core" />
           <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewModuleNode" />
         </PATH_ELEMENT>
@@ -425,6 +556,18 @@
           <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/modules/core/src" />
           <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
         </PATH_ELEMENT>
+        <PATH_ELEMENT>
+          <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/modules/core/src/test" />
+          <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+        </PATH_ELEMENT>
+        <PATH_ELEMENT>
+          <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/modules/core/src/test/resources" />
+          <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+        </PATH_ELEMENT>
+        <PATH_ELEMENT>
+          <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/modules/core/src/test/resources/drools" />
+          <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+        </PATH_ELEMENT>
       </PATH>
       <PATH>
         <PATH_ELEMENT>
@@ -444,6 +587,54 @@
           <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
         </PATH_ELEMENT>
         <PATH_ELEMENT>
+          <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/modules/core/src/test" />
+          <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+        </PATH_ELEMENT>
+        <PATH_ELEMENT>
+          <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/modules/core/src/test/resources" />
+          <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+        </PATH_ELEMENT>
+      </PATH>
+      <PATH>
+        <PATH_ELEMENT>
+          <option name="myItemId" value="SAMM.ipr" />
+          <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
+        </PATH_ELEMENT>
+        <PATH_ELEMENT>
+          <option name="myItemId" value="core" />
+          <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewModuleNode" />
+        </PATH_ELEMENT>
+        <PATH_ELEMENT>
+          <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/modules/core" />
+          <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+        </PATH_ELEMENT>
+        <PATH_ELEMENT>
+          <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/modules/core/src" />
+          <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+        </PATH_ELEMENT>
+        <PATH_ELEMENT>
+          <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/modules/core/src/test" />
+          <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+        </PATH_ELEMENT>
+      </PATH>
+      <PATH>
+        <PATH_ELEMENT>
+          <option name="myItemId" value="SAMM.ipr" />
+          <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewProjectNode" />
+        </PATH_ELEMENT>
+        <PATH_ELEMENT>
+          <option name="myItemId" value="core" />
+          <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.ProjectViewModuleNode" />
+        </PATH_ELEMENT>
+        <PATH_ELEMENT>
+          <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/modules/core" />
+          <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+        </PATH_ELEMENT>
+        <PATH_ELEMENT>
+          <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/modules/core/src" />
+          <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
+        </PATH_ELEMENT>
+        <PATH_ELEMENT>
           <option name="myItemId" value="PsiDirectory:$PROJECT_DIR$/modules/core/src/main" />
           <option name="myItemType" value="com.intellij.ide.projectView.impl.nodes.PsiDirectoryNode" />
         </PATH_ELEMENT>
@@ -482,11 +673,28 @@
   </component>
   <component name="RecentsManager">
     <key name="MoveClassesOrPackagesDialog.RECENTS_KEY">
+      <recent name="twitter4j.http" />
+      <recent name="twitter" />
       <recent name="org.jboss.sam.config.internal" />
     </key>
   </component>
   <component name="RestoreUpdateTree" />
-  <component name="RunManager" selected="Remote.client">
+  <component name="RunManager" selected="Application.Main">
+    <tempConfiguration default="false" name="Main" type="Application" factoryName="Application" enabled="false" merge="false">
+      <option name="MAIN_CLASS_NAME" value="org.jboss.sam.examples.twitter.Main" />
+      <option name="VM_PARAMETERS" />
+      <option name="PROGRAM_PARAMETERS" />
+      <option name="WORKING_DIRECTORY" value="$PROJECT_DIR$" />
+      <option name="ALTERNATIVE_JRE_PATH_ENABLED" value="false" />
+      <option name="ALTERNATIVE_JRE_PATH" />
+      <option name="ENABLE_SWING_INSPECTOR" value="false" />
+      <module name="twitter" />
+      <RunnerSettings RunnerId="Run" />
+      <ConfigurationWrapper RunnerId="Run" />
+      <method>
+        <option name="Make" value="true" />
+      </method>
+    </tempConfiguration>
     <configuration default="true" type="Application" factoryName="Application" enabled="false" merge="false">
       <option name="MAIN_CLASS_NAME" />
       <option name="VM_PARAMETERS" />
@@ -496,6 +704,9 @@
       <option name="ALTERNATIVE_JRE_PATH" />
       <option name="ENABLE_SWING_INSPECTOR" value="false" />
       <module name="" />
+      <method>
+        <option name="Make" value="true" />
+      </method>
     </configuration>
     <configuration default="true" type="Remote" factoryName="Remote">
       <option name="USE_SOCKET_TRANSPORT" value="true" />
@@ -639,20 +850,20 @@
       <window_info id="IDEtalk" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="3" />
       <window_info id="TODO" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="7" />
       <window_info id="Project" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="true" weight="0.31937602" order="0" />
-      <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32718894" order="1" />
+      <window_info id="Find" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32608697" order="1" />
       <window_info id="Structure" active="false" anchor="left" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.2454844" order="1" />
-      <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="9" />
+      <window_info id="Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32951945" order="9" />
       <window_info id="Inspection" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" order="6" />
       <window_info id="Module Dependencies" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="6" />
       <window_info id="Dependency Viewer" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="10" />
       <window_info id="Palette" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="4" />
       <window_info id="Ant Build" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.25" order="1" />
       <window_info id="Changes" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="11" />
-      <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="2" />
+      <window_info id="Run" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.32951945" order="2" />
       <window_info id="Maven" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="12" />
       <window_info id="Hierarchy" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.24862313" order="2" />
       <window_info id="File View" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="5" />
-      <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.39746544" order="4" />
+      <window_info id="Debug" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.39702517" order="4" />
       <window_info id="Commander" active="false" anchor="right" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.4" order="0" />
       <window_info id="IDEtalk Messages" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="13" />
       <window_info id="Version Control" active="false" anchor="bottom" auto_hide="false" internal_type="DOCKED" type="DOCKED" visible="false" weight="0.33" order="8" />
@@ -734,7 +945,7 @@
   <component name="com.intellij.ide.util.scopeChooser.ScopeChooserConfigurable" proportions="" version="1">
     <option name="myLastEditedConfigurable" />
   </component>
-  <component name="com.intellij.openapi.roots.ui.configuration.projectRoot.ProjectRootMasterDetailsConfigurable" proportions="0.52098763" version="1">
+  <component name="com.intellij.openapi.roots.ui.configuration.projectRoot.ProjectRootMasterDetailsConfigurable" proportions="0.52098763,0.5" version="1">
     <option name="myPlainMode" value="false" />
     <option name="myLastEditedConfigurable" value="twitter" />
   </component>
@@ -742,108 +953,115 @@
     <option name="myLastEditedConfigurable" />
   </component>
   <component name="editorHistoryManager">
-    <entry file="file://$PROJECT_DIR$/modules/sim/pom.xml">
+    <entry file="file://$PROJECT_DIR$/modules/core/src/test/resources/drools/sam-cfg.xml">
       <provider selected="true" editor-type-id="text-editor">
-        <state line="62" column="82" selection-start="1956" selection-end="1975" vertical-scroll-proportion="0.20918368">
+        <state line="0" column="0" selection-start="0" selection-end="389" vertical-scroll-proportion="0.0">
           <folding />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/modules/sim/src/test/resources/simulation/test.drl">
+    <entry file="jar:///Users/hbraun/.m2/repository/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar!/javax/xml/bind/helpers/AbstractUnmarshallerImpl.class">
       <provider selected="true" editor-type-id="text-editor">
-        <state line="17" column="0" selection-start="36" selection-end="381" vertical-scroll-proportion="0.4338118">
+        <state line="77" column="0" selection-start="4812" selection-end="4812" vertical-scroll-proportion="0.81322956">
           <folding />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/modules/sim/src/main/java/org/jboss/sam/simulation/SimulationContext.java">
+    <entry file="file://$PROJECT_DIR$/modules/core/src/main/java/org/jboss/sam/StreamInput.java">
       <provider selected="true" editor-type-id="text-editor">
-        <state line="88" column="3" selection-start="2703" selection-end="2703" vertical-scroll-proportion="0.73967457">
+        <state line="49" column="2" selection-start="1666" selection-end="1738" vertical-scroll-proportion="0.5631068">
           <folding />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/modules/core/src/test/resources/database/sql-join.drl">
+    <entry file="file://$PROJECT_DIR$/modules/core/src/main/java/org/jboss/sam/EventProcessor.java">
       <provider selected="true" editor-type-id="text-editor">
-        <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
+        <state line="38" column="7" selection-start="1562" selection-end="1562" vertical-scroll-proportion="0.31644005">
           <folding />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/modules/core/src/test/resources/database/sam-cfg.xml">
+    <entry file="file://$PROJECT_DIR$/modules/core/src/test/resources/drools/stream-input.drl">
       <provider selected="true" editor-type-id="text-editor">
-        <state line="7" column="27" selection-start="236" selection-end="348" vertical-scroll-proportion="0.14285715">
+        <state line="0" column="0" selection-start="0" selection-end="397" vertical-scroll-proportion="0.0">
           <folding />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/modules/core/src/test/resources/drools/stream-forward.drl">
+    <entry file="file://$PROJECT_DIR$/modules/examples/twitter/src/main/resources/sam-cfg.xml">
       <provider selected="true" editor-type-id="text-editor">
-        <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
+        <state line="12" column="22" selection-start="389" selection-end="389" vertical-scroll-proportion="0.23300971">
           <folding />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/modules/core/src/test/resources/drools/stream-input.drl">
+    <entry file="file://$PROJECT_DIR$/modules/core/src/test/java/org/jboss/test/sam/SamTestSetup.java">
       <provider selected="true" editor-type-id="text-editor">
-        <state line="0" column="0" selection-start="0" selection-end="0" vertical-scroll-proportion="0.0">
+        <state line="67" column="6" selection-start="2369" selection-end="2604" vertical-scroll-proportion="0.40667492">
           <folding />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/modules/core/src/main/java/org/jboss/sam/internal/drools/DroolsEventProcessorImpl.java">
+    <entry file="file://$PROJECT_DIR$/modules/core/src/main/java/org/jboss/sam/config/ConfigFactory.java">
       <provider selected="true" editor-type-id="text-editor">
-        <state line="67" column="4" selection-start="2809" selection-end="2809" vertical-scroll-proportion="0.5510204">
+        <state line="88" column="26" selection-start="2619" selection-end="2619" vertical-scroll-proportion="0.86402965">
           <folding />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/modules/sim/src/test/resources/samples/aggregation/aggregation-sample.drl">
+    <entry file="file://$PROJECT_DIR$/modules/core/src/main/java/org/jboss/sam/internal/drools/DroolsEventProcessorImpl.java">
       <provider selected="true" editor-type-id="text-editor">
-        <state line="26" column="38" selection-start="545" selection-end="545" vertical-scroll-proportion="0.51421505">
+        <state line="48" column="13" selection-start="1949" selection-end="1949" vertical-scroll-proportion="-0.43510506">
           <folding />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/modules/sim/src/test/resources/simulation/sam-cfg.xml">
+    <entry file="file://$PROJECT_DIR$/modules/core/src/main/java/org/jboss/sam/StreamInputCallback.java">
       <provider selected="true" editor-type-id="text-editor">
-        <state line="18" column="0" selection-start="423" selection-end="423" vertical-scroll-proportion="0.34951457">
+        <state line="28" column="17" selection-start="1217" selection-end="1217" vertical-scroll-proportion="0.1553398">
           <folding />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/modules/sim/src/test/java/org/jboss/test/sam/samples/aggregation/SalesEventMessage.java">
+    <entry file="file://$PROJECT_DIR$/modules/examples/twitter/src/main/resources/log-tweets.drl">
       <provider selected="true" editor-type-id="text-editor">
-        <state line="36" column="33" selection-start="1428" selection-end="1428" vertical-scroll-proportion="0.3106796">
+        <state line="18" column="48" selection-start="368" selection-end="368" vertical-scroll-proportion="0.34951457">
           <folding />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/modules/sim/src/test/java/org/jboss/test/sam/samples/aggregation/AggregationTestCase.java">
+    <entry file="file://$PROJECT_DIR$/modules/examples/twitter/src/main/java/org/jboss/sam/examples/twitter/IO.java">
       <provider selected="true" editor-type-id="text-editor">
-        <state line="113" column="65" selection-start="3552" selection-end="3552" vertical-scroll-proportion="0.019417476">
+        <state line="61" column="11" selection-start="1945" selection-end="1945" vertical-scroll-proportion="0.7378641">
           <folding />
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/pom.xml">
+    <entry file="file://$PROJECT_DIR$/modules/examples/twitter/src/main/java/org/jboss/sam/examples/twitter/Main.java">
       <provider selected="true" editor-type-id="text-editor">
-        <state line="14" column="28" selection-start="530" selection-end="530" vertical-scroll-proportion="0.27688503">
-          <folding />
+        <state line="40" column="10" selection-start="1472" selection-end="1472" vertical-scroll-proportion="-0.18665019">
+          <folding>
+            <element signature="imports" expanded="true" />
+            <element signature="class#2398:2818" expanded="false" />
+          </folding>
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/modules/examples/pom.xml">
+    <entry file="file://$PROJECT_DIR$/modules/examples/twitter/src/main/java/org/jboss/sam/examples/twitter/TweetLogger.java">
       <provider selected="true" editor-type-id="text-editor">
-        <state line="4" column="22" selection-start="271" selection-end="271" vertical-scroll-proportion="0.07911001">
-          <folding />
+        <state line="61" column="49" selection-start="1895" selection-end="1895" vertical-scroll-proportion="0.75728154">
+          <folding>
+            <element signature="imports" expanded="true" />
+          </folding>
         </state>
       </provider>
     </entry>
-    <entry file="file://$PROJECT_DIR$/modules/examples/twitter/pom.xml">
+    <entry file="file://$PROJECT_DIR$/modules/examples/twitter/src/main/java/org/jboss/sam/examples/twitter/TitterSearch.java">
       <provider selected="true" editor-type-id="text-editor">
-        <state line="31" column="21" selection-start="1054" selection-end="1054" vertical-scroll-proportion="0.58467245">
-          <folding />
+        <state line="71" column="65" selection-start="2111" selection-end="2111" vertical-scroll-proportion="0.27184466">
+          <folding>
+            <element signature="imports" expanded="true" />
+          </folding>
         </state>
       </provider>
     </entry>

Modified: sam/trunk/modules/core/core.iml
===================================================================
--- sam/trunk/modules/core/core.iml	2009-07-23 10:28:20 UTC (rev 677)
+++ sam/trunk/modules/core/core.iml	2009-07-23 12:39:01 UTC (rev 678)
@@ -122,7 +122,7 @@
         <SOURCES />
       </library>
     </orderEntry>
-    <orderEntry type="module-library">
+    <orderEntry type="module-library" exported="">
       <library name="M2 Dep: org.mvel:mvel2:jar:2.0.10:compile">
         <CLASSES>
           <root url="jar://$MODULE_DIR$/../../../../../../.m2/repository/org/mvel/mvel2/2.0.10/mvel2-2.0.10.jar!/" />
@@ -131,7 +131,7 @@
         <SOURCES />
       </library>
     </orderEntry>
-    <orderEntry type="module-library">
+    <orderEntry type="module-library" exported="">
       <library name="M2 Dep: org.antlr:antlr-runtime:jar:3.1.1:compile">
         <CLASSES>
           <root url="jar://$MODULE_DIR$/../../../../../../.m2/repository/org/antlr/antlr-runtime/3.1.1/antlr-runtime-3.1.1.jar!/" />
@@ -140,7 +140,7 @@
         <SOURCES />
       </library>
     </orderEntry>
-    <orderEntry type="module-library">
+    <orderEntry type="module-library" exported="">
       <library name="M2 Dep: janino:janino:jar:2.5.15:compile">
         <CLASSES>
           <root url="jar://$MODULE_DIR$/../../../../../../.m2/repository/janino/janino/2.5.15/janino-2.5.15.jar!/" />
@@ -149,7 +149,7 @@
         <SOURCES />
       </library>
     </orderEntry>
-    <orderEntry type="module-library">
+    <orderEntry type="module-library" exported="">
       <library name="M2 Dep: org.drools:drools-core:jar:5.0.1:compile">
         <CLASSES>
           <root url="jar://$MODULE_DIR$/../../../../../../.m2/repository/org/drools/drools-core/5.0.1/drools-core-5.0.1.jar!/" />
@@ -158,7 +158,7 @@
         <SOURCES />
       </library>
     </orderEntry>
-    <orderEntry type="module-library">
+    <orderEntry type="module-library" exported="">
       <library name="M2 Dep: org.drools:drools-api:jar:5.0.1:compile">
         <CLASSES>
           <root url="jar://$MODULE_DIR$/../../../../../../.m2/repository/org/drools/drools-api/5.0.1/drools-api-5.0.1.jar!/" />
@@ -167,7 +167,7 @@
         <SOURCES />
       </library>
     </orderEntry>
-    <orderEntry type="module-library">
+    <orderEntry type="module-library" exported="">
       <library name="M2 Dep: org.drools:drools-compiler:jar:5.0.1:compile">
         <CLASSES>
           <root url="jar://$MODULE_DIR$/../../../../../../.m2/repository/org/drools/drools-compiler/5.0.1/drools-compiler-5.0.1.jar!/" />

Modified: sam/trunk/modules/core/src/main/java/org/jboss/sam/internal/drools/DroolsEventProcessorImpl.java
===================================================================
--- sam/trunk/modules/core/src/main/java/org/jboss/sam/internal/drools/DroolsEventProcessorImpl.java	2009-07-23 10:28:20 UTC (rev 677)
+++ sam/trunk/modules/core/src/main/java/org/jboss/sam/internal/drools/DroolsEventProcessorImpl.java	2009-07-23 12:39:01 UTC (rev 678)
@@ -96,12 +96,35 @@
         System.out.println("-> " + nep.getEntryPoint().getEntryPointId());
       }
     }
-    
+
+    // start i/o
+    for(StreamInput in : streamInputs.values())
+    {
+      in.start();
+    }
+
+    for(StreamOutput out : streamOutputs.values())
+    {
+      out.start();
+    }
+
     this.started = true;
   }
 
   public void stop()
   {
+    // start i/o
+    for(StreamInput in : streamInputs.values())
+    {
+      in.stop();
+    }
+
+    for(StreamOutput out : streamOutputs.values())
+    {
+      out.stop();
+    }
+
+
     this.session.dispose();
     this.session = null;
     this.started = false;
@@ -117,7 +140,7 @@
   public void setProperties(Properties properties)
   {
     String prop = (String)properties.get("drools.runtimelog.enable");
-    enableRuntimeLogger = (prop !=null && "true".equals(prop));    
+    enableRuntimeLogger = (prop !=null && "true".equals(prop));
   }
 
   public void setRuntime(ActivityMonitor runtime)
@@ -233,7 +256,7 @@
   {
     if(isStarted())
       throw new IllegalStateException("EventProcessor already started");
-    
+
     // -----------------------
     // Create a drools package
 

Modified: sam/trunk/modules/examples/twitter/pom.xml
===================================================================
--- sam/trunk/modules/examples/twitter/pom.xml	2009-07-23 10:28:20 UTC (rev 677)
+++ sam/trunk/modules/examples/twitter/pom.xml	2009-07-23 12:39:01 UTC (rev 678)
@@ -40,21 +40,27 @@
       <artifactId>javasim</artifactId>
     </dependency>
 
-      <dependency>
-        <groupId>net.homeip.yusuke</groupId>
-        <artifactId>twitter4j</artifactId>
-        <version>[2.0,)</version>
-      </dependency>
+    <dependency>
+      <groupId>net.homeip.yusuke</groupId>
+      <artifactId>twitter4j</artifactId>
+      <version>[2.0,)</version>
+    </dependency>
 
+    <dependency>
+      <groupId>net.homeip.yusuke</groupId>
+      <artifactId>twitter4j</artifactId>
+      <version>[2.0,)</version>
+      <classifier>sources</classifier>
+    </dependency>
+
   </dependencies>
 
   <!-- Plugins -->
   <build>
+
     <resources>
       <resource>
-        <targetPath>../etc</targetPath>
-        <directory>src/main/etc</directory>
-        <filtering>true</filtering>
+        <directory>src/main/resources</directory>
       </resource>
     </resources>
 

Added: sam/trunk/modules/examples/twitter/src/main/java/org/jboss/sam/examples/twitter/IO.java
===================================================================
--- sam/trunk/modules/examples/twitter/src/main/java/org/jboss/sam/examples/twitter/IO.java	                        (rev 0)
+++ sam/trunk/modules/examples/twitter/src/main/java/org/jboss/sam/examples/twitter/IO.java	2009-07-23 12:39:01 UTC (rev 678)
@@ -0,0 +1,64 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY 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 along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.sam.examples.twitter;
+
+import java.io.InputStream;
+import java.io.IOException;
+import java.io.InputStreamReader;
+import java.io.BufferedReader;
+
+/**
+ * @author Heiko.Braun <heiko.braun at jboss.com>
+ */
+public class IO
+{
+  public static String convertStreamToString(InputStream is) {
+
+    if(null==is)
+      throw new IllegalArgumentException("Input stream cannot be null");
+    
+    BufferedReader reader = new BufferedReader(new InputStreamReader(is));
+    StringBuilder sb = new StringBuilder();
+
+    String line = null;
+    try {
+      while ((line = reader.readLine()) != null) {
+        sb.append(line + "\n");
+      }
+    } catch (IOException e) {
+      e.printStackTrace();
+    } finally {
+      try {
+        is.close();
+      } catch (IOException e) {
+        e.printStackTrace();
+      }
+    }
+
+    return sb.toString();
+  }
+
+  public static InputStream loadDRL(String s)
+  {
+    return Thread.currentThread().getContextClassLoader().getResourceAsStream(s);
+  }
+}

Added: sam/trunk/modules/examples/twitter/src/main/java/org/jboss/sam/examples/twitter/Main.java
===================================================================
--- sam/trunk/modules/examples/twitter/src/main/java/org/jboss/sam/examples/twitter/Main.java	                        (rev 0)
+++ sam/trunk/modules/examples/twitter/src/main/java/org/jboss/sam/examples/twitter/Main.java	2009-07-23 12:39:01 UTC (rev 678)
@@ -0,0 +1,128 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY 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 along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.sam.examples.twitter;
+
+import org.jboss.sam.config.Configuration;
+import org.jboss.sam.config.ConfigFactory;
+import org.jboss.sam.ActivityMonitorFactory;
+import org.jboss.sam.ActivityMonitor;
+import org.jboss.sam.EventProcessor;
+
+import java.io.InputStream;
+
+/**
+ * @author Heiko.Braun <heiko.braun at jboss.com>
+ */
+public class Main
+{
+
+  private ActivityMonitor monitor;
+  private EventProcessor eventProcessor;
+
+  private Thread mainThread;
+  private boolean running = true;
+
+  public static void main(String[] args)
+  {
+    final Main app = new Main();
+    app.bootstrap();
+    app.start();
+
+    Runtime.getRuntime().addShutdownHook(
+        new Thread(
+            new Runnable()
+            {
+              public void run()
+              {
+                app.stop();
+              }
+            }
+        )
+    );
+  }
+
+  /**
+   * setup stream input and output
+   */
+  private void bootstrap()
+  {
+    TitterSearch twitterSearch = new TitterSearch("Micheal Jackson");
+    TweetLogger logger = new TweetLogger();
+
+    // input and output
+    eventProcessor.addInput(twitterSearch);
+    eventProcessor.addOutput(logger);
+
+    // rules
+    InputStream in = IO.loadDRL("log-tweets.drl");
+    eventProcessor.registerStatement("log any tweet", in);
+  }
+
+  public void start()
+  {
+    eventProcessor.start();
+
+    mainThread = new Thread(
+        new Runnable()
+        {
+
+          public void run()
+          {
+            while(running)
+            {
+              try
+              {
+                Thread.sleep(1000*10);                
+              }
+              catch (InterruptedException e)
+              {
+                e.printStackTrace();  
+              }
+            }
+
+            System.out.println("Stopped event processor");
+
+          }
+        }
+    );
+
+    mainThread.start();
+    System.out.println("Started event processor");
+  }
+
+  public void stop()
+  {
+    running = false;
+    eventProcessor.stop();
+  }
+
+  public Main()
+  {
+    InputStream in = Thread.currentThread().getContextClassLoader().getResourceAsStream("sam-cfg.xml");
+    Configuration configuration = new Configuration(
+        ConfigFactory.newInstance().unmarshall(in)
+    );
+    monitor = ActivityMonitorFactory.newInstance().createMonitor(configuration);
+    eventProcessor = monitor.getEventProcessor();
+
+  }
+}

Added: sam/trunk/modules/examples/twitter/src/main/java/org/jboss/sam/examples/twitter/TitterSearch.java
===================================================================
--- sam/trunk/modules/examples/twitter/src/main/java/org/jboss/sam/examples/twitter/TitterSearch.java	                        (rev 0)
+++ sam/trunk/modules/examples/twitter/src/main/java/org/jboss/sam/examples/twitter/TitterSearch.java	2009-07-23 12:39:01 UTC (rev 678)
@@ -0,0 +1,166 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY 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 along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.sam.examples.twitter;
+
+import twitter4j.*;
+import org.jboss.sam.StreamInput;
+import org.jboss.sam.StreamInputCallback;
+
+import java.util.List;
+import java.util.ArrayList;
+import java.util.Date;
+
+/**
+ * @author Heiko.Braun <heiko.braun at jboss.com>
+ */
+public class TitterSearch implements StreamInput
+{
+
+  // pull interval in seconds
+  // (remeber there is a 150 hits per hour limit on twitter search)
+  private int interval = 40;
+
+  private boolean started;
+
+  private Thread watchdog;
+
+  private List<StreamInputCallback> callbacks = new ArrayList<StreamInputCallback>();
+
+  private boolean keepRunning = true;
+
+  private final Twitter twitter;
+
+  public static long lastUpdate = -1;
+
+  public TitterSearch(final String queryString)
+  {
+    this.twitter = new Twitter();
+
+    watchdog = new Thread(
+        new Runnable(){
+
+          public void run()
+          {
+            try
+            {
+              System.out.println("Started search watchdog");
+
+              while(keepRunning)
+              {
+
+                Query query = new Query(queryString);
+
+
+                // fetch new only
+                if(TitterSearch.lastUpdate>0)                
+                  query.setSinceId(lastUpdate);
+
+                QueryResult result = twitter.search(query);
+
+                System.out.println("Search results: " + result.getTweets().size());
+                
+                for(Tweet t : result.getTweets())
+                {
+                  for(StreamInputCallback callback : callbacks)
+                  {
+                    try
+                    {
+                      callback.onEvent(t);
+                    }
+                    catch (Throwable e)
+                    {
+                      System.out.println("Failed to notify listener: "+e.getMessage());
+                    }
+                  }
+                }
+
+                // set last update
+                List<Tweet> tweets = result.getTweets();
+                if(!tweets.isEmpty())
+                {
+                  Tweet last = tweets.get(0);
+                  TitterSearch.lastUpdate = last.getId();
+                }
+
+                try
+                {
+                  Thread.sleep(interval*1000);
+                }
+                catch (InterruptedException e)
+                {
+                  e.printStackTrace();  
+                }
+              }
+            }
+            catch (TwitterException e)
+            {
+              e.printStackTrace();
+            }
+          }
+        }
+    );
+  }
+
+  public boolean isStarted()
+  {
+    return started;
+  }
+
+  public void registerCallback(StreamInputCallback streamInputCallback)
+  {
+    this.callbacks.add(streamInputCallback);
+  }
+
+  public void clearCallbacks()
+  {
+    this.callbacks.clear();
+  }
+
+  public String getStreamName()
+  {
+    return "twitter-search";
+  }
+
+  public void setStreamName(String name)
+  {
+    //
+  }
+
+  public void setInterval(int interval)
+  {
+    this.interval = interval;
+  }
+
+  public StreamInput start()
+  {
+    watchdog.start();
+    this.started = true;
+    return this;
+  }
+
+  public StreamInput stop()
+  {
+    keepRunning = false;
+    this.started = false;
+    return this;
+  }
+}

Added: sam/trunk/modules/examples/twitter/src/main/java/org/jboss/sam/examples/twitter/TweetLogger.java
===================================================================
--- sam/trunk/modules/examples/twitter/src/main/java/org/jboss/sam/examples/twitter/TweetLogger.java	                        (rev 0)
+++ sam/trunk/modules/examples/twitter/src/main/java/org/jboss/sam/examples/twitter/TweetLogger.java	2009-07-23 12:39:01 UTC (rev 678)
@@ -0,0 +1,78 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY 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 along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package org.jboss.sam.examples.twitter;
+
+import org.jboss.sam.StreamOutput;
+import org.jboss.sam.EventMessage;
+import twitter4j.Tweet;
+
+/**
+ * @author Heiko.Braun <heiko.braun at jboss.com>
+ */
+public class TweetLogger implements StreamOutput
+{
+  private boolean started;
+
+  public StreamOutput start()
+  {
+    System.out.println("Started search tweet logger");
+
+    this.started = true;
+    return this;
+  }
+
+  public StreamOutput stop()
+  {
+    this.started = false;
+    return this;
+  }
+
+  public boolean isStarted()
+  {
+    return this.started;
+  }
+
+  public void write(EventMessage[] args)
+  {
+    for(EventMessage event : args)
+    {      
+      System.out.println("--");
+      Tweet tweet = (Tweet)event.getUnderlying();
+      StringBuffer sb = new StringBuffer();
+      sb.append(tweet.getId()).append("\t");
+      sb.append(tweet.getFromUser()).append("\t\t");
+      sb.append(tweet.getText()).append("\n");
+
+      System.out.println(sb.toString());
+    }
+  }
+
+  public String getStreamName()
+  {
+    return "tweet-logger";
+  }
+
+  public void setStreamName(String name)
+  {
+    //
+  }
+}

Added: sam/trunk/modules/examples/twitter/src/main/java/twitter4j/QueryResultAdapter.java
===================================================================
--- sam/trunk/modules/examples/twitter/src/main/java/twitter4j/QueryResultAdapter.java	                        (rev 0)
+++ sam/trunk/modules/examples/twitter/src/main/java/twitter4j/QueryResultAdapter.java	2009-07-23 12:39:01 UTC (rev 678)
@@ -0,0 +1,38 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY 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 along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package twitter4j;
+
+import twitter4j.QueryResult;
+import twitter4j.http.ResponseAdapter;
+
+/**
+ * @author Heiko.Braun <heiko.braun at jboss.com>
+ */
+public class QueryResultAdapter extends QueryResult
+{
+
+  public QueryResultAdapter(ResponseAdapter adapter, TwitterSupport support)
+      throws TwitterException
+  {
+    super(adapter, support);
+  }
+}

Added: sam/trunk/modules/examples/twitter/src/main/java/twitter4j/http/ResponseAdapter.java
===================================================================
--- sam/trunk/modules/examples/twitter/src/main/java/twitter4j/http/ResponseAdapter.java	                        (rev 0)
+++ sam/trunk/modules/examples/twitter/src/main/java/twitter4j/http/ResponseAdapter.java	2009-07-23 12:39:01 UTC (rev 678)
@@ -0,0 +1,41 @@
+/*
+ * JBoss, Home of Professional Open Source.
+ * Copyright 2006, Red Hat Middleware LLC, and individual contributors
+ * as indicated by the @author tags. See the copyright.txt file in the
+ * distribution for a full listing of individual contributors.
+ *
+ * This is free software; you can redistribute it and/or modify it
+ * under the terms of the GNU Lesser General Public License as
+ * published by the Free Software Foundation; either version 2.1 of
+ * the License, or (at your option) any later version.
+ *
+ * This software is distributed in the hope that it will be useful,
+ * but WITHOUT ANY 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 along with this software; if not, write to the Free
+ * Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
+ * 02110-1301 USA, or see the FSF site: http://www.fsf.org.
+ */
+package twitter4j.http;
+
+/**
+ * @author Heiko.Braun <heiko.braun at jboss.com>
+ */
+public class ResponseAdapter extends Response
+{
+
+  public ResponseAdapter(String string)
+  {
+    super(string);
+  }
+
+  /**
+   * Theere is no http connection available   
+   */
+  public String getResponseHeader(String name) {
+    return null;
+  }
+}

Added: sam/trunk/modules/examples/twitter/src/main/resources/log-tweets.drl
===================================================================
--- sam/trunk/modules/examples/twitter/src/main/resources/log-tweets.drl	                        (rev 0)
+++ sam/trunk/modules/examples/twitter/src/main/resources/log-tweets.drl	2009-07-23 12:39:01 UTC (rev 678)
@@ -0,0 +1,20 @@
+package org.jboss.sam.examples.twitter;
+
+import twitter4j.*;
+
+global org.jboss.sam.internal.drools.SAMAdapter SAM;
+
+# default dialect for the semantic code will be MVEL
+dialect "mvel"
+
+# flag as event
+declare Tweet
+    @role( event )
+end
+
+rule "log tweets"
+when
+   $tweet: Tweet() from entry-point "twitter-search"
+then
+   SAM.getListener("tweet-logger").update($tweet);
+end

Added: sam/trunk/modules/examples/twitter/src/main/resources/sam-cfg.xml
===================================================================
--- sam/trunk/modules/examples/twitter/src/main/resources/sam-cfg.xml	                        (rev 0)
+++ sam/trunk/modules/examples/twitter/src/main/resources/sam-cfg.xml	2009-07-23 12:39:01 UTC (rev 678)
@@ -0,0 +1,13 @@
+<?xml version="1.0" encoding="ISO-8859-1" standalone="yes"?>
+
+<ns2:activityMonitor name="DroolsAPITestCase"
+                    domain="http://org.jboss.sam/test/drools"
+                    xmlns:ns2="http://org.jboss.sam/08/2008/">
+
+  <runtime-configuration>
+    <property name="drools.runtimelog.enable" value="false"/>
+  </runtime-configuration>
+
+  <statements/>
+
+</ns2:activityMonitor>
\ No newline at end of file

Added: sam/trunk/modules/examples/twitter/src/main/resources/search-jboss.json
===================================================================
--- sam/trunk/modules/examples/twitter/src/main/resources/search-jboss.json	                        (rev 0)
+++ sam/trunk/modules/examples/twitter/src/main/resources/search-jboss.json	2009-07-23 12:39:01 UTC (rev 678)
@@ -0,0 +1 @@
+{"results":[{"text":"Richfaces is awesome, combine it with JBoss Studio the Eclipse ide from jboss ; that Rapid JSF app development","to_user_id":null,"from_user":"Ashok_Nanda","id":2795825173,"from_user_id":17081595,"iso_language_code":"en","source":"&lt;a href=&quot;http:\/\/twitter.com\/&quot;&gt;web&lt;\/a&gt;","profile_image_url":"http:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/211976066\/ruby_normal.png","created_at":"Thu, 23 Jul 2009 09:58:34 +0000"},{"text":"Gonna work with the Big Boss today ... JBoss that is.","to_user_id":null,"from_user":"kmf","id":2795789895,"from_user_id":187295,"iso_language_code":"en","source":"&lt;a href=&quot;http:\/\/floss.pro&quot;&gt;floss.pro&lt;\/a&gt;","profile_image_url":"http:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/323316425\/KarlFischer-OpenSuse_normal.jpg","created_at":"Thu, 23 Jul 2009 09:53:54 +0000"},{"text":"RT @sawan_ahluwalia weblogic to jboss migration","to_user_id":null,"from_user":"tamed_!
 public_tl","id":2795431416,"from_user_id":27846565,"iso_language_code":"en","source":"&lt;a href=&quot;http:\/\/software.complete.org\/twidge&quot;&gt;Twidge&lt;\/a&gt;","profile_image_url":"http:\/\/static.twitter.com\/images\/default_profile_normal.png","created_at":"Thu, 23 Jul 2009 09:09:03 +0000"},{"text":"weblogic to jboss migration","to_user_id":null,"from_user":"sawan_ahluwalia","id":2795429838,"from_user_id":21204328,"iso_language_code":"en","source":"&lt;a href=&quot;http:\/\/twitter.com\/&quot;&gt;web&lt;\/a&gt;","profile_image_url":"http:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/257273508\/Dragon_normal.bmp","created_at":"Thu, 23 Jul 2009 09:08:51 +0000"},{"text":"Setting up CI for JBoss Cloud","to_user_id":null,"from_user":"marekgoldmann","id":2795272079,"from_user_id":3296905,"iso_language_code":"en","source":"&lt;a href=&quot;http:\/\/www.atebits.com\/&quot;&gt;Tweetie&lt;\/a&gt;","profile_image_url":"http:\/\/s3.amazonaws.com\/twitter_product!
 ion\/profile_images\/94131308\/av_normal.jpg","created_at":"Th!
 u, 23 Ju
l 2009 08:49:28 +0000"},{"text":"\u041d\u0430\u0434\u043e \u0431\u0443\u0434\u0435\u0442 \u043f\u043e\u0441\u043c\u043e\u0442\u0440\u0435\u0442\u044c \u0447\u0442\u043e \u0437\u0430 \u0437\u0432\u0435\u0440\u044c http:\/\/www.jboss.org\/infinispan","to_user_id":null,"from_user":"alekseiKO","id":2794666043,"from_user_id":3105964,"iso_language_code":"ru","source":"&lt;a href=&quot;http:\/\/Jabber2Twitter.com&quot;&gt;Jabber2Twitter&lt;\/a&gt;","profile_image_url":"http:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/68114853\/NLO_normal.jpg","created_at":"Thu, 23 Jul 2009 07:39:55 +0000"},{"text":"Very productive night. Java, Apache, JBoss, MySql and FTP server installed on my Ubuntu machine on Amazon EC2. I'm going to bed now.","to_user_id":null,"from_user":"sandromancuso","id":2793803356,"from_user_id":26900362,"iso_language_code":"en","source":"&lt;a href=&quot;http:\/\/twitter.com\/&quot;&gt;web&lt;\/a&gt;","profile_image_url":"http:\/\/s3.amazonaws.com\/twitter_!
 production\/profile_images\/299814771\/27795085_N00_normal.jpg","created_at":"Thu, 23 Jul 2009 06:13:02 +0000"},{"text":"@GODJJBOSS drinks on jboss for 5 min lol","to_user_id":15813517,"to_user":"GODJJBOSS","from_user":"godjjque","id":2793055368,"from_user_id":12604917,"iso_language_code":"en","source":"&lt;a href=&quot;http:\/\/twitterfon.net\/&quot;&gt;TwitterFon&lt;\/a&gt;","profile_image_url":"http:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/303678198\/bvxHex_large_normal.jpg","created_at":"Thu, 23 Jul 2009 05:10:05 +0000"},{"text":"Have received the requests for JBOSS and iPhone 3 Dev, they will be on the new site asap http:\/\/markiemark.me :)","to_user_id":null,"from_user":"CodingBooks","id":2792394400,"from_user_id":28444238,"iso_language_code":"en","source":"&lt;a href=&quot;http:\/\/twitter.com\/&quot;&gt;web&lt;\/a&gt;","profile_image_url":"http:\/\/static.twitter.com\/images\/default_profile_normal.png","created_at":"Thu, 23 Jul 2009 04:22:42 +0000!
 "},{"text":"@GODJJBOSS u member....youu member....&quot;Jboss !
 be putti
ng it down wooooooo slimjim and tha freestyle child woooooo&quot;..CLASSIC!!!...yep yep yep","to_user_id":15813517,"to_user":"GODJJBOSS","from_user":"SlimJimBaba","id":2791788724,"from_user_id":23225504,"iso_language_code":"en","source":"&lt;a href=&quot;http:\/\/orangatame.com\/products\/twitterberry\/&quot;&gt;TwitterBerry&lt;\/a&gt;","profile_image_url":"http:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/279033778\/DSC02420_normal.JPG","created_at":"Thu, 23 Jul 2009 03:44:04 +0000"},{"text":"Been testing JBoss for a big project we're working on. Jazzed about deploying it for our production servers.","to_user_id":null,"from_user":"Rick_Proctor","id":2791771481,"from_user_id":1204960,"iso_language_code":"en","source":"&lt;a href=&quot;http:\/\/twitter.com\/&quot;&gt;web&lt;\/a&gt;","profile_image_url":"http:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/276999643\/rizzo1jpg_normal.jpg","created_at":"Thu, 23 Jul 2009 03:42:56 +0000"},{"text":"RT: @jbos!
 scn: JBoss Identity \u548c OpenID \u96c6\u6210 http:\/\/jboss.org\/jbossidentity\/downloads\/","to_user_id":null,"from_user":"night_gardener","id":2791514318,"from_user_id":29659697,"iso_language_code":"en","source":"&lt;a href=&quot;http:\/\/www.mustacheinc.com\/summizer&quot;&gt;Summizer&lt;\/a&gt;","profile_image_url":"http:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/319908678\/murmur_normal.jpg","created_at":"Thu, 23 Jul 2009 03:26:53 +0000"},{"text":"On to Qualifying JBoss Operations Network (JBoss-ON) with Monitoring","to_user_id":null,"from_user":"carlosparientes","id":2791465300,"from_user_id":14949606,"iso_language_code":"en","source":"&lt;a href=&quot;http:\/\/twitter.com\/&quot;&gt;web&lt;\/a&gt;","profile_image_url":"http:\/\/static.twitter.com\/images\/default_profile_normal.png","created_at":"Thu, 23 Jul 2009 03:23:53 +0000"},{"text":"@burningdeck i was having the same problem yesterday on JBOSS, was caused by a FileNotFoundException :)","to_user!
 _id":8649029,"to_user":"burningdeck","from_user":"mrxd","id":2!
 79051060
4,"from_user_id":2830554,"iso_language_code":"en","source":"&lt;a href=&quot;http:\/\/www.twittergadget.com&quot;&gt;TwitterGadget&lt;\/a&gt;","profile_image_url":"http:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/192639089\/Untitled3_normal.jpg","created_at":"Thu, 23 Jul 2009 02:26:50 +0000"},{"text":"JBoss Identity \u548c OpenID \u96c6\u6210 http:\/\/jboss.org\/jbossidentity\/downloads\/","to_user_id":null,"from_user":"jbosscn","id":2789556884,"from_user_id":18621456,"iso_language_code":"en","source":"&lt;a href=&quot;http:\/\/twitter.com\/&quot;&gt;web&lt;\/a&gt;","profile_image_url":"http:\/\/s3.amazonaws.com\/twitter_production\/profile_images\/289509427\/jbosscn_normal.jpg","created_at":"Thu, 23 Jul 2009 01:29:29 +0000"}],"since_id":0,"max_id":2795825173,"refresh_url":"?since_id=2795825173&q=jboss","results_per_page":15,"next_page":"?page=2&max_id=2795825173&q=jboss","completed_in":0.016466,"page":1,"query":"jboss"}
\ No newline at end of file

Modified: sam/trunk/modules/examples/twitter/twitter.iml
===================================================================
--- sam/trunk/modules/examples/twitter/twitter.iml	2009-07-23 10:28:20 UTC (rev 677)
+++ sam/trunk/modules/examples/twitter/twitter.iml	2009-07-23 12:39:01 UTC (rev 678)
@@ -1,14 +1,211 @@
 <?xml version="1.0" encoding="UTF-8"?>
 <module version="4" relativePaths="true" type="JAVA_MODULE">
   <component name="ModuleRootManager" />
-  <component name="NewModuleRootManager" inherit-compiler-output="true">
+  <component name="NewModuleRootManager" inherit-compiler-output="false">
+    <output url="file://$MODULE_DIR$/target/classes" />
     <exclude-output />
+    <output-test url="file://$MODULE_DIR$/target/test-classestwitter" />
     <content url="file://$MODULE_DIR$">
       <sourceFolder url="file://$MODULE_DIR$/src/main/java" isTestSource="false" />
-      <sourceFolder url="file://$MODULE_DIR$/src/main/resources" isTestSource="false" />
     </content>
     <orderEntry type="inheritedJdk" />
     <orderEntry type="sourceFolder" forTests="false" />
+    <orderEntry type="module" module-name="core" />
+    <orderEntry type="module-library">
+      <library name="M2 Dep: javax.xml.bind:jaxb-api:jar:2.1:compile">
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/javax/xml/bind/jaxb-api/2.1/jaxb-api-2.1.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library name="M2 Dep: commons-dbcp:commons-dbcp:jar:1.2.2:compile">
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/commons-dbcp/commons-dbcp/1.2.2/commons-dbcp-1.2.2.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library name="M2 Dep: net.homeip.yusuke:twitter4j:jar:2.0.8:compile">
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/net/homeip/yusuke/twitter4j/2.0.8/twitter4j-2.0.8.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES>
+          <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/net/homeip/yusuke/twitter4j/2.0.8/twitter4j-2.0.8-sources.jar!/" />
+        </SOURCES>
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library name="M2 Dep: org.mvel:mvel2:jar:2.0.10:compile">
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/org/mvel/mvel2/2.0.10/mvel2-2.0.10.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library name="M2 Dep: org.slf4j:nlog4j:jar:1.2.25:compile">
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/org/slf4j/nlog4j/1.2.25/nlog4j-1.2.25.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library name="M2 Dep: rome:rome:jar:0.9:compile">
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/rome/rome/0.9/rome-0.9.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library name="M2 Dep: joda-time:joda-time:jar:1.6:compile">
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/joda-time/joda-time/1.6/joda-time-1.6.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library name="M2 Dep: org.antlr:antlr-runtime:jar:3.1.1:compile">
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/org/antlr/antlr-runtime/3.1.1/antlr-runtime-3.1.1.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library name="M2 Dep: javax.xml.stream:stax-api:jar:1.0-2:compile">
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/javax/xml/stream/stax-api/1.0-2/stax-api-1.0-2.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library name="M2 Dep: janino:janino:jar:2.5.15:compile">
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/janino/janino/2.5.15/janino-2.5.15.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library name="M2 Dep: junit:junit:jar:3.8.2:compile">
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/junit/junit/3.8.2/junit-3.8.2.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES>
+          <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/junit/junit/3.8.2/junit-3.8.2-sources.jar!/" />
+        </SOURCES>
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library name="M2 Dep: javasim:javasim:jar:2.0-hbraun:compile">
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/javasim/javasim/2.0-hbraun/javasim-2.0-hbraun.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library name="M2 Dep: org.drools:drools-core:jar:5.0.1:compile">
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/org/drools/drools-core/5.0.1/drools-core-5.0.1.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library name="M2 Dep: org.drools:drools-api:jar:5.0.1:compile">
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/org/drools/drools-api/5.0.1/drools-api-5.0.1.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library name="M2 Dep: commons-logging:commons-logging-api:jar:1.1:compile">
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/commons-logging/commons-logging-api/1.1/commons-logging-api-1.1.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library name="M2 Dep: org.eclipse.jdt:core:jar:3.4.2.v_883_R34x:compile">
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/org/eclipse/jdt/core/3.4.2.v_883_R34x/core-3.4.2.v_883_R34x.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library name="M2 Dep: com.sun.xml.bind:jaxb-impl:jar:2.1.6:compile">
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/com/sun/xml/bind/jaxb-impl/2.1.6/jaxb-impl-2.1.6.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library name="M2 Dep: org.drools:drools-compiler:jar:5.0.1:compile">
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/org/drools/drools-compiler/5.0.1/drools-compiler-5.0.1.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library name="M2 Dep: javax.activation:activation:jar:1.1:compile">
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/javax/activation/activation/1.1/activation-1.1.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES>
+          <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/javax/activation/activation/1.1/activation-1.1-sources.jar!/" />
+        </SOURCES>
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library name="M2 Dep: hsqldb:hsqldb:jar:1.8.0.7:compile">
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/hsqldb/hsqldb/1.8.0.7/hsqldb-1.8.0.7.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library name="M2 Dep: commons-pool:commons-pool:jar:1.3:compile">
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/../../../../../../../.m2/repository/commons-pool/commons-pool/1.3/commons-pool-1.3.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
     <orderEntryProperties />
   </component>
 </module>

Modified: sam/trunk/modules/sim/sim.iml
===================================================================
--- sam/trunk/modules/sim/sim.iml	2009-07-23 10:28:20 UTC (rev 677)
+++ sam/trunk/modules/sim/sim.iml	2009-07-23 12:39:01 UTC (rev 678)
@@ -10,7 +10,6 @@
     </content>
     <orderEntry type="inheritedJdk" />
     <orderEntry type="sourceFolder" forTests="false" />
-    <orderEntry type="module" module-name="toplevel" />
     <orderEntry type="module" module-name="core" />
     <orderEntry type="module-library">
       <library name="M2 Dep: junit:junit:jar:3.8.2:compile">

Modified: sam/trunk/toplevel.iml
===================================================================
--- sam/trunk/toplevel.iml	2009-07-23 10:28:20 UTC (rev 677)
+++ sam/trunk/toplevel.iml	2009-07-23 12:39:01 UTC (rev 678)
@@ -7,12 +7,14 @@
       <sourceFolder url="file://$MODULE_DIR$/modules/core/src/main/java" isTestSource="false" />
       <sourceFolder url="file://$MODULE_DIR$/modules/core/src/test/java" isTestSource="true" />
       <sourceFolder url="file://$MODULE_DIR$/modules/core/src/test/resources" isTestSource="true" />
+      <sourceFolder url="file://$MODULE_DIR$/modules/examples/twitter/src/main/java" isTestSource="false" />
       <sourceFolder url="file://$MODULE_DIR$/modules/sim/src/main/java" isTestSource="false" />
       <sourceFolder url="file://$MODULE_DIR$/modules/sim/src/test/java" isTestSource="true" />
       <sourceFolder url="file://$MODULE_DIR$/modules/sim/src/test/resources" isTestSource="true" />
     </content>
     <orderEntry type="inheritedJdk" />
     <orderEntry type="sourceFolder" forTests="false" />
+    <orderEntry type="module" module-name="core" />
     <orderEntry type="module-library" exported="">
       <library name="M2 Dep: javax.xml.bind:jaxb-api:jar:2.1:compile">
         <CLASSES>
@@ -179,6 +181,35 @@
         <SOURCES />
       </library>
     </orderEntry>
+    <orderEntry type="module-library">
+      <library name="M2 Dep: net.homeip.yusuke:twitter4j:jar:2.0.8:compile">
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/../../../../.m2/repository/net/homeip/yusuke/twitter4j/2.0.8/twitter4j-2.0.8.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES>
+          <root url="jar://$MODULE_DIR$/../../../../.m2/repository/net/homeip/yusuke/twitter4j/2.0.8/twitter4j-2.0.8-sources.jar!/" />
+        </SOURCES>
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library name="M2 Dep: rome:rome:jar:0.9:compile">
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/../../../../.m2/repository/rome/rome/0.9/rome-0.9.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
+    <orderEntry type="module-library">
+      <library name="M2 Dep: org.slf4j:nlog4j:jar:1.2.25:compile">
+        <CLASSES>
+          <root url="jar://$MODULE_DIR$/../../../../.m2/repository/org/slf4j/nlog4j/1.2.25/nlog4j-1.2.25.jar!/" />
+        </CLASSES>
+        <JAVADOC />
+        <SOURCES />
+      </library>
+    </orderEntry>
     <orderEntryProperties />
   </component>
 </module>



More information about the overlord-commits mailing list