hivemind-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From hivemind-...@jakarta.apache.org
Subject [Jakarta HiveMind Wiki] Updated: GettingStarted
Date Wed, 02 Feb 2005 07:19:24 GMT
   Date: 2005-02-01T23:19:24
   Editor: BrianWallace
   Wiki: Jakarta HiveMind Wiki
   Page: GettingStarted
   URL: http://wiki.apache.org/jakarta-hivemind/GettingStarted

   no comment

Change Log:

------------------------------------------------------------------------------
@@ -1017,4 +1017,286 @@
 -display-download-warning:
     [mkdir] Created dir: C:\HiveMind\library\target\module-lib\compile\commons-logging
      [copy] Copying 1 file to C:\HiveMind\library\target\module-lib\compile\commons-logging
-     [copy] Copying C:\HiveMind\ext-package\lib\commons-logging-1.0.3.jar to C:\HiveMind\library%5
+     [copy] Copying C:\HiveMind\ext-package\lib\commons-logging-1.0.3.jar to C:\HiveMind\library\target\module-lib\compile\commons-logging\commons-logging-1.0.3.jar
+-display-download-warning:
+  [grabber] Downloading http://www.ibiblio.org/maven/groovy/jars/groovy-all-1.0-beta-9.jar
to C:\HiveMind\ext-package\lib\groovy-all-1.0-beta-9.jar
+    [mkdir] Created dir: C:\HiveMind\library\target\module-lib\compile\groovy-all
+     [copy] Copying 1 file to C:\HiveMind\library\target\module-lib\compile\groovy-all
+     [copy] Copying C:\HiveMind\ext-package\lib\groovy-all-1.0-beta-9.jar to C:\HiveMind\library\target\module-lib\compile\groovy-all\groovy-all-1.0-beta-9.jar
+-display-download-warning:
+    [mkdir] Created dir: C:\HiveMind\library\target\module-lib\test\log4j
+     [copy] Copying 1 file to C:\HiveMind\library\target\module-lib\test\log4j
+     [copy] Copying C:\HiveMind\ext-package\lib\log4j-1.2.7.jar to C:\HiveMind\library\target\module-lib\test\log4j\log4j-1.2.7.jar
+-display-download-warning:
+    [mkdir] Created dir: C:\HiveMind\library\target\module-lib\test\javassist
+     [copy] Copying 1 file to C:\HiveMind\library\target\module-lib\test\javassist
+     [copy] Copying C:\HiveMind\ext-package\lib\javassist-3.0-rc-1.jar to C:\HiveMind\library\target\module-lib\test\javassist\javassist-3.0-rc-1.jar
+-display-download-warning:
+    [mkdir] Created dir: C:\HiveMind\library\target\module-lib\test\servletapi
+     [copy] Copying 1 file to C:\HiveMind\library\target\module-lib\test\servletapi
+     [copy] Copying C:\HiveMind\ext-package\lib\servletapi-2.3.jar to C:\HiveMind\library\target\module-lib\test\servletapi\servletapi-2.3.jar
+-display-download-warning:
+    [mkdir] Created dir: C:\HiveMind\library\target\module-lib\test\oro
+     [copy] Copying 1 file to C:\HiveMind\library\target\module-lib\test\oro
+     [copy] Copying C:\HiveMind\ext-package\lib\oro-2.0.6.jar to C:\HiveMind\library\target\module-lib\test\oro\oro-2.0.6.jar
+-display-download-warning:
+    [mkdir] Created dir: C:\HiveMind\library\target\module-lib\test\easymock
+     [copy] Copying 1 file to C:\HiveMind\library\target\module-lib\test\easymock
+     [copy] Copying C:\HiveMind\ext-package\lib\easymock-1.1.jar to C:\HiveMind\library\target\module-lib\test\easymock\easymock-1.1.jar
+    [mkdir] Created dir: C:\HiveMind\library\target\module-lib\compile\hivemind
+     [copy] Copying 1 file to C:\HiveMind\library\target\module-lib\compile\hivemind
+     [copy] Copying C:\HiveMind\target\hivemind-1.1-alpha-2-snapshot.jar to C:\HiveMind\library\target\module-lib\compile\hivemind\hivemind-1.1-alpha-2-snapshot.jar
+-compile-init:
+    [mkdir] Created dir: C:\HiveMind\library\target\generated-java
+    [mkdir] Created dir: C:\HiveMind\library\target\classes
+     [echo] *** Compiling Java sources to target/classes ...
+    [javac] Compiling 52 source files to C:\HiveMind\library\target\classes
+     [echo] *** Copying resources to target/classes ...
+     [copy] Copying 5 files to C:\HiveMind\library\target\classes
+compile-tests:
+-display-download-warning:
+    [mkdir] Created dir: C:\HiveMind\library\target\module-lib\test\junit
+     [copy] Copying 1 file to C:\HiveMind\library\target\module-lib\test\junit
+     [copy] Copying C:\HiveMind\ext-package\lib\junit-3.8.1.jar to C:\HiveMind\library\target\module-lib\test\junit\junit-3.8.1.jar
+    [mkdir] Created dir: C:\HiveMind\library\target\test-classes
+     [echo] *** Compiling tests to target/test-classes ...
+    [javac] Compiling 46 source files to C:\HiveMind\library\target\test-classes
+run-tests:
+-install-junit:
+    [mkdir] Created dir: C:\HiveMind\library\target\junit-temp
+    [mkdir] Created dir: C:\HiveMind\library\target\junit-reports
+     [echo] *** Running unit tests ...
+    [junit] Testsuite: hivemind.test.lib.TestDefaultImplementationBuilder
+    [junit] Tests run: 8, Failures: 0, Errors: 0, Time elapsed: 2.043 sec
+    [junit] Testsuite: hivemind.test.lib.TestEJBProxyFactory
+    [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 1.332 sec
+    [junit] Testsuite: hivemind.test.lib.TestRemoteExceptionCoordinator
+    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.07 sec
+    [junit] Testsuite: hivemind.test.lib.TestSpringLookupFactory
+    [junit] Tests run: 3, Failures: 0, Errors: 0, Time elapsed: 0.551 sec
+    [junit] Testsuite: hivemind.test.lib.TestSpringObjectProvider
+    [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.54 sec
+    [junit] Testsuite: org.apache.hivemind.lib.adapter.TestAdapterRegistryFactory
+    [junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 0.361 sec
+    [junit] Testsuite: org.apache.hivemind.lib.chain.TestChainBuilder
+    [junit] Tests run: 6, Failures: 0, Errors: 0, Time elapsed: 0.961 sec
+    [junit] Testsuite: org.apache.hivemind.lib.factory.TestBeanFactoryImpl
+    [junit] Tests run: 12, Failures: 0, Errors: 0, Time elapsed: 0.321 sec
+    [junit] Testsuite: org.apache.hivemind.lib.factory.TestBeanFactoryObjectProvider
+    [junit] Tests run: 4, Failures: 0, Errors: 0, Time elapsed: 0.02 sec
+    [junit] Testsuite: org.apache.hivemind.lib.groovy.TestGroovyModuleDescriptorProvider
+    [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 1.692 sec
+    [junit] Testsuite: org.apache.hivemind.lib.groovy.TestHiveMindBuilder
+    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.061 sec
+    [junit] Testsuite: org.apache.hivemind.lib.impl.TestServicePropertyFactory
+    [junit] Tests run: 6, Failures: 0, Errors: 0, Time elapsed: 0.781 sec
+    [junit] Testsuite: org.apache.hivemind.lib.pipeline.TestBridgeBuilder
+    [junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 0.05 sec
+    [junit] Testsuite: org.apache.hivemind.lib.pipeline.TestFilterMethodAnalyzer
+    [junit] Tests run: 5, Failures: 0, Errors: 0, Time elapsed: 0 sec
+    [junit] Testsuite: org.apache.hivemind.lib.pipeline.TestPipelineAssembler
+    [junit] Tests run: 9, Failures: 0, Errors: 0, Time elapsed: 0.691 sec
+    [junit] Testsuite: org.apache.hivemind.lib.util.TestAdaptorRegistry
+    [junit] Tests run: 14, Failures: 0, Errors: 0, Time elapsed: 0.01 sec
+jar:
+     [echo] *** Packaging as ../target/hivemind-lib-1.1-alpha-2-snapshot.jar ...
+      [jar] Building jar: C:\HiveMind\target\hivemind-lib-1.1-alpha-2-snapshot.jar
+     [copy] Copying 1 file to C:\HiveMind\ext-package\lib
+install:
+Trying to override old definition of task hivedoc-report
+compile:
+-display-download-warning:
+  [grabber] Downloading http://www.ibiblio.org/maven/geronimo-spec/jars/geronimo-spec-ejb-1.0-M1.jar
to C:\HiveMind\ext-package\lib\geronimo-spec-ejb-1.0-M1.jar
+    [mkdir] Created dir: C:\HiveMind\examples\target\module-lib\compile\geronimo-spec-ejb
+     [copy] Copying 1 file to C:\HiveMind\examples\target\module-lib\compile\geronimo-spec-ejb
+     [copy] Copying C:\HiveMind\ext-package\lib\geronimo-spec-ejb-1.0-M1.jar to C:\HiveMind\examples\target\module-lib\compile\geronimo-spec-ejb\geronimo-spec-ejb-1.0-M1.jar
+-display-download-warning:
+    [mkdir] Created dir: C:\HiveMind\examples\target\module-lib\compile\spring-full
+     [copy] Copying 1 file to C:\HiveMind\examples\target\module-lib\compile\spring-full
+     [copy] Copying C:\HiveMind\ext-package\lib\spring-full-1.0.1.jar to C:\HiveMind\examples\target\module-lib\compile\spring-full\spring-full-1.0.1.jar
+-display-download-warning:
+    [mkdir] Created dir: C:\HiveMind\examples\target\module-lib\compile\commons-logging
+     [copy] Copying 1 file to C:\HiveMind\examples\target\module-lib\compile\commons-logging
+     [copy] Copying C:\HiveMind\ext-package\lib\commons-logging-1.0.3.jar to C:\HiveMind\examples\target\module-lib\compile\commons-logging\commons-logging-1.0.3.jar
+-display-download-warning:
+    [mkdir] Created dir: C:\HiveMind\examples\target\module-lib\run\log4j
+     [copy] Copying 1 file to C:\HiveMind\examples\target\module-lib\run\log4j
+     [copy] Copying C:\HiveMind\ext-package\lib\log4j-1.2.7.jar to C:\HiveMind\examples\target\module-lib\run\log4j\log4j-1.2.7.jar
+-display-download-warning:
+    [mkdir] Created dir: C:\HiveMind\examples\target\module-lib\run\javassist
+     [copy] Copying 1 file to C:\HiveMind\examples\target\module-lib\run\javassist
+     [copy] Copying C:\HiveMind\ext-package\lib\javassist-3.0-rc-1.jar to C:\HiveMind\examples\target\module-lib\run\javassist\javassist-3.0-rc-1.jar
+-display-download-warning:
+    [mkdir] Created dir: C:\HiveMind\examples\target\module-lib\run\oro
+     [copy] Copying 1 file to C:\HiveMind\examples\target\module-lib\run\oro
+     [copy] Copying C:\HiveMind\ext-package\lib\oro-2.0.6.jar to C:\HiveMind\examples\target\module-lib\run\oro\oro-2.0.6.jar
+-display-download-warning:
+    [mkdir] Created dir: C:\HiveMind\examples\target\module-lib\test\easymock
+     [copy] Copying 1 file to C:\HiveMind\examples\target\module-lib\test\easymock
+     [copy] Copying C:\HiveMind\ext-package\lib\easymock-1.1.jar to C:\HiveMind\examples\target\module-lib\test\easymock\easymock-1.1.jar
+    [mkdir] Created dir: C:\HiveMind\examples\target\module-lib\compile\hivemind
+     [copy] Copying 1 file to C:\HiveMind\examples\target\module-lib\compile\hivemind
+     [copy] Copying C:\HiveMind\target\hivemind-1.1-alpha-2-snapshot.jar to C:\HiveMind\examples\target\module-lib\compile\hivemind\hivemind-1.1-alpha-2-snapshot.jar
+-compile-init:
+    [mkdir] Created dir: C:\HiveMind\examples\target\generated-java
+    [mkdir] Created dir: C:\HiveMind\examples\target\classes
+     [echo] *** Compiling Java sources to target/classes ...
+    [javac] Compiling 24 source files to C:\HiveMind\examples\target\classes
+     [echo] *** Copying resources to target/classes ...
+compile-tests:
+-display-download-warning:
+    [mkdir] Created dir: C:\HiveMind\examples\target\module-lib\test\junit
+     [copy] Copying 1 file to C:\HiveMind\examples\target\module-lib\test\junit
+     [copy] Copying C:\HiveMind\ext-package\lib\junit-3.8.1.jar to C:\HiveMind\examples\target\module-lib\test\junit\junit-3.8.1.jar
+    [mkdir] Created dir: C:\HiveMind\examples\target\test-classes
+     [echo] *** Compiling tests to target/test-classes ...
+    [javac] Compiling 3 source files to C:\HiveMind\examples\target\test-classes
+run-tests:
+-install-junit:
+    [mkdir] Created dir: C:\HiveMind\examples\target\junit-temp
+    [mkdir] Created dir: C:\HiveMind\examples\target\junit-reports
+     [echo] *** Running unit tests ...
+    [junit] Testsuite: com.panorama.startup.impl.TestExecuteStatic
+    [junit] Tests run: 1, Failures: 0, Errors: 0, Time elapsed: 0.461 sec
+    [junit] Testsuite: com.panorama.startup.impl.TestTaskExecutor
+    [junit] Tests run: 2, Failures: 0, Errors: 0, Time elapsed: 0.241 sec
+jar:
+     [echo] *** Packaging as target/hivemind-examples-1.1-alpha-2-snapshot.jar ...
+      [jar] Building jar: C:\HiveMind\examples\target\hivemind-examples-1.1-alpha-2-snapshot.jar
+     [copy] Copying 1 file to C:\HiveMind\ext-package\lib
+install:
+BUILD SUCCESSFUL
+Total time: 3 minutes 39 seconds
+}}}
+
+= Examples =
+The examples that come bundled with the Hive``Mind source are in the examples subdirectory
and may be run via Ant.
+
+== Calculator ==
+Run the {{{run-calculator}}} target
+
+The following output will be displayed:
+{{{
+Buildfile: C:\HiveMind\examples\build.xml
+run-calculator:
+     [java] Calculator [DEBUG] Creating SingletonProxy for service examples.Calculator
+     [java] Inputs:   28.0 and 4.75
+     [java] Calculator [DEBUG] Constructing core service implementation for service examples.Calculator
+     [java] Subtracter [DEBUG] Creating SingletonProxy for service examples.Subtracter
+     [java] Calculator [DEBUG] Autowired service property subtracter to <SingletonProxy
for examples.Subtracter(org.apache.hivemind.examples.Subtracter)>
+     [java] Divider [DEBUG] Creating SingletonProxy for service examples.Divider
+     [java] Calculator [DEBUG] Autowired service property divider to <SingletonProxy for
examples.Divider(org.apache.hivemind.examples.Divider)>
+     [java] Multiplier [DEBUG] Creating SingletonProxy for service examples.Multiplier
+     [java] Calculator [DEBUG] Autowired service property multiplier to <SingletonProxy
for examples.Multiplier(org.apache.hivemind.examples.Multiplier)>
+     [java] Adder [DEBUG] Creating SingletonProxy for service examples.Adder
+     [java] Calculator [DEBUG] Autowired service property adder to <SingletonProxy for
examples.Adder(org.apache.hivemind.examples.Adder)>
+     [java] Calculator [DEBUG] Applying interceptor factory hivemind.LoggingInterceptor
+     [java] Calculator [DEBUG] BEGIN add(28.0, 4.75)
+     [java] Adder [DEBUG] Constructing core service implementation for service examples.Adder
+     [java] Adder [DEBUG] Applying interceptor factory hivemind.LoggingInterceptor
+     [java] Adder [DEBUG] BEGIN add(28.0, 4.75)
+     [java] Adder [DEBUG] END add() [32.75]
+     [java] Calculator [DEBUG] END add() [32.75]
+     [java] Add:      32.75
+     [java] Calculator [DEBUG] BEGIN subtract(28.0, 4.75)
+     [java] Subtracter [DEBUG] Constructing core service implementation for service examples.Subtracter
+     [java] Subtracter [DEBUG] Applying interceptor factory hivemind.LoggingInterceptor
+     [java] Subtracter [DEBUG] BEGIN subtract(28.0, 4.75)
+     [java] Subtracter [DEBUG] END subtract() [23.25]
+     [java] Calculator [DEBUG] END subtract() [23.25]
+     [java] Subtract: 23.25
+     [java] Calculator [DEBUG] BEGIN multiply(28.0, 4.75)
+     [java] Multiplier [DEBUG] Constructing core service implementation for service examples.Multiplier
+     [java] Multiplier [DEBUG] Applying interceptor factory hivemind.LoggingInterceptor
+     [java] Multiplier [DEBUG] BEGIN multiply(28.0, 4.75)
+     [java] Multiplier [DEBUG] END multiply() [133.0]
+     [java] Calculator [DEBUG] END multiply() [133.0]
+     [java] Multiply: 133.0
+     [java] Calculator [DEBUG] BEGIN divide(28.0, 4.75)
+     [java] Divider [DEBUG] Constructing core service implementation for service examples.Divider
+     [java] Divider [DEBUG] Applying interceptor factory hivemind.LoggingInterceptor
+     [java] Divider [DEBUG] BEGIN divide(28.0, 4.75)
+     [java] Divider [DEBUG] END divide() [5.894736842105263]
+     [java] Calculator [DEBUG] END divide() [5.894736842105263]
+     [java] Divide:   5.894736842105263
+BUILD SUCCESSFUL
+Total time: 4 seconds
+}}}
+
+== Logging ==
+Run the {{{run-logging}}} target
+
+'''Note:''' This is the logging example and as such has an example of logging an exception.
The exception reported in the exceptionThrower() represents a GOOD run.
+
+The following output will be displayed:
+{{{
+Buildfile: C:\HiveMind\examples\build.xml
+run-logging:
+     [java] Target [DEBUG] Creating SingletonProxy for service examples.Target
+     [java] *** Void method (no return value):
+     [java] Target [DEBUG] Constructing core service implementation for service examples.Target
+     [java] Target [DEBUG] Applying interceptor factory examples.ProxyLoggingInterceptor
+     [java] ProxyLoggingInterceptor [DEBUG] Creating SingletonProxy for service examples.ProxyLoggingInterceptor
+     [java] ProxyLoggingInterceptor [DEBUG] Constructing core service implementation for
service examples.ProxyLoggingInterceptor
+     [java] Target [DEBUG] BEGIN voidMethod(Hello)
+     [java] Target [DEBUG] END voidMethod()
+     [java] *** Ordinary method (returns a List):
+     [java] Target [DEBUG] BEGIN buildList(HiveMind, 4)
+     [java] Target [DEBUG] END buildList() [[HiveMind, HiveMind, HiveMind, HiveMind]]
+     [java] *** Exception method (throws an exception):
+     [java] Target [DEBUG] BEGIN exceptionThrower()
+     [java] Target [DEBUG] EXCEPTION exceptionThrower() -- org.apache.hivemind.ApplicationRuntimeException
+     [java] org.apache.hivemind.ApplicationRuntimeException: Some application exception.
+     [java] at org.apache.hivemind.examples.impl.TargetServiceImpl.exceptionThrower(TargetServiceImpl.java:49)
+     [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+     [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
+     [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
+     [java] at java.lang.reflect.Method.invoke(Method.java:585)
+     [java] at org.apache.hivemind.examples.impl.ProxyLoggingInvocationHandler.invoke(ProxyLoggingInvocationHandler.java:52)
+     [java] at $Proxy0.exceptionThrower(Unknown Source)
+     [java] at $TargetService_101d08a6f55.exceptionThrower($TargetService_101d08a6f55.java)
+     [java] at org.apache.hivemind.examples.LoggingMain.main(LoggingMain.java:41)
+     [java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
+     [java] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
+     [java] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
+     [java] at java.lang.reflect.Method.invoke(Method.java:585)
+     [java] at org.apache.tools.ant.taskdefs.ExecuteJava.run(ExecuteJava.java:193)
+     [java] at org.apache.tools.ant.taskdefs.ExecuteJava.execute(ExecuteJava.java:130)
+     [java] at org.apache.tools.ant.taskdefs.Java.run(Java.java:705)
+     [java] at org.apache.tools.ant.taskdefs.Java.executeJava(Java.java:177)
+     [java] at org.apache.tools.ant.taskdefs.Java.execute(Java.java:83)
+     [java] at org.apache.tools.ant.UnknownElement.execute(UnknownElement.java:275)
+     [java] at org.apache.tools.ant.Task.perform(Task.java:364)
+     [java] at org.apache.tools.ant.Target.execute(Target.java:341)
+     [java] at org.apache.tools.ant.Target.performTasks(Target.java:369)
+     [java] at org.apache.tools.ant.Project.executeTarget(Project.java:1214)
+     [java] at org.apache.tools.ant.Project.executeTargets(Project.java:1062)
+     [java] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.run(InternalAntRunner.java:387)
+     [java] at org.eclipse.ant.internal.ui.antsupport.InternalAntRunner.main(InternalAntRunner.java:136)
+BUILD SUCCESSFUL
+Total time: 3 seconds
+}}}
+
+== Panorama ==
+Run the {{{run-panorama}}} target
+
+The following output will be displayed:
+{{{
+Buildfile: C:\HiveMind\examples\build.xml
+run-panorama:
+     [java] Startup [DEBUG] Creating SingletonProxy for service panorama.startup.Startup
+     [java] Startup [DEBUG] Constructing core service implementation for service panorama.startup.Startup
+     [java] Startup [DEBUG] Autowired property messages to org.apache.hivemind.impl.MessagesImpl@1682598
+     [java] Startup [DEBUG] Autowired property log to org.apache.commons.logging.impl.Log4JLogger@7c3885
+     [java] Startup [DEBUG] Autowired property errorLog to org.apache.hivemind.impl.ErrorLogImpl@162e295
+     [java] Startup [DEBUG] Set property tasks to <Element List Proxy for panorama.startup.Startup>
+     [java] MailStartup [DEBUG] Creating SingletonProxy for service panorama.mail.MailStartup
+     [java] Startup [INFO] Executing task Mail.
+     [java] MailStartup [DEBUG] Constructing core service implementation for service panorama.mail.MailStartup
+     [java] MailStartup invoked.
+     [java] Startup [INFO] Executing task Discussions.
+     [java] DiscussionsStartup invoked.
+     [java] Startup [INFO] Executed 2 tasks (in 2 milliseconds).
+BUILD SUCCESSFUL
+Total time: 3 seconds
+}}}

---------------------------------------------------------------------
To unsubscribe, e-mail: hivemind-cvs-unsubscribe@jakarta.apache.org
For additional commands, e-mail: hivemind-cvs-help@jakarta.apache.org


Mime
View raw message