PageRenderTime 39ms CodeModel.GetById 11ms RepoModel.GetById 0ms app.codeStats 1ms

/runtime/framework/regress/framework00009.ksh

https://bitbucket.org/openesb/openesb-core
Korn Shell | 103 lines | 32 code | 17 blank | 54 comment | 0 complexity | 9b718cdc8311f3416bcaf8210f7d45c0 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. # @(#)framework00009.ksh
  25. # Copyright 2004-2008 Sun Microsystems, Inc. All Rights Reserved.
  26. #
  27. # END_HEADER - DO NOT EDIT
  28. #
  29. # Tests fix for issue #208 using JBI runtime in stand-alone mode under Java SE
  30. # This bug showed up if a Service Assembly was deployed but not started, and
  31. # then the JBI runtime was restarted. After this, the Service Assembly could
  32. # not be undeployed because the target components did not know about the SUs.
  33. # This test uses the same components and service assemblies that are used by
  34. # framework00006.
  35. #
  36. #regress setup
  37. . ./regress_defs.ksh
  38. # package components
  39. ant -emacs -q -f framework00009.xml package
  40. # start the framework
  41. start_jbise &
  42. startInstanceDelay
  43. # install components
  44. $JBISE_ANT -Djbi.task.fail.on.error=false -Djbi.install.file=$JV_FRAMEWORK_BLD_DIR/dist/slow-engine.jar install-component
  45. $JBISE_ANT -Djbi.task.fail.on.error=false -Djbi.install.file=$JV_FRAMEWORK_BLD_DIR/dist/fast-binding.jar install-component
  46. installComponentDelay
  47. # start components
  48. $JBISE_ANT -Djbi.task.fail.on.error=false -Djbi.component.name="test-slow-engine" start-component
  49. $JBISE_ANT -Djbi.task.fail.on.error=false -Djbi.component.name="test-fast-binding" start-component
  50. startComponentDelay
  51. # deploy service assemblies
  52. $JBISE_ANT -Djbi.task.fail.on.error=false -Djbi.deploy.file=$JV_FRAMEWORK_BLD_DIR/dist/restart-sa-1.jar deploy-service-assembly
  53. #$JBISE_ANT -Djbi.task.fail.on.error=false -Djbi.deploy.file=$JV_FRAMEWORK_BLD_DIR/dist/restart-sa-2.jar deploy-service-assembly
  54. deploySaDelay
  55. # Query the state of our components and service assemblies
  56. $JBISE_ANT -Djbi.binding.component.name="test-fast-binding" list-binding-components
  57. $JBISE_ANT -Djbi.service.engine.name="test-slow-engine" list-service-engines
  58. $JBISE_ANT -Djbi.service.assembly.name="restart-sa-1" list-service-assemblies
  59. #$JBISE_ANT -Djbi.service.assembly.name="restart-sa-2" list-service-assemblies
  60. # stop the JBI framework
  61. shutdown_jbise
  62. stopInstanceDelay
  63. # start the framework
  64. start_jbise &
  65. startInstanceDelay
  66. # Query the state of our components and service assemblies
  67. $JBISE_ANT -Djbi.binding.component.name="test-fast-binding" list-binding-components
  68. $JBISE_ANT -Djbi.service.engine.name="test-slow-engine" list-service-engines
  69. $JBISE_ANT -Djbi.service.assembly.name="restart-sa-1" list-service-assemblies
  70. #$JBISE_ANT -Djbi.service.assembly.name="restart-sa-2" list-service-assemblies
  71. # undeploy service assemblies
  72. $JBISE_ANT -Djbi.task.fail.on.error=false -Djbi.service.assembly.name="restart-sa-1" undeploy-service-assembly
  73. #$JBISE_ANT -Djbi.task.fail.on.error=false -Djbi.service.assembly.name="restart-sa-2" undeploy-service-assembly
  74. undeploySaDelay
  75. # shutdown components
  76. $JBISE_ANT -Djbi.task.fail.on.error=false -Djbi.component.name="test-slow-engine" shut-down-component
  77. $JBISE_ANT -Djbi.task.fail.on.error=false -Djbi.component.name="test-fast-binding" shut-down-component
  78. stopComponentDelay
  79. # uninstall components
  80. $JBISE_ANT -Djbi.task.fail.on.error=false -Djbi.component.name="test-slow-engine" uninstall-component
  81. $JBISE_ANT -Djbi.task.fail.on.error=false -Djbi.component.name="test-fast-binding" uninstall-component
  82. uninstallComponentDelay
  83. # stop the JBI framework
  84. shutdown_jbise
  85. stopInstanceDelay
  86. # ### END