PageRenderTime 26ms CodeModel.GetById 0ms RepoModel.GetById 0ms app.codeStats 0ms

/runtime/framework/regress/framework00007.ksh

https://bitbucket.org/openesb/openesb-core
Korn Shell | 93 lines | 34 code | 16 blank | 43 comment | 0 complexity | de82cbfac2a628ff235795845bced43e MD5 | raw file
  1. #!/bin/sh
  2. #
  3. # BEGIN_HEADER - DO NOT EDIT
  4. #
  5. # The contents of this file are subject to the terms
  6. # of the Common Development and Distribution License
  7. # (the "License"). You may not use this file except
  8. # in compliance with the License.
  9. #
  10. # You can obtain a copy of the license at
  11. # https://open-esb.dev.java.net/public/CDDLv1.0.html.
  12. # See the License for the specific language governing
  13. # permissions and limitations under the License.
  14. #
  15. # When distributing Covered Code, include this CDDL
  16. # HEADER in each file and include the License file at
  17. # https://open-esb.dev.java.net/public/CDDLv1.0.html.
  18. # If applicable add the following below this CDDL HEADER,
  19. # with the fields enclosed by brackets "[]" replaced with
  20. # your own identifying information: Portions Copyright
  21. # [year] [name of copyright owner]
  22. #
  23. #
  24. # @(#)framework00007.ksh
  25. # Copyright 2004-2008 Sun Microsystems, Inc. All Rights Reserved.
  26. #
  27. # END_HEADER - DO NOT EDIT
  28. #
  29. # Tests JBI runtime in stand-alone mode using Java SE.
  30. #regress setup
  31. . ./regress_defs.ksh
  32. # package components
  33. ant -emacs -q -f framework00006.xml package
  34. # start the framework
  35. start_jbise &
  36. startInstanceDelay
  37. # install components
  38. $JBISE_ANT -Djbi.task.fail.on.error=false -Djbi.install.file=$JV_FRAMEWORK_BLD_DIR/dist/slow-engine.jar install-component
  39. $JBISE_ANT -Djbi.task.fail.on.error=false -Djbi.install.file=$JV_FRAMEWORK_BLD_DIR/dist/fast-binding.jar install-component
  40. installComponentDelay
  41. # start components
  42. $JBISE_ANT -Djbi.task.fail.on.error=false -Djbi.component.name="test-slow-engine" start-component
  43. $JBISE_ANT -Djbi.task.fail.on.error=false -Djbi.component.name="test-fast-binding" start-component
  44. startComponentDelay
  45. # deploy service assemblies
  46. $JBISE_ANT -Djbi.task.fail.on.error=false -Djbi.deploy.file=$JV_FRAMEWORK_BLD_DIR/dist/restart-sa-1.jar deploy-service-assembly
  47. $JBISE_ANT -Djbi.task.fail.on.error=false -Djbi.deploy.file=$JV_FRAMEWORK_BLD_DIR/dist/restart-sa-2.jar deploy-service-assembly
  48. deploySaDelay
  49. # start service assemblies
  50. $JBISE_ANT -Djbi.task.fail.on.error=false -Djbi.service.assembly.name="restart-sa-1" start-service-assembly
  51. $JBISE_ANT -Djbi.task.fail.on.error=false -Djbi.service.assembly.name="restart-sa-2" start-service-assembly
  52. startSaDelay
  53. # Query the state of our components and service assemblies
  54. $JBISE_ANT -Djbi.binding.component.name="test-fast-binding" list-binding-components
  55. $JBISE_ANT -Djbi.service.engine.name="test-slow-engine" list-service-engines
  56. $JBISE_ANT -Djbi.service.assembly.name="restart-sa-1" list-service-assemblies
  57. $JBISE_ANT -Djbi.service.assembly.name="restart-sa-2" list-service-assemblies
  58. # shut down service assemblies
  59. $JBISE_ANT -Djbi.task.fail.on.error=false -Djbi.service.assembly.name="restart-sa-1" shut-down-service-assembly
  60. $JBISE_ANT -Djbi.task.fail.on.error=false -Djbi.service.assembly.name="restart-sa-2" shut-down-service-assembly
  61. stopSaDelay
  62. # undeploy service assemblies
  63. $JBISE_ANT -Djbi.task.fail.on.error=false -Djbi.service.assembly.name="restart-sa-1" undeploy-service-assembly
  64. $JBISE_ANT -Djbi.task.fail.on.error=false -Djbi.service.assembly.name="restart-sa-2" undeploy-service-assembly
  65. undeploySaDelay
  66. # shutdown components
  67. $JBISE_ANT -Djbi.task.fail.on.error=false -Djbi.component.name="test-slow-engine" shut-down-component
  68. $JBISE_ANT -Djbi.task.fail.on.error=false -Djbi.component.name="test-fast-binding" shut-down-component
  69. stopComponentDelay
  70. # uninstall components
  71. $JBISE_ANT -Djbi.task.fail.on.error=false -Djbi.component.name="test-slow-engine" uninstall-component
  72. $JBISE_ANT -Djbi.task.fail.on.error=false -Djbi.component.name="test-fast-binding" uninstall-component
  73. uninstallComponentDelay
  74. # stop the JBI framework
  75. shutdown_jbise
  76. stopInstanceDelay
  77. # ### END