diff --git a/jonas_doc/.gitignore b/.gitignore
similarity index 100%
rename from jonas_doc/.gitignore
rename to .gitignore
diff --git a/jonas_doc/.project b/.project
similarity index 100%
rename from jonas_doc/.project
rename to .project
diff --git a/jonas_doc/README b/README
similarity index 100%
rename from jonas_doc/README
rename to README
diff --git a/jonas_doc/build.properties b/build.properties
similarity index 100%
rename from jonas_doc/build.properties
rename to build.properties
diff --git a/jonas_doc/build.xml b/build.xml
similarity index 100%
rename from jonas_doc/build.xml
rename to build.xml
diff --git a/jonas/.checkstyle b/jonas/.checkstyle
deleted file mode 100644
index f197dee3b2985b4886e60f749981148fca2f5634..0000000000000000000000000000000000000000
--- a/jonas/.checkstyle
+++ /dev/null
@@ -1,14 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/jonas/.checkstyle_eclipse_config b/jonas/.checkstyle_eclipse_config
deleted file mode 100644
index 8bfd33c209e4fa7869217784415138409449c7c8..0000000000000000000000000000000000000000
--- a/jonas/.checkstyle_eclipse_config
+++ /dev/null
@@ -1,93 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/jonas/.classpath b/jonas/.classpath
deleted file mode 100644
index eeb64f3d95d272d38d81fd8b55d31e9b3bed4612..0000000000000000000000000000000000000000
--- a/jonas/.classpath
+++ /dev/null
@@ -1,202 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/jonas/.gitignore b/jonas/.gitignore
deleted file mode 100644
index 015586ae374341e1fef5db7b6fd0150cf41ee97f..0000000000000000000000000000000000000000
--- a/jonas/.gitignore
+++ /dev/null
@@ -1,15 +0,0 @@
-# Maven
-# -----------------------------------
-target/
-
-# IntelliJ Idea
-# -----------------------------------
-.idea/
-*.iml
-*.iws
-
-# Eclipse
-# -----------------------------------
-.settings/
-.classpath
-.project
diff --git a/jonas/.project b/jonas/.project
deleted file mode 100644
index 0af046e72851bde528da952fb1012dda7c9e719c..0000000000000000000000000000000000000000
--- a/jonas/.project
+++ /dev/null
@@ -1,29 +0,0 @@
-
-
- jonas
-
-
-
-
-
- org.maven.ide.eclipse.maven2Builder
-
-
-
-
- org.eclipse.jdt.core.javabuilder
-
-
-
-
- com.atlassw.tools.eclipse.checkstyle.CheckstyleBuilder
-
-
-
-
-
- org.eclipse.jdt.core.javanature
- org.maven.ide.eclipse.maven2Nature
- com.atlassw.tools.eclipse.checkstyle.CheckstyleNature
-
-
diff --git a/jonas/.settings/org.eclipse.jdt.core.prefs b/jonas/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 1d81c0f75250b331ee2008f75319e7e33dd21899..0000000000000000000000000000000000000000
--- a/jonas/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,268 +0,0 @@
-#Tue Aug 17 09:56:30 CEST 2010
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.6
-org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
-org.eclipse.jdt.core.compiler.compliance=1.6
-org.eclipse.jdt.core.compiler.debug.lineNumber=generate
-org.eclipse.jdt.core.compiler.debug.localVariable=generate
-org.eclipse.jdt.core.compiler.debug.sourceFile=generate
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.6
-org.eclipse.jdt.core.formatter.align_type_members_on_columns=false
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_allocation_expression=16
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_enum_constant=16
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_explicit_constructor_call=16
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_method_invocation=16
-org.eclipse.jdt.core.formatter.alignment_for_arguments_in_qualified_allocation_expression=16
-org.eclipse.jdt.core.formatter.alignment_for_assignment=0
-org.eclipse.jdt.core.formatter.alignment_for_binary_expression=16
-org.eclipse.jdt.core.formatter.alignment_for_compact_if=16
-org.eclipse.jdt.core.formatter.alignment_for_conditional_expression=80
-org.eclipse.jdt.core.formatter.alignment_for_enum_constants=0
-org.eclipse.jdt.core.formatter.alignment_for_expressions_in_array_initializer=16
-org.eclipse.jdt.core.formatter.alignment_for_multiple_fields=16
-org.eclipse.jdt.core.formatter.alignment_for_parameters_in_constructor_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_parameters_in_method_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_selector_in_method_invocation=16
-org.eclipse.jdt.core.formatter.alignment_for_superclass_in_type_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_enum_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_superinterfaces_in_type_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_constructor_declaration=16
-org.eclipse.jdt.core.formatter.alignment_for_throws_clause_in_method_declaration=16
-org.eclipse.jdt.core.formatter.blank_lines_after_imports=1
-org.eclipse.jdt.core.formatter.blank_lines_after_package=1
-org.eclipse.jdt.core.formatter.blank_lines_before_field=1
-org.eclipse.jdt.core.formatter.blank_lines_before_first_class_body_declaration=0
-org.eclipse.jdt.core.formatter.blank_lines_before_imports=1
-org.eclipse.jdt.core.formatter.blank_lines_before_member_type=1
-org.eclipse.jdt.core.formatter.blank_lines_before_method=1
-org.eclipse.jdt.core.formatter.blank_lines_before_new_chunk=1
-org.eclipse.jdt.core.formatter.blank_lines_before_package=0
-org.eclipse.jdt.core.formatter.blank_lines_between_import_groups=1
-org.eclipse.jdt.core.formatter.blank_lines_between_type_declarations=1
-org.eclipse.jdt.core.formatter.brace_position_for_annotation_type_declaration=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_anonymous_type_declaration=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_array_initializer=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_block=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_block_in_case=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_constructor_declaration=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_enum_constant=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_enum_declaration=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_method_declaration=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_switch=end_of_line
-org.eclipse.jdt.core.formatter.brace_position_for_type_declaration=end_of_line
-org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_block_comment=true
-org.eclipse.jdt.core.formatter.comment.clear_blank_lines_in_javadoc_comment=true
-org.eclipse.jdt.core.formatter.comment.format_block_comments=true
-org.eclipse.jdt.core.formatter.comment.format_header=false
-org.eclipse.jdt.core.formatter.comment.format_html=true
-org.eclipse.jdt.core.formatter.comment.format_javadoc_comments=true
-org.eclipse.jdt.core.formatter.comment.format_line_comments=true
-org.eclipse.jdt.core.formatter.comment.format_source_code=true
-org.eclipse.jdt.core.formatter.comment.indent_parameter_description=false
-org.eclipse.jdt.core.formatter.comment.indent_root_tags=true
-org.eclipse.jdt.core.formatter.comment.insert_new_line_before_root_tags=do not insert
-org.eclipse.jdt.core.formatter.comment.insert_new_line_for_parameter=do not insert
-org.eclipse.jdt.core.formatter.comment.line_length=80
-org.eclipse.jdt.core.formatter.compact_else_if=true
-org.eclipse.jdt.core.formatter.continuation_indentation=2
-org.eclipse.jdt.core.formatter.continuation_indentation_for_array_initializer=2
-org.eclipse.jdt.core.formatter.format_guardian_clause_on_one_line=false
-org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_annotation_declaration_header=true
-org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_constant_header=true
-org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_enum_declaration_header=true
-org.eclipse.jdt.core.formatter.indent_body_declarations_compare_to_type_header=true
-org.eclipse.jdt.core.formatter.indent_breaks_compare_to_cases=true
-org.eclipse.jdt.core.formatter.indent_empty_lines=false
-org.eclipse.jdt.core.formatter.indent_statements_compare_to_block=true
-org.eclipse.jdt.core.formatter.indent_statements_compare_to_body=true
-org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_cases=true
-org.eclipse.jdt.core.formatter.indent_switchstatements_compare_to_switch=false
-org.eclipse.jdt.core.formatter.indentation.size=4
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_local_variable=insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_member=insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_annotation_on_parameter=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_after_opening_brace_in_array_initializer=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_at_end_of_file_if_missing=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_before_catch_in_try_statement=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_before_closing_brace_in_array_initializer=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_before_else_in_if_statement=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_before_finally_in_try_statement=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_before_while_in_do_statement=do not insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_annotation_declaration=insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_anonymous_type_declaration=insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_block=insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_constant=insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_enum_declaration=insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_method_body=insert
-org.eclipse.jdt.core.formatter.insert_new_line_in_empty_type_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_after_and_in_type_parameter=insert
-org.eclipse.jdt.core.formatter.insert_space_after_assignment_operator=insert
-org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_at_in_annotation_type_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_binary_operator=insert
-org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_arguments=insert
-org.eclipse.jdt.core.formatter.insert_space_after_closing_angle_bracket_in_type_parameters=insert
-org.eclipse.jdt.core.formatter.insert_space_after_closing_brace_in_block=insert
-org.eclipse.jdt.core.formatter.insert_space_after_closing_paren_in_cast=insert
-org.eclipse.jdt.core.formatter.insert_space_after_colon_in_assert=insert
-org.eclipse.jdt.core.formatter.insert_space_after_colon_in_case=insert
-org.eclipse.jdt.core.formatter.insert_space_after_colon_in_conditional=insert
-org.eclipse.jdt.core.formatter.insert_space_after_colon_in_for=insert
-org.eclipse.jdt.core.formatter.insert_space_after_colon_in_labeled_statement=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_allocation_expression=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_annotation=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_array_initializer=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_parameters=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_constructor_declaration_throws=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_constant_arguments=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_enum_declarations=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_explicitconstructorcall_arguments=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_increments=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_for_inits=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_parameters=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_declaration_throws=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_method_invocation_arguments=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_field_declarations=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_multiple_local_declarations=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_parameterized_type_reference=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_superinterfaces=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_arguments=insert
-org.eclipse.jdt.core.formatter.insert_space_after_comma_in_type_parameters=insert
-org.eclipse.jdt.core.formatter.insert_space_after_ellipsis=insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_parameterized_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_angle_bracket_in_type_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_brace_in_array_initializer=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_allocation_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_bracket_in_array_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_annotation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_cast=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_catch=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_constructor_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_enum_constant=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_for=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_if=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_method_invocation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_parenthesized_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_switch=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_synchronized=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_opening_paren_in_while=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_postfix_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_prefix_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_question_in_conditional=insert
-org.eclipse.jdt.core.formatter.insert_space_after_question_in_wildcard=do not insert
-org.eclipse.jdt.core.formatter.insert_space_after_semicolon_in_for=insert
-org.eclipse.jdt.core.formatter.insert_space_after_unary_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_and_in_type_parameter=insert
-org.eclipse.jdt.core.formatter.insert_space_before_assignment_operator=insert
-org.eclipse.jdt.core.formatter.insert_space_before_at_in_annotation_type_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_binary_operator=insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_parameterized_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_angle_bracket_in_type_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_brace_in_array_initializer=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_allocation_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_bracket_in_array_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_annotation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_cast=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_catch=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_constructor_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_enum_constant=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_for=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_if=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_method_invocation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_parenthesized_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_switch=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_synchronized=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_closing_paren_in_while=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_assert=insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_case=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_conditional=insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_default=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_for=insert
-org.eclipse.jdt.core.formatter.insert_space_before_colon_in_labeled_statement=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_allocation_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_annotation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_array_initializer=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_constructor_declaration_throws=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_constant_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_enum_declarations=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_explicitconstructorcall_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_increments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_for_inits=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_declaration_throws=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_method_invocation_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_field_declarations=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_multiple_local_declarations=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_parameterized_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_superinterfaces=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_comma_in_type_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_ellipsis=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_parameterized_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_arguments=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_angle_bracket_in_type_parameters=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_annotation_type_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_anonymous_type_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_array_initializer=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_block=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_constructor_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_constant=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_enum_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_method_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_switch=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_brace_in_type_declaration=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_allocation_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_bracket_in_array_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_annotation_type_member_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_catch=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_constructor_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_enum_constant=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_for=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_if=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_method_invocation=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_parenthesized_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_switch=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_synchronized=insert
-org.eclipse.jdt.core.formatter.insert_space_before_opening_paren_in_while=insert
-org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_return=insert
-org.eclipse.jdt.core.formatter.insert_space_before_parenthesized_expression_in_throw=insert
-org.eclipse.jdt.core.formatter.insert_space_before_postfix_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_prefix_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_question_in_conditional=insert
-org.eclipse.jdt.core.formatter.insert_space_before_question_in_wildcard=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_semicolon=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_semicolon_in_for=do not insert
-org.eclipse.jdt.core.formatter.insert_space_before_unary_operator=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_brackets_in_array_type_reference=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_braces_in_array_initializer=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_brackets_in_array_allocation_expression=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_annotation_type_member_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_constructor_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_enum_constant=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_declaration=do not insert
-org.eclipse.jdt.core.formatter.insert_space_between_empty_parens_in_method_invocation=do not insert
-org.eclipse.jdt.core.formatter.keep_else_statement_on_same_line=false
-org.eclipse.jdt.core.formatter.keep_empty_array_initializer_on_one_line=false
-org.eclipse.jdt.core.formatter.keep_imple_if_on_one_line=false
-org.eclipse.jdt.core.formatter.keep_then_statement_on_same_line=false
-org.eclipse.jdt.core.formatter.lineSplit=128
-org.eclipse.jdt.core.formatter.never_indent_block_comments_on_first_column=false
-org.eclipse.jdt.core.formatter.never_indent_line_comments_on_first_column=false
-org.eclipse.jdt.core.formatter.number_of_blank_lines_at_beginning_of_method_body=0
-org.eclipse.jdt.core.formatter.number_of_empty_lines_to_preserve=1
-org.eclipse.jdt.core.formatter.put_empty_statement_on_new_line=true
-org.eclipse.jdt.core.formatter.tabulation.char=space
-org.eclipse.jdt.core.formatter.tabulation.size=4
-org.eclipse.jdt.core.formatter.use_tabs_only_for_leading_indentations=false
-org.eclipse.jdt.core.formatter.wrap_before_binary_operator=true
diff --git a/jonas/.settings/org.eclipse.jdt.ui.prefs b/jonas/.settings/org.eclipse.jdt.ui.prefs
deleted file mode 100644
index 9d0ec048565ca0dd4f88634e2e4270f9f07dd19d..0000000000000000000000000000000000000000
--- a/jonas/.settings/org.eclipse.jdt.ui.prefs
+++ /dev/null
@@ -1,57 +0,0 @@
-#Wed Sep 17 14:43:57 CEST 2008
-eclipse.preferences.version=1
-editor_save_participant_org.eclipse.jdt.ui.postsavelistener.cleanup=true
-formatter_profile=_JOnAS formatter
-formatter_settings_version=11
-org.eclipse.jdt.ui.text.custom_code_templates=
-sp_cleanup.add_default_serial_version_id=true
-sp_cleanup.add_generated_serial_version_id=false
-sp_cleanup.add_missing_annotations=true
-sp_cleanup.add_missing_deprecated_annotations=true
-sp_cleanup.add_missing_methods=false
-sp_cleanup.add_missing_nls_tags=false
-sp_cleanup.add_missing_override_annotations=true
-sp_cleanup.add_serial_version_id=false
-sp_cleanup.always_use_blocks=true
-sp_cleanup.always_use_parentheses_in_expressions=false
-sp_cleanup.always_use_this_for_non_static_field_access=false
-sp_cleanup.always_use_this_for_non_static_method_access=false
-sp_cleanup.convert_to_enhanced_for_loop=false
-sp_cleanup.correct_indentation=false
-sp_cleanup.format_source_code=false
-sp_cleanup.format_source_code_changes_only=false
-sp_cleanup.make_local_variable_final=false
-sp_cleanup.make_parameters_final=true
-sp_cleanup.make_private_fields_final=false
-sp_cleanup.make_type_abstract_if_missing_method=false
-sp_cleanup.make_variable_declarations_final=true
-sp_cleanup.never_use_blocks=false
-sp_cleanup.never_use_parentheses_in_expressions=true
-sp_cleanup.on_save_use_additional_actions=true
-sp_cleanup.organize_imports=true
-sp_cleanup.qualify_static_field_accesses_with_declaring_class=false
-sp_cleanup.qualify_static_member_accesses_through_instances_with_declaring_class=true
-sp_cleanup.qualify_static_member_accesses_through_subtypes_with_declaring_class=true
-sp_cleanup.qualify_static_member_accesses_with_declaring_class=false
-sp_cleanup.qualify_static_method_accesses_with_declaring_class=false
-sp_cleanup.remove_private_constructors=true
-sp_cleanup.remove_trailing_whitespaces=true
-sp_cleanup.remove_trailing_whitespaces_all=true
-sp_cleanup.remove_trailing_whitespaces_ignore_empty=false
-sp_cleanup.remove_unnecessary_casts=true
-sp_cleanup.remove_unnecessary_nls_tags=false
-sp_cleanup.remove_unused_imports=false
-sp_cleanup.remove_unused_local_variables=false
-sp_cleanup.remove_unused_private_fields=true
-sp_cleanup.remove_unused_private_members=false
-sp_cleanup.remove_unused_private_methods=true
-sp_cleanup.remove_unused_private_types=true
-sp_cleanup.sort_members=false
-sp_cleanup.sort_members_all=false
-sp_cleanup.use_blocks=true
-sp_cleanup.use_blocks_only_for_return_and_throw=false
-sp_cleanup.use_parentheses_in_expressions=false
-sp_cleanup.use_this_for_non_static_field_access=false
-sp_cleanup.use_this_for_non_static_field_access_only_if_necessary=true
-sp_cleanup.use_this_for_non_static_method_access=false
-sp_cleanup.use_this_for_non_static_method_access_only_if_necessary=true
diff --git a/jonas/.settings/org.maven.ide.eclipse.prefs b/jonas/.settings/org.maven.ide.eclipse.prefs
deleted file mode 100644
index 0cda568a4bf9fdfde795a1fd0a1d241d406bd708..0000000000000000000000000000000000000000
--- a/jonas/.settings/org.maven.ide.eclipse.prefs
+++ /dev/null
@@ -1,9 +0,0 @@
-#Tue Apr 12 11:46:16 CEST 2011
-activeProfiles=
-eclipse.preferences.version=1
-fullBuildGoals=
-includeModules=true
-resolveWorkspaceProjects=true
-resourceFilterGoals=
-skipCompilerPlugin=true
-version=1
diff --git a/jonas/LicenceAgreement.txt b/jonas/LicenceAgreement.txt
deleted file mode 100644
index 678c6921d59838dd7d9240be016e05f877d261f1..0000000000000000000000000000000000000000
--- a/jonas/LicenceAgreement.txt
+++ /dev/null
@@ -1,504 +0,0 @@
- GNU LESSER GENERAL PUBLIC LICENSE
- Version 2.1, February 1999
-
- Copyright (C) 1991, 1999 Free Software Foundation, Inc.
- 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
- Everyone is permitted to copy and distribute verbatim copies
- of this license document, but changing it is not allowed.
-
-[This is the first released version of the Lesser GPL. It also counts
- as the successor of the GNU Library Public License, version 2, hence
- the version number 2.1.]
-
- Preamble
-
- The licenses for most software are designed to take away your
-freedom to share and change it. By contrast, the GNU General Public
-Licenses are intended to guarantee your freedom to share and change
-free software--to make sure the software is free for all its users.
-
- This license, the Lesser General Public License, applies to some
-specially designated software packages--typically libraries--of the
-Free Software Foundation and other authors who decide to use it. You
-can use it too, but we suggest you first think carefully about whether
-this license or the ordinary General Public License is the better
-strategy to use in any particular case, based on the explanations below.
-
- When we speak of free software, we are referring to freedom of use,
-not price. Our General Public Licenses are designed to make sure that
-you have the freedom to distribute copies of free software (and charge
-for this service if you wish); that you receive source code or can get
-it if you want it; that you can change the software and use pieces of
-it in new free programs; and that you are informed that you can do
-these things.
-
- To protect your rights, we need to make restrictions that forbid
-distributors to deny you these rights or to ask you to surrender these
-rights. These restrictions translate to certain responsibilities for
-you if you distribute copies of the library or if you modify it.
-
- For example, if you distribute copies of the library, whether gratis
-or for a fee, you must give the recipients all the rights that we gave
-you. You must make sure that they, too, receive or can get the source
-code. If you link other code with the library, you must provide
-complete object files to the recipients, so that they can relink them
-with the library after making changes to the library and recompiling
-it. And you must show them these terms so they know their rights.
-
- We protect your rights with a two-step method: (1) we copyright the
-library, and (2) we offer you this license, which gives you legal
-permission to copy, distribute and/or modify the library.
-
- To protect each distributor, we want to make it very clear that
-there is no warranty for the free library. Also, if the library is
-modified by someone else and passed on, the recipients should know
-that what they have is not the original version, so that the original
-author's reputation will not be affected by problems that might be
-introduced by others.
-
- Finally, software patents pose a constant threat to the existence of
-any free program. We wish to make sure that a company cannot
-effectively restrict the users of a free program by obtaining a
-restrictive license from a patent holder. Therefore, we insist that
-any patent license obtained for a version of the library must be
-consistent with the full freedom of use specified in this license.
-
- Most GNU software, including some libraries, is covered by the
-ordinary GNU General Public License. This license, the GNU Lesser
-General Public License, applies to certain designated libraries, and
-is quite different from the ordinary General Public License. We use
-this license for certain libraries in order to permit linking those
-libraries into non-free programs.
-
- When a program is linked with a library, whether statically or using
-a shared library, the combination of the two is legally speaking a
-combined work, a derivative of the original library. The ordinary
-General Public License therefore permits such linking only if the
-entire combination fits its criteria of freedom. The Lesser General
-Public License permits more lax criteria for linking other code with
-the library.
-
- We call this license the "Lesser" General Public License because it
-does Less to protect the user's freedom than the ordinary General
-Public License. It also provides other free software developers Less
-of an advantage over competing non-free programs. These disadvantages
-are the reason we use the ordinary General Public License for many
-libraries. However, the Lesser license provides advantages in certain
-special circumstances.
-
- For example, on rare occasions, there may be a special need to
-encourage the widest possible use of a certain library, so that it becomes
-a de-facto standard. To achieve this, non-free programs must be
-allowed to use the library. A more frequent case is that a free
-library does the same job as widely used non-free libraries. In this
-case, there is little to gain by limiting the free library to free
-software only, so we use the Lesser General Public License.
-
- In other cases, permission to use a particular library in non-free
-programs enables a greater number of people to use a large body of
-free software. For example, permission to use the GNU C Library in
-non-free programs enables many more people to use the whole GNU
-operating system, as well as its variant, the GNU/Linux operating
-system.
-
- Although the Lesser General Public License is Less protective of the
-users' freedom, it does ensure that the user of a program that is
-linked with the Library has the freedom and the wherewithal to run
-that program using a modified version of the Library.
-
- The precise terms and conditions for copying, distribution and
-modification follow. Pay close attention to the difference between a
-"work based on the library" and a "work that uses the library". The
-former contains code derived from the library, whereas the latter must
-be combined with the library in order to run.
-
- GNU LESSER GENERAL PUBLIC LICENSE
- TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION
-
- 0. This License Agreement applies to any software library or other
-program which contains a notice placed by the copyright holder or
-other authorized party saying it may be distributed under the terms of
-this Lesser General Public License (also called "this License").
-Each licensee is addressed as "you".
-
- A "library" means a collection of software functions and/or data
-prepared so as to be conveniently linked with application programs
-(which use some of those functions and data) to form executables.
-
- The "Library", below, refers to any such software library or work
-which has been distributed under these terms. A "work based on the
-Library" means either the Library or any derivative work under
-copyright law: that is to say, a work containing the Library or a
-portion of it, either verbatim or with modifications and/or translated
-straightforwardly into another language. (Hereinafter, translation is
-included without limitation in the term "modification".)
-
- "Source code" for a work means the preferred form of the work for
-making modifications to it. For a library, complete source code means
-all the source code for all modules it contains, plus any associated
-interface definition files, plus the scripts used to control compilation
-and installation of the library.
-
- Activities other than copying, distribution and modification are not
-covered by this License; they are outside its scope. The act of
-running a program using the Library is not restricted, and output from
-such a program is covered only if its contents constitute a work based
-on the Library (independent of the use of the Library in a tool for
-writing it). Whether that is true depends on what the Library does
-and what the program that uses the Library does.
-
- 1. You may copy and distribute verbatim copies of the Library's
-complete source code as you receive it, in any medium, provided that
-you conspicuously and appropriately publish on each copy an
-appropriate copyright notice and disclaimer of warranty; keep intact
-all the notices that refer to this License and to the absence of any
-warranty; and distribute a copy of this License along with the
-Library.
-
- You may charge a fee for the physical act of transferring a copy,
-and you may at your option offer warranty protection in exchange for a
-fee.
-
- 2. You may modify your copy or copies of the Library or any portion
-of it, thus forming a work based on the Library, and copy and
-distribute such modifications or work under the terms of Section 1
-above, provided that you also meet all of these conditions:
-
- a) The modified work must itself be a software library.
-
- b) You must cause the files modified to carry prominent notices
- stating that you changed the files and the date of any change.
-
- c) You must cause the whole of the work to be licensed at no
- charge to all third parties under the terms of this License.
-
- d) If a facility in the modified Library refers to a function or a
- table of data to be supplied by an application program that uses
- the facility, other than as an argument passed when the facility
- is invoked, then you must make a good faith effort to ensure that,
- in the event an application does not supply such function or
- table, the facility still operates, and performs whatever part of
- its purpose remains meaningful.
-
- (For example, a function in a library to compute square roots has
- a purpose that is entirely well-defined independent of the
- application. Therefore, Subsection 2d requires that any
- application-supplied function or table used by this function must
- be optional: if the application does not supply it, the square
- root function must still compute square roots.)
-
-These requirements apply to the modified work as a whole. If
-identifiable sections of that work are not derived from the Library,
-and can be reasonably considered independent and separate works in
-themselves, then this License, and its terms, do not apply to those
-sections when you distribute them as separate works. But when you
-distribute the same sections as part of a whole which is a work based
-on the Library, the distribution of the whole must be on the terms of
-this License, whose permissions for other licensees extend to the
-entire whole, and thus to each and every part regardless of who wrote
-it.
-
-Thus, it is not the intent of this section to claim rights or contest
-your rights to work written entirely by you; rather, the intent is to
-exercise the right to control the distribution of derivative or
-collective works based on the Library.
-
-In addition, mere aggregation of another work not based on the Library
-with the Library (or with a work based on the Library) on a volume of
-a storage or distribution medium does not bring the other work under
-the scope of this License.
-
- 3. You may opt to apply the terms of the ordinary GNU General Public
-License instead of this License to a given copy of the Library. To do
-this, you must alter all the notices that refer to this License, so
-that they refer to the ordinary GNU General Public License, version 2,
-instead of to this License. (If a newer version than version 2 of the
-ordinary GNU General Public License has appeared, then you can specify
-that version instead if you wish.) Do not make any other change in
-these notices.
-
- Once this change is made in a given copy, it is irreversible for
-that copy, so the ordinary GNU General Public License applies to all
-subsequent copies and derivative works made from that copy.
-
- This option is useful when you wish to copy part of the code of
-the Library into a program that is not a library.
-
- 4. You may copy and distribute the Library (or a portion or
-derivative of it, under Section 2) in object code or executable form
-under the terms of Sections 1 and 2 above provided that you accompany
-it with the complete corresponding machine-readable source code, which
-must be distributed under the terms of Sections 1 and 2 above on a
-medium customarily used for software interchange.
-
- If distribution of object code is made by offering access to copy
-from a designated place, then offering equivalent access to copy the
-source code from the same place satisfies the requirement to
-distribute the source code, even though third parties are not
-compelled to copy the source along with the object code.
-
- 5. A program that contains no derivative of any portion of the
-Library, but is designed to work with the Library by being compiled or
-linked with it, is called a "work that uses the Library". Such a
-work, in isolation, is not a derivative work of the Library, and
-therefore falls outside the scope of this License.
-
- However, linking a "work that uses the Library" with the Library
-creates an executable that is a derivative of the Library (because it
-contains portions of the Library), rather than a "work that uses the
-library". The executable is therefore covered by this License.
-Section 6 states terms for distribution of such executables.
-
- When a "work that uses the Library" uses material from a header file
-that is part of the Library, the object code for the work may be a
-derivative work of the Library even though the source code is not.
-Whether this is true is especially significant if the work can be
-linked without the Library, or if the work is itself a library. The
-threshold for this to be true is not precisely defined by law.
-
- If such an object file uses only numerical parameters, data
-structure layouts and accessors, and small macros and small inline
-functions (ten lines or less in length), then the use of the object
-file is unrestricted, regardless of whether it is legally a derivative
-work. (Executables containing this object code plus portions of the
-Library will still fall under Section 6.)
-
- Otherwise, if the work is a derivative of the Library, you may
-distribute the object code for the work under the terms of Section 6.
-Any executables containing that work also fall under Section 6,
-whether or not they are linked directly with the Library itself.
-
- 6. As an exception to the Sections above, you may also combine or
-link a "work that uses the Library" with the Library to produce a
-work containing portions of the Library, and distribute that work
-under terms of your choice, provided that the terms permit
-modification of the work for the customer's own use and reverse
-engineering for debugging such modifications.
-
- You must give prominent notice with each copy of the work that the
-Library is used in it and that the Library and its use are covered by
-this License. You must supply a copy of this License. If the work
-during execution displays copyright notices, you must include the
-copyright notice for the Library among them, as well as a reference
-directing the user to the copy of this License. Also, you must do one
-of these things:
-
- a) Accompany the work with the complete corresponding
- machine-readable source code for the Library including whatever
- changes were used in the work (which must be distributed under
- Sections 1 and 2 above); and, if the work is an executable linked
- with the Library, with the complete machine-readable "work that
- uses the Library", as object code and/or source code, so that the
- user can modify the Library and then relink to produce a modified
- executable containing the modified Library. (It is understood
- that the user who changes the contents of definitions files in the
- Library will not necessarily be able to recompile the application
- to use the modified definitions.)
-
- b) Use a suitable shared library mechanism for linking with the
- Library. A suitable mechanism is one that (1) uses at run time a
- copy of the library already present on the user's computer system,
- rather than copying library functions into the executable, and (2)
- will operate properly with a modified version of the library, if
- the user installs one, as long as the modified version is
- interface-compatible with the version that the work was made with.
-
- c) Accompany the work with a written offer, valid for at
- least three years, to give the same user the materials
- specified in Subsection 6a, above, for a charge no more
- than the cost of performing this distribution.
-
- d) If distribution of the work is made by offering access to copy
- from a designated place, offer equivalent access to copy the above
- specified materials from the same place.
-
- e) Verify that the user has already received a copy of these
- materials or that you have already sent this user a copy.
-
- For an executable, the required form of the "work that uses the
-Library" must include any data and utility programs needed for
-reproducing the executable from it. However, as a special exception,
-the materials to be distributed need not include anything that is
-normally distributed (in either source or binary form) with the major
-components (compiler, kernel, and so on) of the operating system on
-which the executable runs, unless that component itself accompanies
-the executable.
-
- It may happen that this requirement contradicts the license
-restrictions of other proprietary libraries that do not normally
-accompany the operating system. Such a contradiction means you cannot
-use both them and the Library together in an executable that you
-distribute.
-
- 7. You may place library facilities that are a work based on the
-Library side-by-side in a single library together with other library
-facilities not covered by this License, and distribute such a combined
-library, provided that the separate distribution of the work based on
-the Library and of the other library facilities is otherwise
-permitted, and provided that you do these two things:
-
- a) Accompany the combined library with a copy of the same work
- based on the Library, uncombined with any other library
- facilities. This must be distributed under the terms of the
- Sections above.
-
- b) Give prominent notice with the combined library of the fact
- that part of it is a work based on the Library, and explaining
- where to find the accompanying uncombined form of the same work.
-
- 8. You may not copy, modify, sublicense, link with, or distribute
-the Library except as expressly provided under this License. Any
-attempt otherwise to copy, modify, sublicense, link with, or
-distribute the Library is void, and will automatically terminate your
-rights under this License. However, parties who have received copies,
-or rights, from you under this License will not have their licenses
-terminated so long as such parties remain in full compliance.
-
- 9. You are not required to accept this License, since you have not
-signed it. However, nothing else grants you permission to modify or
-distribute the Library or its derivative works. These actions are
-prohibited by law if you do not accept this License. Therefore, by
-modifying or distributing the Library (or any work based on the
-Library), you indicate your acceptance of this License to do so, and
-all its terms and conditions for copying, distributing or modifying
-the Library or works based on it.
-
- 10. Each time you redistribute the Library (or any work based on the
-Library), the recipient automatically receives a license from the
-original licensor to copy, distribute, link with or modify the Library
-subject to these terms and conditions. You may not impose any further
-restrictions on the recipients' exercise of the rights granted herein.
-You are not responsible for enforcing compliance by third parties with
-this License.
-
- 11. If, as a consequence of a court judgment or allegation of patent
-infringement or for any other reason (not limited to patent issues),
-conditions are imposed on you (whether by court order, agreement or
-otherwise) that contradict the conditions of this License, they do not
-excuse you from the conditions of this License. If you cannot
-distribute so as to satisfy simultaneously your obligations under this
-License and any other pertinent obligations, then as a consequence you
-may not distribute the Library at all. For example, if a patent
-license would not permit royalty-free redistribution of the Library by
-all those who receive copies directly or indirectly through you, then
-the only way you could satisfy both it and this License would be to
-refrain entirely from distribution of the Library.
-
-If any portion of this section is held invalid or unenforceable under any
-particular circumstance, the balance of the section is intended to apply,
-and the section as a whole is intended to apply in other circumstances.
-
-It is not the purpose of this section to induce you to infringe any
-patents or other property right claims or to contest validity of any
-such claims; this section has the sole purpose of protecting the
-integrity of the free software distribution system which is
-implemented by public license practices. Many people have made
-generous contributions to the wide range of software distributed
-through that system in reliance on consistent application of that
-system; it is up to the author/donor to decide if he or she is willing
-to distribute software through any other system and a licensee cannot
-impose that choice.
-
-This section is intended to make thoroughly clear what is believed to
-be a consequence of the rest of this License.
-
- 12. If the distribution and/or use of the Library is restricted in
-certain countries either by patents or by copyrighted interfaces, the
-original copyright holder who places the Library under this License may add
-an explicit geographical distribution limitation excluding those countries,
-so that distribution is permitted only in or among countries not thus
-excluded. In such case, this License incorporates the limitation as if
-written in the body of this License.
-
- 13. The Free Software Foundation may publish revised and/or new
-versions of the Lesser General Public License from time to time.
-Such new versions will be similar in spirit to the present version,
-but may differ in detail to address new problems or concerns.
-
-Each version is given a distinguishing version number. If the Library
-specifies a version number of this License which applies to it and
-"any later version", you have the option of following the terms and
-conditions either of that version or of any later version published by
-the Free Software Foundation. If the Library does not specify a
-license version number, you may choose any version ever published by
-the Free Software Foundation.
-
- 14. If you wish to incorporate parts of the Library into other free
-programs whose distribution conditions are incompatible with these,
-write to the author to ask for permission. For software which is
-copyrighted by the Free Software Foundation, write to the Free
-Software Foundation; we sometimes make exceptions for this. Our
-decision will be guided by the two goals of preserving the free status
-of all derivatives of our free software and of promoting the sharing
-and reuse of software generally.
-
- NO WARRANTY
-
- 15. BECAUSE THE LIBRARY IS LICENSED FREE OF CHARGE, THERE IS NO
-WARRANTY FOR THE LIBRARY, TO THE EXTENT PERMITTED BY APPLICABLE LAW.
-EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR
-OTHER PARTIES PROVIDE THE LIBRARY "AS IS" WITHOUT WARRANTY OF ANY
-KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE
-IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
-PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE
-LIBRARY IS WITH YOU. SHOULD THE LIBRARY PROVE DEFECTIVE, YOU ASSUME
-THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
-
- 16. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN
-WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY
-AND/OR REDISTRIBUTE THE LIBRARY AS PERMITTED ABOVE, BE LIABLE TO YOU
-FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR
-CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE
-LIBRARY (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING
-RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A
-FAILURE OF THE LIBRARY TO OPERATE WITH ANY OTHER SOFTWARE), EVEN IF
-SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH
-DAMAGES.
-
- END OF TERMS AND CONDITIONS
-
- How to Apply These Terms to Your New Libraries
-
- If you develop a new library, and you want it to be of the greatest
-possible use to the public, we recommend making it free software that
-everyone can redistribute and change. You can do so by permitting
-redistribution under these terms (or, alternatively, under the terms of the
-ordinary General Public License).
-
- To apply these terms, attach the following notices to the library. It is
-safest to attach them to the start of each source file to most effectively
-convey the exclusion of warranty; and each file should have at least the
-"copyright" line and a pointer to where the full notice is found.
-
-
- Copyright (C)
-
- This library 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 library 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 library; if not, write to the Free Software
- Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
-
-Also add information on how to contact you by electronic and paper mail.
-
-You should also get your employer (if you work as a programmer) or your
-school, if any, to sign a "copyright disclaimer" for the library, if
-necessary. Here is a sample; alter the names:
-
- Yoyodyne, Inc., hereby disclaims all copyright interest in the
- library `Frob' (a library for tweaking knobs) written by James Random Hacker.
-
- , 1 April 1990
- Ty Coon, President of Vice
-
-That's all there is to it!
-
-
diff --git a/jonas/README b/jonas/README
deleted file mode 100644
index fded334f952d14c2972020c154c6d8b312aab10d..0000000000000000000000000000000000000000
--- a/jonas/README
+++ /dev/null
@@ -1,6 +0,0 @@
- ====================
- How to compile JOnAS
- ====================
-
-Here is how to build JOnAS 5:
- http://wiki.jonas.ow2.org/xwiki/bin/view/Doc/BuildingJOnAS5
\ No newline at end of file
diff --git a/jonas/ReleaseNotes.txt b/jonas/ReleaseNotes.txt
deleted file mode 100644
index b2a5e1f23aa77dfc3af98ba758f1abf40bbaaa67..0000000000000000000000000000000000000000
--- a/jonas/ReleaseNotes.txt
+++ /dev/null
@@ -1,2 +0,0 @@
-Release Notes of JOnAS 5.2 are available online
-on the JOnAS web site: http://wiki.jonas.ow2.org
diff --git a/jonas/assemblies/client-jar/pom.xml b/jonas/assemblies/client-jar/pom.xml
deleted file mode 100644
index 8a8bc975eb231d082f6b72843b38dd88d7b9fcf0..0000000000000000000000000000000000000000
--- a/jonas/assemblies/client-jar/pom.xml
+++ /dev/null
@@ -1,85 +0,0 @@
-
-
-
-
- org.ow2.jonas
- assemblies
- 5.3.0-M3-SNAPSHOT
- ../pom.xml
-
- 4.0.0
- org.ow2.jonas.assemblies
- client-jar
- JOnAS :: Assemblies :: Client JAR
-
-
-
-
- maven-dependency-plugin
-
-
- verify
-
- unpack
-
-
-
-
- org.ow2.jonas.assemblies.profiles
- jonas-full
- ${project.version}
- bin
- zip
- ${project.build.directory}
-
-
- true
- true
-
-
-
-
-
- maven-antrun-plugin
-
-
- verify
-
-
-
-
-
-
-
- run
-
-
-
-
-
-
-
diff --git a/jonas/assemblies/examples/pom.xml b/jonas/assemblies/examples/pom.xml
deleted file mode 100644
index a7390aace9e2386f572e1d9d54a98f5df77eda2e..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/pom.xml
+++ /dev/null
@@ -1,38 +0,0 @@
-
-
-
-
- org.ow2.jonas
- assemblies
- 5.3.0-M3-SNAPSHOT
- ../pom.xml
-
- 4.0.0
- org.ow2.jonas.assemblies
- examples
- JOnAS :: Assemblies :: Examples
-
\ No newline at end of file
diff --git a/jonas/assemblies/examples/src/main/resources/examples/build.properties b/jonas/assemblies/examples/src/main/resources/examples/build.properties
deleted file mode 100644
index c95e4e55589c161bf40f57d9c0df723d37c3369d..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/build.properties
+++ /dev/null
@@ -1,37 +0,0 @@
-# ---------------------------------------------------------------------------
-# JOnAS: Java(TM) Open Application Server
-# Copyright (C) 2007 Bull S.A.
-# Contact: jonas-team@ow2.org
-#
-# This library 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 any later version.
-#
-# This library 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 library; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
-# USA
-#
-#
-# ---------------------------------------------------------------------------
-# $Id$
-# ---------------------------------------------------------------------------
-
-# Properties defined in this file could be customized
-
-# options for java compiler
-opt.javac.debug on
-opt.javac.optimize off
-
-# genic args
-#verbose=true
-
-# protocols for Carol (jrmp,iiop,cmi)
-protocols.names=jrmp,iiop
-genicargs=-rmicopts -keep
\ No newline at end of file
diff --git a/jonas/assemblies/examples/src/main/resources/examples/build.xml b/jonas/assemblies/examples/src/main/resources/examples/build.xml
deleted file mode 100644
index bb776adfeda16e8e2adb071ac2c6c5f3dbfa83d4..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/build.xml
+++ /dev/null
@@ -1,51 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/PortConfiguration.txt b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/PortConfiguration.txt
deleted file mode 100644
index 5deb5b340c9a3b53cc1824b3fd5cc9bc115b67c4..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/PortConfiguration.txt
+++ /dev/null
@@ -1,63 +0,0 @@
-
-This file shows a configuration of
-- a cluster of 4 JOnAS instances running on the same machine,
-- a master JOnAS instance to manage the domain, and
-- a db JOnAS instance
-The table below lists a possible configuration of all the ports used by those 6 JOnAS instances.
-In the following configuration we will deploy the entity beans on node3 and node4.
-The Web application is deployed on node1 and node2.
-
- __--- Node1 --- Node3 ---__
-Apache with mod_jk ---__ x __--- DB
- --- Node2 --- Node4 ---
-
- Web Ejb
- Container Container
-
-Note :
-- You have to activate the AJP Connector (tomcat6-server.xml) for node1 and node2
-in order to be able to communicate with the mod_jk module.
-Two different ports (for example 9010 and 9011) must be choosen.
-Configure the mod_jk to use the 2 instances.
-For further information please consult
- http://jonas.objectweb.org/JONAS_5_1_0/doc/doc-en/html/clustering_guide.html
-in the section -WEB clustering with Apache/Tomcat -
-
-- Please note that the database used to store the data of the entity beans has to be
-the same on both nodes where the ejb's are deployed.
-In this example we use the database HSQL mapped to the JNDI name jdbc_1.
-We will use the database started by db node, therefore the url defined in
-rajdbc.HSQL1.url of build-jc.properties, must be conform to the db.port defined in build-db.properties.
-In this example, we have to start the DB node before the node3 and node4.
-
-
-
-FILENAME PROPERTY DB NODE1 NODE2 NODE3 NODE4 MASTER
--------- -------- ----- ----- ----- ----- ----- ------
-
-
-jonas.properties
- jonas.service.db.port 9005 xxx xxx xxx xxx xxx
-
- jonas.service.discovery.source.port 9888 9888 9888 9888 9888 9888
- jonas.service.discovery.greeting.port 9903 9899 9900 9901 9902 9904
-
-tomcat6-server.xml
- :/sampleCluster2
- ex : http://localhost:80/sampleCluster2
-
-4) Stop the cluster:
-
-jcl4sc stop
-
-This allows to stop the cluster.
-
-
-You may type jcl4sc -help to get the usage of the command.
-
-
-Attachments:
--------------
-+ example configurations (in exampleConfig):
- - Jakarta Tomcat 6.x (tomcat6-jk.conf)
- - mod_jk (workers.properties, tomcat6-mod_jk.xml)
-
-
----------------------------
-Good luck!!
-=================================================================================
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/bin-client/clientConfig/carol.properties b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/bin-client/clientConfig/carol.properties
deleted file mode 100644
index c59d0b2b43e19b38df27c8e613066292223210b1..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/bin-client/clientConfig/carol.properties
+++ /dev/null
@@ -1,101 +0,0 @@
-# Copyright (C) 2002-2007 ObjectWeb
-#
-# CAROL: Common Architecture for RMI ObjectWeb Layer
-#
-# This library is developed inside the ObjectWeb Consortium,
-# http://www.ow2.org
-#
-# This library 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 any later version.
-#
-# This library 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 library; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
-# USA
-#
-# --------------------------------------------------------------------------
-# $Id$
-# --------------------------------------------------------------------------
-
-# jonas rmi activation (iiop, irmi, jrmp)
-carol.protocols=jrmp
-
-# RMI IRMI URL
-carol.irmi.url=rmi://localhost:1099
-
-# RMI JRMP URL
-carol.jrmp.url=rmi://localhost:1099
-
-# RMI IIOP URL
-carol.iiop.url=iiop://localhost:1099
-
-######################################################################
-# Advanced Configuration for IRMI
-######################################################################
-# Exported objects will listen on this port for remote method
-# invocations.
-#A value of 0 will cause a random port to be selected.
-# This is the default value.
-# Warning : if the port is set (not 0) with the value 'n', be aware that
-# the port 'n + 1' will be used by the JMX server.
-# So, for the firewall configuration, you have to open the port numbers 'n'
-# and 'n+1'.
-carol.irmi.server.port=0
-
-# Use only a single interface when creating the registry
-# (specified in carol.irmi.url property)
-# Use all interfaces available [default configuration = false]
-carol.irmi.interfaces.bind.single=false
-
-######################################################################
-# Advanced Configuration for JRMP
-######################################################################
-# If true, local call with jrmp are optimized. If you get "ClassCastException
-# with 2 beans in different jars, you should set it at "false".
-carol.jvm.rmi.local.call=false
-
-# If true a local Naming context is used (to be used only with a collocated registry)
-carol.jvm.rmi.local.registry=true
-
-# The value of this port is used to set the port of the objects listener.
-# This allow to use this port for a firewall configuration.
-# If registry and server are on same host, the two ports to open are the following and the registry port.
-# 0 means random port [default configuration = 0]
-carol.jrmp.server.port=0
-
-# Use only a single interface when creating the registry
-# (specified in carol.jrmp.url property)
-# Use all interfaces available [default configuration = false]
-carol.jrmp.interfaces.bind.single=false
-
-
-######################################################################
-# Advanced Configuration for IIOP
-######################################################################
-# The value of this port is used to set the port of the objects listener.
-# This allow to use this port for a firewall configuration.
-# If registry and server are on same host, the two ports to open are the following and the registry port.
-# 0 means random port [default configuration = 0]
-carol.iiop.server.port=0
-
-# The value of this port is used to set the SSL port of the objects listener.
-# Note that this port musn't not be set to 0 as it is used for CsiV2.
-# but this port is used only if SSL mode is enable.
-# So by default, there is no listener on this port
-# [default configuration = not used]
-carol.iiop.server.sslport=2003
-
-# Delegate used by JOnAS for rmi-iiop protocol
-carol.iiop.PortableRemoteObjectClass=org.ow2.jonas.registry.carol.delegate.JacORBPRODelegate
-
-######################################################################
-# Advanced JNDI Configuration
-######################################################################
-carol.jndi.java.naming.factory.url.pkgs=org.ow2.jonas.lib.naming
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/bin-client/clientConfig/cmi-config.xml b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/bin-client/clientConfig/cmi-config.xml
deleted file mode 100644
index 771a2ea092601c429128676491bcf63d9be87eb6..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/bin-client/clientConfig/cmi-config.xml
+++ /dev/null
@@ -1,55 +0,0 @@
-
-
-
-
-
-
-
- rmi://localhost:2032
- rmi://localhost:2043
-
-
-
-
-
-
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/bin-client/clientConfig/traceclient.properties b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/bin-client/clientConfig/traceclient.properties
deleted file mode 100644
index c7bb2c21359c289d2600c50846b5cf44d9daada8..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/bin-client/clientConfig/traceclient.properties
+++ /dev/null
@@ -1,43 +0,0 @@
-# -----------------------------------------------------------------------
-# This is a default configuration file for monolog.
-#
-# Patterns for each handler may include these possible values :
-# %h the thread name
-# %O{1} the Class name (basename only)
-# %M the method name
-# %L the line number
-# %d the date
-# %l the level
-# %m the message itself
-# %n a new line
-#
-# Each logger inherits from its parent for properties not defined.
-# The root logger is "root". It must always be defined.
-#
-# Each logger is associated with a level that can be one of :
-# ERROR | WARN | INFO | DEBUG
-#
-# -> More info on http://www.objectweb.org/monolog/doc.html
-# -----------------------------------------------------------------------
-#
-# Define which wrapper to use (= javaLog)
-# -----------------------------------------------------------------------
-# For Log4j you need to add log4j.jar
-# log.config.classname org.objectweb.util.monolog.wrapper.log4j.MonologLoggerFactory
-log.config.classname org.objectweb.util.monolog.wrapper.javaLog.LoggerFactory
-
-# -----------------------------------------------------------------------
-# tty : console handler
-# -----------------------------------------------------------------------
-handler.tty.type Console
-handler.tty.output System.out
-handler.tty.pattern %O{1}.%M : %m%n
-
-# -----------------------------------------------------------------------
-# logger definitions
-# -----------------------------------------------------------------------
-logger.root.handler.0 tty
-
-logger.root.level ERROR
-#logger.org.ow2.carol.level DEBUG
-#logger.org.ow2.jonas.level DEBUG
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/bin-client/clientException.bat b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/bin-client/clientException.bat
deleted file mode 100755
index 3fa1e30a07f90d6c32faa610e3fa5a78bba64d26..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/bin-client/clientException.bat
+++ /dev/null
@@ -1,4 +0,0 @@
-@echo off
-REM JAVA_OPTS=-Dcmi.conf.url=clientConfig\cmi-config.xml
-REM JAVA_OPTS=-Dcmi.disabled=true
-jclient -cp %JONAS_ROOT%\examples\cluster-j2ee14\output\ejbjars\ejbs.jar org.ow2.jonas.examples.cluster.j2ee14.client.ClientException -carolFile clientConfig\carol.properties -traceFile clientConfig\traceclient.properties
\ No newline at end of file
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/bin-client/clientException.sh b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/bin-client/clientException.sh
deleted file mode 100755
index b730d6890a8231acb245a1b317ed2928dbbe71b6..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/bin-client/clientException.sh
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh
-
-#export JAVA_OPTS=-Dcmi.conf.url=clientConfig/cmi-config.xml
-#export JAVA_OPTS=-Dcmi.disabled=true
-jclient org.ow2.jonas.examples.cluster.j2ee14.client.ClientException -cp $JONAS_ROOT/examples/classes:$JONAS_ROOT/examples/cluster-j2ee14/output/ejbjars/ejbs.jar -carolFile clientConfig/carol.properties -traceFile clientConfig/traceclient.properties
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/bin-client/clientFOSFSB.bat b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/bin-client/clientFOSFSB.bat
deleted file mode 100755
index 233d1dccc480fe22437307fd0222a941bc92c755..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/bin-client/clientFOSFSB.bat
+++ /dev/null
@@ -1,4 +0,0 @@
-@echo off
-REM JAVA_OPTS=-Dcmi.conf.url=clientConfig\cmi-config.xml
-REM JAVA_OPTS=-Dcmi.disabled=true
-jclient -cp %JONAS_ROOT%\examples\cluster-j2ee14\output\ejbjars\ejbs.jar org.ow2.jonas.examples.cluster.j2ee14.client.ClientFOSFSB -carolFile clientConfig\carol.properties -traceFile clientConfig\traceclient.properties
\ No newline at end of file
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/bin-client/clientFOSFSB.sh b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/bin-client/clientFOSFSB.sh
deleted file mode 100755
index 9c362dadf8b3c03be87be18f10e552274dba2f58..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/bin-client/clientFOSFSB.sh
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh
-
-#export JAVA_OPTS=-Dcmi.conf.url=clientConfig/cmi-config.xml
-#export JAVA_OPTS=-Dcmi.disabled=true
-jclient org.ow2.jonas.examples.cluster.j2ee14.client.ClientFOSFSB -cp $JONAS_ROOT/examples/classes:$JONAS_ROOT/examples/cluster-j2ee14/output/ejbjars/ejbs.jar -carolFile clientConfig/carol.properties -traceFile clientConfig/traceclient.properties
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/bin-client/clientLBHome.bat b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/bin-client/clientLBHome.bat
deleted file mode 100755
index eb2393d0a340d16e64f285b92917b67bd2ca180d..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/bin-client/clientLBHome.bat
+++ /dev/null
@@ -1,4 +0,0 @@
-@echo off
-REM JAVA_OPTS=-Dcmi.conf.url=clientConfig\cmi-config.xml
-REM JAVA_OPTS=-Dcmi.disabled=true
-jclient -cp %JONAS_ROOT%\examples\cluster-j2ee14\output\ejbjars\ejbs.jar org.ow2.jonas.examples.cluster.j2ee14.client.ClientLBHome -carolFile clientConfig\carol.properties -traceFile clientConfig\traceclient.properties
\ No newline at end of file
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/bin-client/clientLBHome.sh b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/bin-client/clientLBHome.sh
deleted file mode 100755
index 161f54320a7a1c4bdfbae200a187e015f16d96f2..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/bin-client/clientLBHome.sh
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh
-
-#export JAVA_OPTS=-Dcmi.conf.url=clientConfig/cmi-config.xml
-#export JAVA_OPTS=-Dcmi.disabled=true
-jclient org.ow2.jonas.examples.cluster.j2ee14.client.ClientLBHome -cp $JONAS_ROOT/examples/classes:$JONAS_ROOT/examples/cluster-j2ee14/output/ejbjars/ejbs.jar -carolFile clientConfig/carol.properties -traceFile clientConfig/traceclient.properties
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/bin-client/clientLBLookup.bat b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/bin-client/clientLBLookup.bat
deleted file mode 100755
index ab06007f157b01eb10b8b6f7e3486055ff200ef9..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/bin-client/clientLBLookup.bat
+++ /dev/null
@@ -1,4 +0,0 @@
-@echo off
-REM JAVA_OPTS=-Dcmi.conf.url=clientConfig\cmi-config.xml
-REM JAVA_OPTS=-Dcmi.disabled=true
-jclient -cp %JONAS_ROOT%\examples\cluster-j2ee14\output\ejbjars\ejbs.jar org.ow2.jonas.examples.cluster.j2ee14.client.ClientLBLookup -carolFile clientConfig\carol.properties -traceFile clientConfig\traceclient.properties
\ No newline at end of file
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/bin-client/clientLBLookup.sh b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/bin-client/clientLBLookup.sh
deleted file mode 100755
index 16762c5b693d9f1a9ef96e8442aa514f1d074fd5..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/bin-client/clientLBLookup.sh
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh
-
-#export JAVA_OPTS=-Dcmi.conf.url=clientConfig/cmi-config.xml
-#export JAVA_OPTS=-Dcmi.disabled=true
-jclient org.ow2.jonas.examples.cluster.j2ee14.client.ClientLBLookup -cp $JONAS_ROOT/examples/classes:$JONAS_ROOT/examples/cluster-j2ee14/output/ejbjars/ejbs.jar -carolFile clientConfig/carol.properties -traceFile clientConfig/traceclient.properties
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/bin-client/clientLBRemote.bat b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/bin-client/clientLBRemote.bat
deleted file mode 100755
index 66523a78f5edbce69a921ab357456eea7e02ced6..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/bin-client/clientLBRemote.bat
+++ /dev/null
@@ -1,4 +0,0 @@
-@echo off
-REM JAVA_OPTS=-Dcmi.conf.url=clientConfig\cmi-config.xml
-REM JAVA_OPTS=-Dcmi.disabled=true
-jclient -cp %JONAS_ROOT%\examples\cluster-j2ee14\output\ejbjars\ejbs.jar org.ow2.jonas.examples.cluster.j2ee14.client.ClientLBRemote -carolFile clientConfig\carol.properties -traceFile clientConfig\traceclient.properties
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/bin-client/clientLBRemote.sh b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/bin-client/clientLBRemote.sh
deleted file mode 100755
index 33eb2010619bc7092cdae2d4c9cd0a79bfa1de5a..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/bin-client/clientLBRemote.sh
+++ /dev/null
@@ -1,5 +0,0 @@
-#!/bin/sh
-
-#export JAVA_OPTS=-Dcmi.conf.url=clientConfig/cmi-config.xml
-#export JAVA_OPTS=-Dcmi.disabled=true
-jclient org.ow2.jonas.examples.cluster.j2ee14.client.ClientLBRemote -cp $JONAS_ROOT/examples/classes:$JONAS_ROOT/examples/cluster-j2ee14/output/ejbjars/ejbs.jar -carolFile clientConfig/carol.properties -traceFile clientConfig/traceclient.properties
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/build.properties b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/build.properties
deleted file mode 100644
index eed39a45789c7be4aac8b6b43c83aa6730a539ac..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/build.properties
+++ /dev/null
@@ -1,32 +0,0 @@
-# ---------------------------------------------------------------------------
-# JOnAS: Java(TM) Open Application Server
-# Copyright (C) 1999 Bull S.A.
-# Contact: jonas-team@objectweb.org
-#
-# This library 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 any later version.
-#
-# This library 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 library; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
-# USA
-#
-# Initial developer(s): ____________________________________.
-# Contributor(s): ______________________________________.
-#
-# ---------------------------------------------------------------------------
-# $Id$
-# ---------------------------------------------------------------------------
-
-# Properties defined in this file could be customized
-
-# protocols for Carol (jrmp,iiop,cmi)
-protocols.names=jrmp,iiop
-required.services=cmi,ha
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/build.xml b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/build.xml
deleted file mode 100644
index d6ba022bd0b6f2964c76e16a2ef89d9cd1a89692..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/build.xml
+++ /dev/null
@@ -1,247 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/etc/resources/WEB-INF/jonas-web.xml b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/etc/resources/WEB-INF/jonas-web.xml
deleted file mode 100644
index 74e0d491050a7a7bffaedbcc3a8d56173e1da45c..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/etc/resources/WEB-INF/jonas-web.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
-
- ejb/MyEjb1Home
- MyEjb1Home
-
-
-
-
- ejb/MyStatefulHome
- MyStatefulHome
-
-
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/etc/resources/WEB-INF/web.xml b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/etc/resources/WEB-INF/web.xml
deleted file mode 100644
index b760d7515cb35b9f669a7f4740947d7bcd8103a1..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/etc/resources/WEB-INF/web.xml
+++ /dev/null
@@ -1,71 +0,0 @@
-
-
-
-
-
-
-
- sessionServlet
- org.ow2.jonas.examples.cluster.j2ee14.servlets.SessionServlet
-
-
-
- releaseSessionServlet
- org.ow2.jonas.examples.cluster.j2ee14.servlets.ReleaseServlet
-
-
-
- checkSessionServlet
- org.ow2.jonas.examples.cluster.j2ee14.servlets.CheckServlet
-
-
-
- exceptionServlet
- org.ow2.jonas.examples.cluster.j2ee14.servlets.ExceptionServlet
-
-
-
- exceptionServlet
- /servlet/exception
-
-
-
- sessionServlet
- /servlet/session
-
-
-
- releaseSessionServlet
- /servlet/release
-
-
-
- checkSessionServlet
- /servlet/check
-
-
-
- /index.html
-
-
-
- ejb/MyEjb1Home
- Session
- org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2.MyEjb1Home
- org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2.MyEjb1
-
-
-
-
- ejb/MyStatefulHome
- Session
- org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2.MyStatefulHome
- org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2.MyStateful
-
-
-
-
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/etc/resources/policy/round-robin-policy.xml b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/etc/resources/policy/round-robin-policy.xml
deleted file mode 100644
index bd30fbd15f6c44d506a3c3702eb0248daa9295fd..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/etc/resources/policy/round-robin-policy.xml
+++ /dev/null
@@ -1,35 +0,0 @@
-
-
-
-
-
- org.ow2.cmi.lb.policy.RoundRobin
-
-
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/etc/resources/web/index.html b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/etc/resources/web/index.html
deleted file mode 100644
index 29837683e35dc0691cc1dcb837c3a5037a25fa88..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/etc/resources/web/index.html
+++ /dev/null
@@ -1,27 +0,0 @@
-
-
-
-
- sampleCluster2
-
-
-
-
Test the exception propagation from the server side to the client side : click here
-(exception servlet)
-
-
-
-
-
-
- Sample is OK.
-
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/etc/resources/web/jsp/checkRsp.jsp b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/etc/resources/web/jsp/checkRsp.jsp
deleted file mode 100644
index 33b3d2578ad0e8ce2c25e98b2fcc4283114c6aa4..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/etc/resources/web/jsp/checkRsp.jsp
+++ /dev/null
@@ -1,22 +0,0 @@
-<%@ page session="false" %>
-<%
-Cookie[] cookies = request.getCookies();
-HttpSession session = request.getSession(false);
-%>
-
-
Check session
-
-
check Servlet output
-<%= (session != null ? "
Logged in.
Session ID: " + session.getId() + "
" : "
No session.
") %>
-<%
- if ( cookies != null)
- for (int i=0; i < cookies.length;i++)
- out.println(cookies[i].getName()+ ": " + cookies[i].getValue() + " ");
-%>
- <%=request.getAttribute("sessionCheckInfo")%>
->go to session,
-<% if (session != null) out.println("logout, ");%>
->check session,
->home.
- Sample is OK.
-
\ No newline at end of file
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/etc/resources/web/jsp/exceptionRsp.jsp b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/etc/resources/web/jsp/exceptionRsp.jsp
deleted file mode 100644
index 7b41603aa4ec39f088fc93259cf528ead306e8a7..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/etc/resources/web/jsp/exceptionRsp.jsp
+++ /dev/null
@@ -1,13 +0,0 @@
-<%@ page session="false" %>
-
-
-<%
-if (cookies != null) {
- for (int i=0; i < cookies.length;i++)
- out.println(cookies[i].getName()+ ": " + cookies[i].getValue() + " ");
- out.println(" If present, the JSESSIONID cookie will be obsoleted. ");
-} else {
- out.println("None.");
-}
-%>
-
-
->go to session,
->check session,
->home.
- Sample is OK.
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/etc/resources/web/jsp/sessionRsp.jsp b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/etc/resources/web/jsp/sessionRsp.jsp
deleted file mode 100644
index b89e30857399e5c5e07154f5a6a0c7719956f8e4..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/etc/resources/web/jsp/sessionRsp.jsp
+++ /dev/null
@@ -1,50 +0,0 @@
-<%@ page import="java.util.Enumeration" %>
-<%@ page import="java.util.Date" %>
-<%@ page import="javax.ejb.Handle" %>
-<%@ page import="org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2.*" %>
-<%@ page import="javax.rmi.PortableRemoteObject" %>
-<%
- Date dc = new Date(session.getCreationTime());
- Date da = new Date(session.getLastAccessedTime());
-%>
-
SessionServlet Output
-
-
SessionServlet Output
-
getRequestURL <%=request.getRequestURL()%>
- for the <%=session.getAttribute("sessiontest.counter")%> times.
-from <%=request.getRemoteAddr()%>(user is <%=request.getRemoteUser()%>)
-To server <%=request.getServerName()%> on port <%=request.getServerPort()%>.
-
-
Request path:
-Servlet executed on JOnAS instance (<%=request.getAttribute("jonas.WEB.served.by")%>)
-Stateless EJB executed on JOnAS instance (<%=request.getAttribute("jonas.EJB.served.by")%>)
-
-
-Sample is OK.
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/etc/xml/ejb-jar.xml b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/etc/xml/ejb-jar.xml
deleted file mode 100644
index 85203bcc0979c111050733ee522dbf65df3cfdfe..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/etc/xml/ejb-jar.xml
+++ /dev/null
@@ -1,136 +0,0 @@
-
-
-
-
- Describe here the content of this file
- MyEjb1
-
-
-
-
- Describe here the session bean MyEjb1
-
- MyEjb1/MyEjb1SLR
- MyEjb1SLR
- org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2.MyEjb1Home
- org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2.MyEjb1
-
- org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2.MyEjb1SLR
-
- Stateless
- Container
-
-
-
-
- Describe here the session bean MyStateful
-
- ejbs/MyStatefulSFR
- MyStatefulSFR
- org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2.MyStatefulHome
- org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2.MyStateful
-
- org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2.MyStatefulSFR
-
- Stateful
- Container
-
-
-
-
- Describe here the session bean MyStateful
-
- ejbs/MyStatefulInner
- MyStatefulInner
-
- org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2.MyStatefulInnerLocalHome
-
-
- org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2.MyStatefulInnerLocal
-
-
- org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2.MyStatefulInner
-
- Stateful
- Container
-
-
-
- Describe here the entity bean
-
- MyEntitySLR
-
- org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2.MyEntityHome
-
-
- org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2.MyEntityRemote
-
-
- org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2.MyEntityLocalHome
-
-
- org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2.MyEntityLocal
-
-
- org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2.MyEntitySLR
-
- Container
- java.lang.Object
- false
- 2.x
- ClusterSchema
-
- number
-
-
- jOnASName
-
-
-
-
-
-
-
-
-
-
-
-
-
- MyEjb1SLR
- *
-
- Required
-
-
-
-
- MyStatefulSFR
- *
-
- Required
-
-
-
-
- MyStatefulInner
- *
-
- Required
-
-
-
-
- MyEntitySLR
- *
-
- Required
-
-
-
-
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/etc/xml/jonas-ejb-jar.ha.xml b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/etc/xml/jonas-ejb-jar.ha.xml
deleted file mode 100644
index b8bb83ad2c4fadf78ae6dc24d6aaec8b6ed6271e..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/etc/xml/jonas-ejb-jar.ha.xml
+++ /dev/null
@@ -1,86 +0,0 @@
-
-
-
-
-
-
- MyEjb1SLR
- MyEjb1Home
- 3
- true
-
- cluster-j2ee14
- org.ow2.cmi.lb.policy.RoundRobin
- org.ow2.cmi.lb.strategy.LocalPreference
-
-
-
-
- true
-
-
- java.util.LinkedList
- java.util.ArrayList
-
-
- http://carol.ow2.org
-
-
-
- 10
- 15
- 2000
-
-
-
-
-
- MyStatefulSFR
- MyStatefulHome
- true
-
- cluster-j2ee14
- org.ow2.cmi.lb.policy.RoundRobin
- org.ow2.cmi.lb.strategy.LocalPreference
-
- 10
- 15
- 2000
-
-
- isModified
-
-
-
- MyStatefulInner
- MyStatefulInnerHome
- true
- isModified
-
-
-
- MyEntitySLR
- MyEntityHome
- true
-
- cluster-j2ee14
- org.ow2.cmi.lb.policy.RoundRobin
- org.ow2.cmi.lb.strategy.LocalPreference
-
- 10
- 15
- 2000
-
-
- true
-
- jdbc_1
-
- database
-
-
-
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/etc/xml/jonas-ejb-jar.lb.xml b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/etc/xml/jonas-ejb-jar.lb.xml
deleted file mode 100644
index 6a077c86791a5df4189b52a8aee90396ddedc66f..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/etc/xml/jonas-ejb-jar.lb.xml
+++ /dev/null
@@ -1,96 +0,0 @@
-
-
-
-
-
-
- MyEjb1SLR
- MyEjb1Home
- 3
-
- cluster-j2ee14
- org.ow2.cmi.lb.policy.RoundRobin
- org.ow2.cmi.lb.strategy.LocalPreference
-
-
-
-
- true
-
-
- java.util.LinkedList
- java.util.ArrayList
-
-
- http://carol.ow2.org
-
-
-
- 10
- 15
- 2000
-
-
-
-
-
- MyStatefulSFR
- MyStatefulHome
-
- cluster-j2ee14
- org.ow2.cmi.lb.policy.RoundRobin
- org.ow2.cmi.lb.strategy.LocalPreference
-
-
-
-
- true
-
-
- java.util.LinkedList
- java.util.ArrayList
-
-
- http://carol.ow2.org
-
-
-
- 10
- 15
- 2000
-
-
- isModified
-
-
-
- MyStatefulInner
- MyStatefulInnerHome
- isModified
-
-
-
- MyEntitySLR
- MyEntityHome
-
- cluster-j2ee14
- org.ow2.cmi.lb.policy.RoundRobin
- org.ow2.cmi.lb.strategy.LocalPreference
-
- 10
- 15
- 2000
-
-
- true
-
- jdbc_1
-
- database
-
-
-
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/etc/xml/jonas-ejb-jar.xml b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/etc/xml/jonas-ejb-jar.xml
deleted file mode 100644
index 6a077c86791a5df4189b52a8aee90396ddedc66f..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/etc/xml/jonas-ejb-jar.xml
+++ /dev/null
@@ -1,96 +0,0 @@
-
-
-
-
-
-
- MyEjb1SLR
- MyEjb1Home
- 3
-
- cluster-j2ee14
- org.ow2.cmi.lb.policy.RoundRobin
- org.ow2.cmi.lb.strategy.LocalPreference
-
-
-
-
- true
-
-
- java.util.LinkedList
- java.util.ArrayList
-
-
- http://carol.ow2.org
-
-
-
- 10
- 15
- 2000
-
-
-
-
-
- MyStatefulSFR
- MyStatefulHome
-
- cluster-j2ee14
- org.ow2.cmi.lb.policy.RoundRobin
- org.ow2.cmi.lb.strategy.LocalPreference
-
-
-
-
- true
-
-
- java.util.LinkedList
- java.util.ArrayList
-
-
- http://carol.ow2.org
-
-
-
- 10
- 15
- 2000
-
-
- isModified
-
-
-
- MyStatefulInner
- MyStatefulInnerHome
- isModified
-
-
-
- MyEntitySLR
- MyEntityHome
-
- cluster-j2ee14
- org.ow2.cmi.lb.policy.RoundRobin
- org.ow2.cmi.lb.strategy.LocalPreference
-
- 10
- 15
- 2000
-
-
- true
-
- jdbc_1
-
- database
-
-
-
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/etc/xml/transaction/ejb-jar.xml b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/etc/xml/transaction/ejb-jar.xml
deleted file mode 100644
index 9c34ef41b2813d3bbdf4fd4538c7587ebb9f3f37..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/etc/xml/transaction/ejb-jar.xml
+++ /dev/null
@@ -1,60 +0,0 @@
-
-
-
-
- Describe here the content of this file
- HaTransaction
-
-
-
- Describe here the entity bean
-
- HaTransactionSLR
-
- org.ow2.jonas.examples.cluster.j2ee14.beans.hatransactions.HaTransactionHome
-
-
- org.ow2.jonas.examples.cluster.j2ee14.beans.hatransactions.HaTransactionRemote
-
-
- org.ow2.jonas.examples.cluster.j2ee14.beans.hatransactions.HaTransactionLocalHome
-
-
- org.ow2.jonas.examples.cluster.j2ee14.beans.hatransactions.HaTransactionLocal
-
-
- org.ow2.jonas.examples.cluster.j2ee14.beans.hatransactions.HaTransactionSLR
-
- Container
- java.lang.String
- false
- 2.x
- HaTransaction
-
- txid
-
- txid
-
-
-
-
-
-
-
-
-
-
-
- HaTransactionSLR
- *
-
- Required
-
-
-
-
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/etc/xml/transaction/jonas-ejb-jar.xml b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/etc/xml/transaction/jonas-ejb-jar.xml
deleted file mode 100644
index e787a66820baa88c5fdb57851a9cd4603d2f21c2..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/etc/xml/transaction/jonas-ejb-jar.xml
+++ /dev/null
@@ -1,37 +0,0 @@
-
-
-
-
-
-
- HaTransactionSLR
- HaTransactionHome
- false
- true
-
- cluster-j2ee14
- org.ow2.cmi.lb.policy.RoundRobin
- org.ow2.cmi.lb.strategy.LocalPreference
-
- 10
- 15
- 2000
-
-
-
- jdbc_1
- ha_transactions
-
- txid
- txid
- varchar(60)
-
-
- database
-
-
-
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/example-config/tomcat6-jk.conf b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/example-config/tomcat6-jk.conf
deleted file mode 100644
index 5c3e02fdf3fd7c9c730f94a921d799fd9885124f..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/example-config/tomcat6-jk.conf
+++ /dev/null
@@ -1,23 +0,0 @@
-
-LoadModule jk_module modules/mod_jk.so
-# Location of the worker file
-JkWorkersFile conf/jk\workers.properties
-# Location of the log file
-JkLogFile conf/jk\mod_jk.log
-# Log level : debug, info, error or emerg
-JkLogLevel emerg
-# Shared Memory Filename ( Only for Unix platform ) required by loadbalancer
-JkShmFile conf/jk\jk.shm
-# Assign specific URL to Tomcat workers
-JkMount /sampleCluster2 loadbalancer
-JkMount /sampleCluster2/* loadbalancer
-# A mount point to the status worker
-JkMount /jkmanager jkstatus
-JkMount /jkmanager/* jkstatus
-# Enable the Jk manager access only from localhost
-
- JkMount jkstatus
- Order deny,allow
- Deny from all
- Allow from 127.0.0.1
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/example-config/tomcat6-mod_jk.xml b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/example-config/tomcat6-mod_jk.xml
deleted file mode 100644
index c1060a8ca7c6ede6ec40a1c750977a4b658b48c0..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/example-config/tomcat6-mod_jk.xml
+++ /dev/null
@@ -1,184 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/example-config/workers.properties b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/example-config/workers.properties
deleted file mode 100644
index b757fa81eb3315b801183cec7d8675e4185e3fd3..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/example-config/workers.properties
+++ /dev/null
@@ -1,43 +0,0 @@
-
-# -----------------------
-# List the workers name
-# -----------------------
-worker.list=loadbalancer,jkstatus
-# The worker1, and worker2 should not appear in the worker.list property!
-# As they are member of load balancer
-# -----------------------
-# worker1
-# -----------------------
-worker.worker1.port=9010
-worker.worker1.host=localhost
-worker.worker1.type=ajp13
-# Load balance factor
-worker.worker1.lbfactor=1
-# Define prefered failover node for worker1
-worker.worker1.redirect=worker2
-# Disable worker1 for all requests except failover
-#worker.worker1.disabled=True
-
-# -----------------------
-# worker2
-# -----------------------
-worker.worker2.port=9011
-worker.worker2.host=localhost
-worker.worker2.type=ajp13
-# Load balance factor
-worker.worker2.lbfactor=1
-# Define prefered failover node for worker2
-worker.worker2.redirect=worker1
-# Disable worker2 for all requests except failover
-#worker.worker2.disabled=True
-
-# -----------------------
-# Load Balancer worker
-# -----------------------
-worker.loadbalancer.type=lb
-worker.loadbalancer.balance_workers=worker1,worker2
-worker.loadbalancer.sticky_session=false
-# -----------------------
-# jkstatus worker
-# -----------------------
-worker.jkstatus.type=status
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/application.xml b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/application.xml
deleted file mode 100644
index bbe4092921aa87f351a09bc386c0f111e2d5528e..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/application.xml
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
-
- clusterapp-ear
- J2EE Application for a JOnAS Cluster
-
-
- ejbs.jar
-
-
-
-
- sampleCluster2.war
- sampleCluster2
-
-
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/applicationHA.xml b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/applicationHA.xml
deleted file mode 100644
index 685fa77536058e2b8d3898a8924098e174f596df..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/applicationHA.xml
+++ /dev/null
@@ -1,11 +0,0 @@
-
-
-
-
- hatransactions-ear
- J2EE Application for a JOnAS Cluster
-
-
- ejbsHA.jar
-
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/hatransactions/HaTransactionHome.java b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/hatransactions/HaTransactionHome.java
deleted file mode 100644
index 331c0abf7bd0a8b480cf3e4af5a1cc8b73cdec82..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/hatransactions/HaTransactionHome.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2005-2006 Bull S.A.S
- * Contact: jonas-team@objectweb.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * Initial developer(s):
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-package org.ow2.jonas.examples.cluster.j2ee14.beans.hatransactions;
-
-/**
- * Local interface for the entity bean
- * @author goebelg
- */
-public interface HaTransactionHome extends javax.ejb.EJBHome {
-
- /**
- * Creation of the entity bean
- * @param txid the primary key
- * @return the entity bean
- * @throws javax.ejb.CreateException if creation fails
- */
- HaTransactionRemote create(String txid) throws javax.ejb.CreateException, java.rmi.RemoteException;
-
- /**
- * Search for a record with the primary key. Indicate the time of the creation as pk.
- * @param primaryKey the primary key to look for
- * @return the entity bean
- * @throws javax.ejb.FinderException if not existing
- */
- HaTransactionRemote findByPrimaryKey(Object primaryKey) throws javax.ejb.FinderException, java.rmi.RemoteException;
-
-}
\ No newline at end of file
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/hatransactions/HaTransactionLocal.java b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/hatransactions/HaTransactionLocal.java
deleted file mode 100644
index 0e8d7e109245552e4111204d26ff9d023f0fac8c..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/hatransactions/HaTransactionLocal.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2005-2006 Bull S.A.S
- * Contact: jonas-team@objectweb.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * Initial developer(s):
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-package org.ow2.jonas.examples.cluster.j2ee14.beans.hatransactions;
-
-/**
- * @author goebelg
- * Local interface for the entity bean
- */
-public interface HaTransactionLocal extends javax.ejb.EJBLocalObject {
-
- /**
- * Get the date formatted as string.
- * @return the date as string
- */
- String getTxid();
-
- /**
- * Set the date formatted as string
- * @param txid the date as string
- */
- void setTxid(String txid);
-
-}
\ No newline at end of file
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/hatransactions/HaTransactionLocalHome.java b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/hatransactions/HaTransactionLocalHome.java
deleted file mode 100644
index 3f5996c22254f4c52a0579c4abe1ee104d218278..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/hatransactions/HaTransactionLocalHome.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2005-2006 Bull S.A.S
- * Contact: jonas-team@objectweb.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * Initial developer(s):
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-package org.ow2.jonas.examples.cluster.j2ee14.beans.hatransactions;
-
-/**
- * Local interface for the entity bean
- * @author goebelg
- */
-public interface HaTransactionLocalHome extends javax.ejb.EJBLocalHome {
-
- /**
- * Creation of the entity bean
- * @param number the primary key
- * @return the entity bean
- * @throws javax.ejb.CreateException if creation fails
- */
- HaTransactionLocal create(String number) throws javax.ejb.CreateException;
-
- /**
- * Search for a record with the primary key. Indicate the time of the creation as pk.
- * @param primaryKey the primary key to look for
- * @return the entity bean
- * @throws javax.ejb.FinderException if not existing
- */
- HaTransactionLocal findByPrimaryKey(Object primaryKey) throws javax.ejb.FinderException;
-
-}
\ No newline at end of file
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/hatransactions/HaTransactionRemote.java b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/hatransactions/HaTransactionRemote.java
deleted file mode 100644
index 7ece262a72e628751aef0f063e952ffd8a1fb530..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/hatransactions/HaTransactionRemote.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2005-2006 Bull S.A.S
- * Contact: jonas-team@objectweb.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * Initial developer(s):
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-package org.ow2.jonas.examples.cluster.j2ee14.beans.hatransactions;
-
-import java.rmi.RemoteException;
-
-/**
- * @author goebelg
- * Local interface for the entity bean
- */
-public interface HaTransactionRemote extends javax.ejb.EJBObject {
-
- /**
- * Get the date formatted as string.
- * @return the date as string
- */
- String getTxid() throws RemoteException;
-
- /**
- * Set the date formatted as string
- * @param txid the date as string
- */
- void setTxid(String txid) throws RemoteException;
-}
\ No newline at end of file
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/hatransactions/HaTransactionSLR.java b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/hatransactions/HaTransactionSLR.java
deleted file mode 100644
index 9711d23c0d623d3bc8931ed8a64c0d47b0077244..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/hatransactions/HaTransactionSLR.java
+++ /dev/null
@@ -1,109 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2005-2006 Bull S.A.S
- * Contact: jonas-team@objectweb.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * Initial developer(s):
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-package org.ow2.jonas.examples.cluster.j2ee14.beans.hatransactions;
-
-import javax.ejb.CreateException;
-import javax.ejb.EntityContext;
-
-/**
- * Implementation of the entity bean
- * @author goebelg
- */
-public abstract class HaTransactionSLR implements javax.ejb.EntityBean {
-
- /**
- * Creation of the entity bean
- * @param txid the primary key -> date.getTime() as string of creation
- * @return the entity bean
- * @throws CreateException CreateException
- */
- public Object ejbCreate(String txid) throws CreateException {
- setTxid(txid);
- return null;
- }
-
- /**
- * Post create methode invoked after create methode
- * @param number the pk of the entity bean
- */
- public void ejbPostCreate(String txid) {
- }
-
- /**
- * ejbLoad
- */
- public void ejbLoad() {
- }
-
- /**
- * ejbStore
- */
- public void ejbStore() {
- }
-
- /**
- * Activation of the ejb
- */
- public void ejbActivate() {
- }
-
- /**
- * Passivate the ejb
- */
- public void ejbPassivate() {
- }
-
- /**
- * Removes the ejb
- */
- public void ejbRemove() {
- }
-
- /**
- * Set the EntityContext
- * @param ec entity context
- */
- public void setEntityContext(EntityContext ec) {
- }
-
- /**
- * Unsets the EntityContext
- */
- public void unsetEntityContext() {
- }
-
- /**
- * Returns the txid
- * @return The txid
- */
- public abstract String getTxid();
-
- /**
- * Sets the txid
- * @param txid The txid
- */
- public abstract void setTxid(String txid);
-}
\ No newline at end of file
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/samplecluster2/MyEjb1.java b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/samplecluster2/MyEjb1.java
deleted file mode 100644
index ea4e49030d0828a2936530e610b1fa4ea7c3c1cf..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/samplecluster2/MyEjb1.java
+++ /dev/null
@@ -1,67 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2005-2006 Bull S.A.S
- * Contact: jonas-team@objectweb.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * Initial developer(s):
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-
-package org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2;
-
-import java.rmi.RemoteException;
-import java.util.Properties;
-
-import javax.ejb.EJBObject;
-
-/**
- * MyEjb1 remote interface
- */
-public interface MyEjb1 extends EJBObject {
-
- /**
- * Access a property stored in the JOnAS instance executing the EJB
- * container.
- * @param prop Name of the property
- * @return The value of the property
- * @throws RemoteException if invocation failed
- */
- String getProperty(String prop) throws RemoteException;
-
- /**
- * Retreive some information of the JOnAS instance executing the EJB
- * container The names of the properties are : EJB server, EJB id, EJB
- * instance calls, EJB total calls - EJB server : name of the JOnAS instance -
- * EJB id : toString() of the MyEjb1 - EJB instance calls : number of calls
- * to this EJB instance - EJB total calls : number of calls to this EJB for
- * all instance of class MyEjb1
- * @return The Properties
- * @throws RemoteException if invocation failed
- */
- Properties getInfoProps() throws RemoteException;
-
- /**
- * Throw a MyException
- * @throws RemoteException remote exception
- * @throws MyException application exception
- */
- void throwMyException() throws RemoteException, MyException;
-
-}
\ No newline at end of file
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/samplecluster2/MyEjb1Home.java b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/samplecluster2/MyEjb1Home.java
deleted file mode 100644
index a89b9f8bcc4040f03e305b1f77ec656eb2531f27..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/samplecluster2/MyEjb1Home.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2005-2006 Bull S.A.S
- * Contact: jonas-team@objectweb.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * Initial developer(s):
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-
-package org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2;
-
-import java.rmi.RemoteException;
-
-import javax.ejb.CreateException;
-import javax.ejb.EJBHome;
-
-/**
- * Home interface for the bean MyEjb1
- */
-public interface MyEjb1Home extends EJBHome {
-
- /**
- * Used to create a new EJB
- * @return the new EJB
- * @throws CreateException if creation failed
- * @throws RemoteException if invocation failed
- */
- MyEjb1 create() throws CreateException, RemoteException;
-}
\ No newline at end of file
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/samplecluster2/MyEjb1SLR.java b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/samplecluster2/MyEjb1SLR.java
deleted file mode 100644
index 423ff90ffa9ad923da8667db330dd06a7d366be7..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/samplecluster2/MyEjb1SLR.java
+++ /dev/null
@@ -1,227 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2005-2006 Bull S.A.S
- * Contact: jonas-team@objectweb.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-
-package org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2;
-
-import java.rmi.RemoteException;
-import java.util.Date;
-import java.util.Properties;
-
-import javax.ejb.CreateException;
-import javax.ejb.SessionBean;
-import javax.ejb.SessionContext;
-import javax.naming.InitialContext;
-import javax.naming.NamingException;
-
-import org.objectweb.util.monolog.api.BasicLevel;
-import org.objectweb.util.monolog.api.Logger;
-import org.ow2.jonas.lib.bootstrap.JProp;
-import org.ow2.jonas.lib.util.Log;
-
-/**
- * @author goebelg
- * Implementation of a stateless session bean
- */
-public class MyEjb1SLR implements SessionBean {
-
- /**
- *
- */
- private static final long serialVersionUID = 1L;
-
-
- /**
- * After how many invokes an entity bean is created
- */
- private static final int DIV = 10;
- /**
- * Sets the session Context.
- * @param ctx the session context
- */
- public void setSessionContext(final SessionContext ctx) {
- if (logger == null) {
- logger = Log.getLogger("org.ow2.jonas_tests");
- }
- logger.log(BasicLevel.DEBUG, "");
- }
-
- /**
- * Removes the ejb.
- */
- public void ejbRemove() {
- logger.log(BasicLevel.DEBUG, "Remove the Bean");
- }
-
- /**
- * Creates the ejb.
- * @throws Exception any.
- */
- public void ejbCreate() throws RemoteException {
-
- logger.log(BasicLevel.DEBUG, "");
- jonasInstanceName = "unknown";
-
- try {
- JProp jp = JProp.getInstance();
- jonasInstanceName = jp.getValue("jonas.name");
- } catch (Exception e) {
- logger.log(BasicLevel.FATAL, "Error while creating MyEjb1SLR : " + e.getMessage());
- throw new RemoteException("Error while creating MyEjb1SLR", e);
- }
- logger.log(BasicLevel.DEBUG, "ejbCreate()->" + this.toString());
- }
-
- /**
- * Passivate of the ejb.
- */
- public void ejbPassivate() {
- logger.log(BasicLevel.DEBUG, "");
- }
-
- /**
- * Activation of the ejb.
- */
- public void ejbActivate() {
- logger.log(BasicLevel.DEBUG, "");
- }
-
- /**
- * Access a property stored in the JOnAS instance executing the EJB
- * container.
- * @param prop Name of the property
- * @return The value of the property
- * @throws Exception any.
- */
- public String getProperty(final String prop) throws RemoteException {
- String s = "unknown";
- try {
- JProp jp = JProp.getInstance();
- s = jp.getValue(prop);
- } catch (Exception e) {
- logger.log(BasicLevel.FATAL, "Error while getProperty : " + e.getMessage());
- throw new RemoteException("Error in getProperty ", e);
- }
- return s;
- }
-
- /**
- * Throw a MyException.
- * @throws MyException application exception
- */
- public void throwMyException() throws MyException {
- throw new MyException("From EjbSLR1(" + jonasInstanceName + ")");
- }
-
- /**
- * Retreive some information of the JOnAS instance executing the EJB
- * container The names of the properties are : EJB server, EJB id, EJB
- * instance calls, EJB total calls - EJB server : name of the JOnAS instance -
- * EJB id : toString() of the MyEjb1 - EJB instance calls : number of calls
- * to this EJB instance - EJB total calls : number of calls to this EJB for
- * all instance of class MyEjb1
- * @return The Properties
- * @throws RemoteException any.
- */
- public Properties getInfoProps() throws RemoteException {
- updateStatistics();
- Properties p = new Properties();
- p.setProperty("EJB server", jonasInstanceName);
- p.setProperty("EJB id", this.toString());
- p.setProperty("EJB total calls", (new Integer(allInstancesTotalCallsCount)).toString());
- p.setProperty("EJB server entity created", entityJonasInstanceName);
- return p;
- }
-
- /**
- * Updates the properties described above
- * @throws RemoteException any.
- */
- private void updateStatistics() throws RemoteException {
- allInstancesTotalCallsCount++;
-
- // create an entity bean every 10 times
- if ((allInstancesTotalCallsCount % DIV) == 0) {
- // creating a new entity bean
- logger.log(BasicLevel.INFO, "Trying to create the entity");
- Date date = new Date();
- MyEntityLocal entity = createEntity(Long.toString(date.getTime()));
- logger.log(BasicLevel.INFO, "Finished to create the entity");
- entityJonasInstanceName = entity.getJOnASName();
- } else {
- entityJonasInstanceName = "No entity Bean created";
- }
-
- logger.log(BasicLevel.INFO, "JOnAS=" + jonasInstanceName + " ; ejb=" + this.toString() + " ; total calls="
- + allInstancesTotalCallsCount + " ; entity created on=" + entityJonasInstanceName);
- }
-
- /**
- * Creates a new Entity bean with the time as parameter
- * @param valeur The current time as string
- * @return A new Entity Bean
- * @throws RemoteException any.
- */
- private MyEntityLocal createEntity(final String valeur) throws RemoteException {
- InitialContext cntx;
- MyEntityLocal result = null;
- try {
- cntx = new InitialContext();
- MyEntityLocalHome entityHome = (MyEntityLocalHome) cntx.lookup("MyEntityHome_L");
- result = entityHome.create(valeur);
- } catch (NamingException e) {
- logger.log(BasicLevel.FATAL, "Naming exception : " + e.getMessage());
- throw new RemoteException("Naming exception : ", e);
- } catch (CreateException e) {
- logger.log(BasicLevel.FATAL, "Create exception : " + e.getMessage());
- throw new RemoteException( "Create exception : ", e);
- }
- return result;
- }
-
- /**
- * The logger
- */
- private static Logger logger = null;
-
-
- /**
- * the node name of the jonas instance where an
- * entity bean has bean created
- */
- private String entityJonasInstanceName = "unknown";
-
- /**
- * the node name of the jonas instance where the
- * session bean is executed
- */
- private String jonasInstanceName = "unknown";
-
- /**
- * counts all the instances created of this class in
- * that JVM
- */
- private static int allInstancesTotalCallsCount = 0;
-}
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/samplecluster2/MyEntityHome.java b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/samplecluster2/MyEntityHome.java
deleted file mode 100644
index 20274b6d2a2e30c384c11745f7ddecc935fd3e2d..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/samplecluster2/MyEntityHome.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2005-2006 Bull S.A.S
- * Contact: jonas-team@objectweb.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * Initial developer(s):
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-package org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2;
-
-/**
- * Local interface for the entity bean
- * @author goebelg
- */
-public interface MyEntityHome extends javax.ejb.EJBHome {
-
- /**
- * Creation of the entity bean
- * @param number the primary key -> date.getTime() as string of creation
- * @return the entity bean
- * @throws javax.ejb.CreateException if creation fails
- */
- MyEntityRemote create(String number) throws javax.ejb.CreateException, java.rmi.RemoteException;
-
- /**
- * Search for a record with the primary key. Indicate the time of the creation as pk.
- * @param primaryKey the primary key to look for
- * @return the entity bean
- * @throws javax.ejb.FinderException if not existing
- */
- MyEntityRemote findByPrimaryKey(Object primaryKey) throws javax.ejb.FinderException, java.rmi.RemoteException;
-
-}
\ No newline at end of file
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/samplecluster2/MyEntityLocal.java b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/samplecluster2/MyEntityLocal.java
deleted file mode 100644
index 57c31c3272b3405a0ac69525904731e983d09562..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/samplecluster2/MyEntityLocal.java
+++ /dev/null
@@ -1,57 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2005-2006 Bull S.A.S
- * Contact: jonas-team@objectweb.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * Initial developer(s):
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-package org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2;
-
-/**
- * @author goebelg
- * Local interface for the entity bean
- */
-public interface MyEntityLocal extends javax.ejb.EJBLocalObject {
-
- /**
- * Get the date formatted as string.
- * @return the date as string
- */
- String getNumber();
-
- /**
- * Set the date formatted as string
- * @param number the date as string
- */
- void setNumber(String number);
-
- /**
- * The JOnAS node name where the entity bean is created
- * @return JOnAS node name
- */
- String getJOnASName();
-
- /**
- * Get the JOnAS node name of the entity bean
- * @param number JOnAS node name
- */
- void setJOnASName(String name);
-}
\ No newline at end of file
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/samplecluster2/MyEntityLocalHome.java b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/samplecluster2/MyEntityLocalHome.java
deleted file mode 100644
index 5c27e0e38c0e65b02c0f9d2ea59c4d7f9ab34614..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/samplecluster2/MyEntityLocalHome.java
+++ /dev/null
@@ -1,50 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2005-2006 Bull S.A.S
- * Contact: jonas-team@objectweb.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * Initial developer(s):
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-package org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2;
-
-/**
- * Local interface for the entity bean
- * @author goebelg
- */
-public interface MyEntityLocalHome extends javax.ejb.EJBLocalHome {
-
- /**
- * Creation of the entity bean
- * @param number the primary key -> date.getTime() as string of creation
- * @return the entity bean
- * @throws javax.ejb.CreateException if creation fails
- */
- MyEntityLocal create(String number) throws javax.ejb.CreateException;
-
- /**
- * Search for a record with the primary key. Indicate the time of the creation as pk.
- * @param primaryKey the primary key to look for
- * @return the entity bean
- * @throws javax.ejb.FinderException if not existing
- */
- MyEntityLocal findByPrimaryKey(Object primaryKey) throws javax.ejb.FinderException;
-
-}
\ No newline at end of file
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/samplecluster2/MyEntityRemote.java b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/samplecluster2/MyEntityRemote.java
deleted file mode 100644
index 10dc9d59c8d201f94deeea81473c9d226e6d94e0..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/samplecluster2/MyEntityRemote.java
+++ /dev/null
@@ -1,59 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2005-2006 Bull S.A.S
- * Contact: jonas-team@objectweb.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * Initial developer(s):
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-package org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2;
-
-import java.rmi.RemoteException;
-
-/**
- * @author goebelg
- * Local interface for the entity bean
- */
-public interface MyEntityRemote extends javax.ejb.EJBObject {
-
- /**
- * Get the date formatted as string.
- * @return the date as string
- */
- String getNumber() throws RemoteException;
-
- /**
- * Set the date formatted as string
- * @param number the date as string
- */
- void setNumber(String number) throws RemoteException;
-
- /**
- * The JOnAS node name where the entity bean is created
- * @return JOnAS node name
- */
- String getJOnASName() throws RemoteException;
-
- /**
- * Get the JOnAS node name of the entity bean
- * @param number JOnAS node name
- */
- void setJOnASName(String name) throws RemoteException;
-}
\ No newline at end of file
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/samplecluster2/MyEntitySLR.java b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/samplecluster2/MyEntitySLR.java
deleted file mode 100644
index 761e60aca1d73b0a8d7d62ceafe849da784475ab..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/samplecluster2/MyEntitySLR.java
+++ /dev/null
@@ -1,141 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2005-2006 Bull S.A.S
- * Contact: jonas-team@objectweb.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * Initial developer(s):
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-package org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2;
-
-import java.rmi.RemoteException;
-
-import javax.ejb.CreateException;
-import javax.ejb.EntityContext;
-
-import org.ow2.jonas.lib.bootstrap.JProp;
-
-/**
- * Implementation of the entity bean
- * @author goebelg
- */
-public abstract class MyEntitySLR implements javax.ejb.EntityBean {
-
- /**
- * The JOnAS instance name where the bean is executed
- */
- private String jonasInstanceName = "unknown";
-
- /**
- * Creation of the entity bean
- * @param number the primary key -> date.getTime() as string of creation
- * @return the entity bean
- * @throws CreateException CreateException
- */
- public Object ejbCreate(final String number) throws CreateException {
-
- jonasInstanceName = "unknown";
-
- try {
- JProp jp = JProp.getInstance();
- jonasInstanceName = jp.getValue("jonas.name");
- setNumber(number);
- setJOnASName(jonasInstanceName);
- } catch (Exception e) {
- System.out.println("Error while creating ejb : " + e.getMessage());
- throw new CreateException(e.toString());
- }
- return null;
- }
-
- /**
- * Post create methode invoked after create methode
- * @param number the pk of the entity bean
- */
- public void ejbPostCreate(final String number) {
- }
-
- /**
- * ejbLoad
- */
- public void ejbLoad() {
- }
-
- /**
- * ejbStore
- */
- public void ejbStore() {
- }
-
- /**
- * Activation of the ejb
- */
- public void ejbActivate() {
- }
-
- /**
- * Passivate the ejb
- */
- public void ejbPassivate() {
- }
-
- /**
- * Removes the ejb
- */
- public void ejbRemove() {
- }
-
- /**
- * Set the EntityContext
- * @param ec entity context
- */
- public void setEntityContext(final EntityContext ec) {
- }
-
- /**
- * Unsets the EntityContext
- */
- public void unsetEntityContext() {
- }
-
- /**
- * Returns the time when the bean was created
- * @return The time when the bean was created
- */
- public abstract String getNumber() throws RemoteException;
-
- /**
- * Sets the time when the bean was created
- * @param number The time when the bean was created
- */
- public abstract void setNumber(String number)throws RemoteException;
-
- /**
- * Returns the name of the JOnAS instance
- * @return Name of the JOnAS instance where the entity bean was created
- */
- public abstract String getJOnASName()throws RemoteException;
-
- /**
- * sets the name of the JOnAS instance
- * @param name Name of the JOnAS instance where the entity bean was created
- */
- public abstract void setJOnASName(String name)throws RemoteException;
-}
\ No newline at end of file
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/samplecluster2/MyException.java b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/samplecluster2/MyException.java
deleted file mode 100644
index b974638aff088abd1773c0a4c282324f40fb156d..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/samplecluster2/MyException.java
+++ /dev/null
@@ -1,58 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2006 Bull S.A.S
- * Contact: jonas-team@objectweb.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-
-package org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2;
-
-
-/**
- * @author
- * application exception
- */
-public class MyException extends Exception {
-
- /**
- * UID
- */
- private static final long serialVersionUID = 110L;
-
-
- /**
- * Default Constructor
- *
- */
- public MyException() {
- super();
- }
-
- /**
- * Constructor
- * @param msg message associated with the exception
- */
- public MyException(String msg) {
- super(msg);
- }
-
-}
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/samplecluster2/MyStateful.java b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/samplecluster2/MyStateful.java
deleted file mode 100644
index c8f2c5a0b2334ea27504ac28e9fa7ea84b69d580..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/samplecluster2/MyStateful.java
+++ /dev/null
@@ -1,90 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2005-2006 Bull S.A.S
- * Contact: jonas-team@objectweb.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * Initial developer(s):
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-
-package org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2;
-
-import java.rmi.RemoteException;
-
-import javax.ejb.EJBObject;
-
-/**
- * MyStateful remote interface
- */
-public interface MyStateful extends EJBObject {
-
- /**
- * Initializes the inner beans
- * @throws RemoteException fi invocation fails
- */
- void initialize() throws RemoteException;
-
- /**
- * Keep the parameter in a list. Note : the parameter represents a line in
- * the "session servlet output" screen
- * @param s The string to keep.
- * @throws RemoteException if invocation fails
- */
- void log(java.lang.String s) throws RemoteException;
-
- /**
- * Keep the parameter in a list keeping track of the JOnAS instance
- * @param s The string to keep.
- * @throws RemoteException if invocation fails
- */
- void logWithJOnASInstance(java.lang.String s) throws RemoteException;
-
- /**
- * Retreive all the data in the log table Note : The return value is the
- * data shown in the "session servlet output" screen
- * @return All the logged data
- * @throws RemoteException if invocation fails
- */
- java.lang.StringBuffer getLogDump() throws RemoteException;
-
- /**
- * Retreive all the data in the log table Note : The return value is the
- * text format (calls from the java client)
- * @return All the logged data
- * @throws RemoteException if invocation fails
- */
- java.lang.StringBuffer getLogTextDump() throws RemoteException;
-
-
- /**
- * Set the http sessionid of the caller.
- * @param s The sessionid of the caller.
- * @throws RemoteException if invocation fails
- */
- void setHTTPSessionId(java.lang.String s) throws RemoteException;
-
- /**
- * Get the stored http sessionid of the caller.
- * @return The stored sessionid.
- * @throws RemoteException if invocation fails
- */
- java.lang.String getHTTPSessionId() throws RemoteException;
-
-}
\ No newline at end of file
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/samplecluster2/MyStatefulHome.java b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/samplecluster2/MyStatefulHome.java
deleted file mode 100644
index cacc4a409c2e62206c9871c39143f8a8110ec034..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/samplecluster2/MyStatefulHome.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2005-2006 Bull S.A.S
- * Contact: jonas-team@objectweb.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * Initial developer(s):
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-
-package org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2;
-
-import java.rmi.RemoteException;
-
-import javax.ejb.CreateException;
-import javax.ejb.EJBHome;
-
-/**
- * Home interface for the bean MyStateful
- */
-public interface MyStatefulHome extends EJBHome {
-
- /**
- * Creation of the Stateful session bean
- * @return the stateful session bean
- * @throws CreateException if creation fails
- * @throws RemoteException if invocation fails
- */
- MyStateful create() throws CreateException, RemoteException;
-}
\ No newline at end of file
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/samplecluster2/MyStatefulInner.java b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/samplecluster2/MyStatefulInner.java
deleted file mode 100644
index 6a5802632a7f6cb6e27f36d39481320d5e73c121..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/samplecluster2/MyStatefulInner.java
+++ /dev/null
@@ -1,134 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2005-2006 Bull S.A.S
- * Contact: jonas-team@objectweb.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * Initial developer(s):
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-
-package org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2;
-
-
-import javax.ejb.SessionBean;
-import javax.ejb.SessionContext;
-import javax.ejb.SessionSynchronization;
-
-import org.ow2.jonas.lib.util.Log;
-import org.objectweb.util.monolog.api.BasicLevel;
-import org.objectweb.util.monolog.api.Logger;
-
-/**
- *
- */
-public class MyStatefulInner implements SessionBean, SessionSynchronization {
-
- /**
- *
- */
- private static final long serialVersionUID = 1L;
-
- /**
- * After the transaction begun
- */
- public void afterBegin() {
- logger.log(BasicLevel.DEBUG, "afterBegin");
- }
-
- /**
- * before the commit is executed
- */
- public void beforeCompletion() {
- logger.log(BasicLevel.DEBUG, "beforeCompletion");
- }
-
- /**
- * after the commit or rollback
- * @param committed true -> commit, false -> rollback
- */
- public void afterCompletion(boolean committed) {
- logger.log(BasicLevel.DEBUG, "afterCompletion: " + committed);
- }
-
- /**
- * Set the session context
- * @param ctx the session context
- */
- public void setSessionContext(SessionContext ctx) {
- if (logger == null) {
- logger = Log.getLogger("org.ow2.jonas_tests");
- }
- logger.log(BasicLevel.DEBUG, "setSessionContext");
- }
-
- /**
- * removes the ejb
- */
- public void ejbRemove() {
- logger.log(BasicLevel.DEBUG, "ejbRemove");
- }
-
- /**
- * creation of the ejb
- */
- public void ejbCreate() {
- logger.log(BasicLevel.DEBUG, "ejbCreate()->" + this.toString());
- }
-
- /**
- * Passivate of the ejb
- */
- public void ejbPassivate() {
- logger.log(BasicLevel.DEBUG, "ejbPassivate");
- }
-
- /**
- * activation of the ejb
- */
- public void ejbActivate() {
- logger.log(BasicLevel.DEBUG, "ejbActivate");
- }
-
- private int count = 0;
-
- private transient boolean isModified = true;
-
- public void increment() {
- count++;
- isModified = true;
- }
-
- public int getCount() {
- return count;
- }
-
- /**
- * The logger
- */
- private static Logger logger = null;
-
- public boolean isModified() {
- boolean result = isModified;
- isModified = false;
-
- return result;
- }
-}
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/samplecluster2/MyStatefulInnerLocal.java b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/samplecluster2/MyStatefulInnerLocal.java
deleted file mode 100644
index 4634af867fabdb6dfbbb0e54ab974e9eb6e19e75..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/samplecluster2/MyStatefulInnerLocal.java
+++ /dev/null
@@ -1,37 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2005-2006 Bull S.A.S
- * Contact: jonas-team@objectweb.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * Initial developer(s):
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-
-package org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2;
-
-import javax.ejb.EJBLocalObject;
-
-/**
- * MyStateful local interface
- */
-public interface MyStatefulInnerLocal extends EJBLocalObject {
- void increment();
- int getCount();
-}
\ No newline at end of file
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/samplecluster2/MyStatefulInnerLocalHome.java b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/samplecluster2/MyStatefulInnerLocalHome.java
deleted file mode 100644
index cb238e174c7f3494ab0399405817adf2f87b8cb7..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/samplecluster2/MyStatefulInnerLocalHome.java
+++ /dev/null
@@ -1,46 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2005-2006 Bull S.A.S
- * Contact: jonas-team@objectweb.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * Initial developer(s):
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-
-package org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2;
-
-import java.rmi.RemoteException;
-
-import javax.ejb.CreateException;
-import javax.ejb.EJBLocalHome;
-
-/**
- * Home interface for the bean MyStateful
- */
-public interface MyStatefulInnerLocalHome extends EJBLocalHome {
-
- /**
- * Creation of the Stateful session bean
- * @return the stateful session bean
- * @throws CreateException if creation fails
- * @throws RemoteException if invocation fails
- */
- MyStatefulInnerLocal create() throws CreateException;
-}
\ No newline at end of file
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/samplecluster2/MyStatefulSFR.java b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/samplecluster2/MyStatefulSFR.java
deleted file mode 100644
index 002659f05cb8772c9fe673dd969f7990ad32763d..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/beans/samplecluster2/MyStatefulSFR.java
+++ /dev/null
@@ -1,397 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2005-2006 Bull S.A.S
- * Contact: jonas-team@objectweb.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * Initial developer(s):
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-
-package org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2;
-
-
-import java.rmi.RemoteException;
-import java.util.ArrayList;
-import java.util.Date;
-import java.util.Iterator;
-
-import javax.ejb.CreateException;
-import javax.ejb.SessionBean;
-import javax.ejb.SessionContext;
-import javax.ejb.SessionSynchronization;
-import javax.naming.InitialContext;
-import javax.naming.NamingException;
-
-import org.objectweb.util.monolog.api.BasicLevel;
-import org.objectweb.util.monolog.api.Logger;
-import org.ow2.jonas.lib.bootstrap.JProp;
-import org.ow2.jonas.lib.util.Log;
-
-/**
- *
- */
-public class MyStatefulSFR implements SessionBean, SessionSynchronization {
-
- /**
- *
- */
- private static final long serialVersionUID = 1L;
-
- /**
- * After the transaction begun
- */
- public void afterBegin() {
- logger.log(BasicLevel.DEBUG, "");
- }
-
- /**
- * before the commit is executed
- */
- public void beforeCompletion() {
- logger.log(BasicLevel.DEBUG, "");
- }
-
- /**
- * after the commit or rollback
- * @param committed true -> commit, false -> rollback
- */
- public void afterCompletion(final boolean committed) {
- logger.log(BasicLevel.DEBUG, "");
- }
-
- /**
- * Set the session context
- * @param ctx the session context
- */
- public void setSessionContext(final SessionContext ctx) {
- if (logger == null) {
- logger = Log.getLogger("org.ow2.jonas_tests");
- }
- logger.log(BasicLevel.DEBUG, "");
- }
-
- /**
- * removes the ejb
- */
- public void ejbRemove() {
- logger.log(BasicLevel.DEBUG, "");
- }
-
- /**
- * creation of the ejb
- * @throws RemoteException
- */
- public void ejbCreate() throws RemoteException {
- logger.log(BasicLevel.DEBUG, "");
- creatorJonasInstanceName = "unknown";
-
- try {
- JProp jp = JProp.getInstance();
- creatorJonasInstanceName = jp.getValue("jonas.name");
- log = new ArrayList(MAXSIZE);
- logger.log(BasicLevel.DEBUG, "ejbCreate()->" + this.toString());
- isModified = true;
- } catch (Exception e) {
- logger.log(BasicLevel.FATAL, "Ejb create Exception: " + e.getMessage());
- throw new RemoteException("Ejb create Exception: " , e);
- }
- }
-
- /**
- * Passivate of the ejb
- */
- public void ejbPassivate() {
- logger.log(BasicLevel.DEBUG, "");
- }
-
- /**
- * activation of the ejb
- */
- public void ejbActivate() {
- logger.log(BasicLevel.DEBUG, "");
- }
-
- /**
- * Initializes the inner beans
- * @throws RemoteException
- */
- public void initialize() throws RemoteException {
- logger.log(BasicLevel.DEBUG, "");
-
- localStateful = createLocalStateful();
- Date date = new Date();
- localEntity = createEntity(Long.toString(date.getTime()));
- isModified = true;
- }
-
- /**
- * Keep the parameter in a list. Note : the parameter represents a line in
- * the "session servlet output" screen
- * @param s The string to keep.
- * @throws RemoteException
- * @throws RemoteException
- */
- public void log(final java.lang.String s) throws RemoteException {
- logger.log(BasicLevel.DEBUG, "");
-
- if (log.size() == MAXSIZE) {
- Iterator iter = log.iterator();
- iter.next();
- iter.remove();
- }
-
- log.add(s);
-
- // Call local stateful
- getLocalStateful().increment();
-
- isModified = true;
- }
-
- /**
- * Keep the parameter in a list with the source node
- * @param s The string to keep.
- * @throws RemoteException
- * @throws RemoteException
- */
- public void logWithJOnASInstance(final java.lang.String s) throws RemoteException {
- logger.log(BasicLevel.DEBUG, "");
-
- if (log.size() == MAXSIZE) {
- Iterator iter = log.iterator();
- iter.next();
- iter.remove();
- }
-
- log.add("JOnAS instance=" + creatorJonasInstanceName + " - " + s);
-
- // Call local stateful
- getLocalStateful().increment();
-
- isModified = true;
- }
- /**
- * Retreive all the data in the log table Note : The return value is the
- * data shown in the "session servlet output" screen
- * @return All the logged data
- * @throws RemoteException
- */
- public java.lang.StringBuffer getLogDump() throws RemoteException {
- logger.log(BasicLevel.DEBUG, "");
-
- StringBuffer sb = new StringBuffer();
- sb.append("JOnAS instance=");
- sb.append(creatorJonasInstanceName);
- sb.append(" ; EJB=");
- sb.append(this.toString());
- sb.append("\n");
- sb.append("Owner: ");
- sb.append(callerHTTPSessionId);
- sb.append("\n");
-
- sb.append("Inner count: ");
- sb.append(getLocalStateful().getCount());
- sb.append("\n");
-
- sb.append("Local entity: ");
- sb.append(getLocalEntity().getNumber());
- sb.append("\n");
-
- Iterator iter = log.iterator();
-
- sb.append("
");
-
- logger.log(BasicLevel.INFO, sb.toString());
- return sb;
- }
-
- /**
- * Retreive all the data in the log table Note : The return value is the
- * text format (calls from the java client)
- * @return All the logged data
- * @throws RemoteException
- */
- public java.lang.StringBuffer getLogTextDump() throws RemoteException {
- logger.log(BasicLevel.DEBUG, "");
-
- StringBuffer sb = new StringBuffer();
- sb.append("JOnAS instance=");
- sb.append(creatorJonasInstanceName);
- sb.append(" ; EJB=");
- sb.append(this.toString());
- sb.append("\n");
-
- sb.append("Inner count: ");
- sb.append(getLocalStateful().getCount());
- sb.append("\n");
-
- sb.append("Local entity: ");
- sb.append(getLocalEntity().getNumber());
- sb.append("\n");
-
- Iterator iter = log.iterator();
- int i = 1;
- sb.append("Log entries -> \n");
- while (iter.hasNext()) {
- sb.append(" " + i + " : ");
- sb.append((String) iter.next());
- sb.append("\n");
- i++;
- }
- sb.append("End\n");
-
- logger.log(BasicLevel.INFO, sb.toString());
- return sb;
- }
-
- /**
- * Set the http sessionid of the caller.
- * @param s The sessionid of the caller.
- * @throws RemoteException
- */
- public void setHTTPSessionId(final java.lang.String s) {
- logger.log(BasicLevel.DEBUG, "");
- callerHTTPSessionId = s;
-
- isModified = true;
- }
-
- /**
- * Get the stored http sessionid of the caller.
- * @return The stored sessionid.
- * @throws RemoteException
- */
- public java.lang.String getHTTPSessionId() {
- logger.log(BasicLevel.DEBUG, "");
- return callerHTTPSessionId;
- }
-
- /**
- * The JOnAS node name where the bean is executed
- * the field is transient because we don't want to passivate or replicate it
- */
- private transient String creatorJonasInstanceName = "unknown";
-
- /**
- * The logger
- */
- private static Logger logger = null;
-
-
- /**
- * The maximum number of values to conserve
- */
- private static final int MAXSIZE = 20;
-
- /**
- * The log output
- */
- private ArrayList log = null;
-
- /**
- * caller http session id
- */
- private String callerHTTPSessionId = null;
-
- private MyStatefulInnerLocal localStateful = null;
-
- private MyEntityLocal localEntity = null;
-
- private transient boolean isModified = true;
-
- /**
- * Creates a new Entity bean with the time as parameter
- * @param valeur The current time as string
- * @return A new Entity Bean
- */
- private MyStatefulInnerLocal createLocalStateful() throws RemoteException {
- InitialContext cntx;
- MyStatefulInnerLocal result = null;
- try {
- cntx = new InitialContext();
- MyStatefulInnerLocalHome statefulHome = (MyStatefulInnerLocalHome) cntx.lookup("MyStatefulInnerHome_L");
- result = statefulHome.create();
- } catch (NamingException e) {
- logger.log(BasicLevel.FATAL, "Naming exception : " + e.getMessage());
- throw new RemoteException("Naming exception : " + e.getMessage());
- } catch (CreateException e) {
- logger.log(BasicLevel.FATAL, "Create exception : " + e.getMessage());
- throw new RemoteException("Create exception : " + e.getMessage());
- }
- return result;
- }
-
- /**
- * Returns the local stateful bean
- * @return the local stateful bean
- */
- private MyStatefulInnerLocal getLocalStateful() throws RemoteException {
- if (localStateful == null) {
- localStateful = createLocalStateful();
- isModified = true;
- }
- return localStateful;
- }
- /**
- * Creates a new Entity bean with the time as parameter
- * @param valeur The current time as string
- * @return A new Entity Bean
- */
- private MyEntityLocal createEntity(final String valeur) throws RemoteException {
- InitialContext cntx;
- MyEntityLocal result = null;
- try {
- cntx = new InitialContext();
- MyEntityLocalHome entityHome = (MyEntityLocalHome) cntx.lookup("MyEntityHome_L");
- result = entityHome.create(valeur);
- } catch (NamingException e) {
- logger.log(BasicLevel.FATAL, "Naming exception : " + e.getMessage());
- throw new RemoteException("Naming exception : " + e.getMessage());
- } catch (CreateException e) {
- logger.log(BasicLevel.FATAL, "Create exception : " + e.getMessage());
- throw new RemoteException("Create exception : " + e.getMessage());
- }
- return result;
- }
-
- /**
- * Returns the local entity bean
- * @return the local entity bean
- */
- private MyEntityLocal getLocalEntity() throws RemoteException {
- if (localEntity == null) {
- Date date = new Date();
- localEntity = createEntity(Long.toString(date.getTime()));
- isModified = true;
- }
- return localEntity;
- }
-
- public boolean isModified() {
- boolean result = isModified;
- isModified = false;
- return result;
- }
-}
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/client/ClientBase.java b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/client/ClientBase.java
deleted file mode 100644
index b49f08fbba5844909a3656f707d1868fa87646a3..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/client/ClientBase.java
+++ /dev/null
@@ -1,122 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2009 Bull S.A.S
- * Contact: jonas-team@ow2.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * Initial developer(s):
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-package org.ow2.jonas.examples.cluster.j2ee14.client;
-
-import java.io.FileOutputStream;
-import java.io.PrintStream;
-
-public class ClientBase {
-
- /**
- * Iteration number
- */
- private static final int ITERATION_NB = 50;
-
- /**
- * Default time to sleep.
- */
- private static final long TIME2SLEEP = 10000;
-
- /**
- * Output to be used.
- */
- protected PrintStream out = null;
- /**
- * the name of the client.
- */
- protected String clientName = "JOnAS Client for cluster-j2ee14";
-
- /**
- * Time to sleep each 10 iterations.
- */
- protected long time2sleep = 10000;
-
- /**
- * Iterations number.
- */
- protected int iterations = ITERATION_NB;
-
- public ClientBase() {
- }
-
- public ClientBase(final String[] args) {
- initArgs(args);
- }
-
- private void initArgs(final String[] args) {
- out = System.out;
- String url = null;
- if(args != null && args.length != 0) {
- for (int argn = 0; argn < args.length; argn++) {
- String arg = args[argn];
- if("-out".equals(arg)) {
- url = args[++argn];
- continue;
- }else if ("-clientName".equals(arg)) {
- clientName = args[++argn];
- out.println("Client name set to : " + clientName);
- continue;
- }else if ("-time2sleep".equals(arg)) {
- String time = args[++argn];
- try {
- time2sleep = Long.parseLong(time);
- } catch (NumberFormatException e) {
- time2sleep = TIME2SLEEP;
- }
- out.println("Time to sleep set to : " + time2sleep);
- continue;
- }else if ("-iterations".equals(arg)) {
- String it = args[++argn];
- try {
- iterations = Integer.parseInt(it);
- } catch (Exception e) {
- // TODO: handle exception
- iterations = ITERATION_NB;
- }
- out.println("Number of iterations set to : " + iterations);
- continue;
- }
- }
- }
- if (url != null) {
- initOut(url);
- }
- }
- /**
- * Initializes client output.
- * @param url Stringified url of the client output file.
- */
- private void initOut(final String url) {
- try {
- FileOutputStream file = new FileOutputStream(url, true);
- out.println("Initializing output '" + url + "' for " + clientName);
- out = new PrintStream(file, true);
- } catch (Exception e) {
- out.println("Unable to initialize output for " + clientName + " because : " + e);
- }
- }
-
-}
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/client/ClientException.java b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/client/ClientException.java
deleted file mode 100644
index 792528395039fb4b48abbd124273f68b830403ae..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/client/ClientException.java
+++ /dev/null
@@ -1,95 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2006 Bull S.A.S
- * Contact: jonas-team@objectweb.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * Initial developer(s):
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-
-package org.ow2.jonas.examples.cluster.j2ee14.client;
-
-import org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2.MyEjb1;
-import org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2.MyEjb1Home;
-import org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2.MyException;
-
-
-/**
- * Fat client :
- * - get an exception
- */
-public class ClientException extends ClientBase {
- /**
- * Private constructor for utility class
- *
- */
- private ClientException() {
- }
- /**
- * Contructor.
- * @param args : arguments.
- */
- private ClientException(final String[] args) {
- super(args);
- }
- /**
- * Starts the client.
- * @return 0 if ok.
- */
- private int start() throws Exception {
- out.println(clientName + " : starting ...");
- out.println("------------------------------------------");
- MyEjb1Home home = ClientUtility.getMyEjb1Home();
- out.println("Home retrieved -> " + home);
- MyEjb1 bean = ClientUtility.getMyEjb1Bean(home);
- out.println("Bean created -> " + bean);
- out.println("------------------------------------------");
-
-
- try {
- out.println("Throw an exception at the server side");
- bean.throwMyException();
- } catch (MyException e) {
- out.println("MyException caught : invocation successful");
- } catch (Exception e) {
- out.println("Invocation failed because : " + e);
- out.println("Client KO. Exiting.");
- out.close();
- throw e;
- }
-
- out.println();
- out.println(clientName + ": OK. Exiting.");
- out.close();
- return 0;
-
- }
- /**
- * Main method
- * @param args arguments of the client
- * @throws Exception any.
- */
- public static int main(final String[] args) throws Exception {
- ClientException client = new ClientException(args);
- return client.start();
-
- }
-}
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/client/ClientFOSFSB.java b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/client/ClientFOSFSB.java
deleted file mode 100644
index 5083c985c2f99f9db4ffdb71d1da3efba041fc37..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/client/ClientFOSFSB.java
+++ /dev/null
@@ -1,125 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2005-2006 Bull S.A.S
- * Contact: jonas-team@objectweb.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * Initial developer(s):
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-
-package org.ow2.jonas.examples.cluster.j2ee14.client;
-
-import org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2.MyStateful;
-import org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2.MyStatefulHome;
-
-
-/**
- * Fat client :
- * - test Fail Over of the SFSB
- */
-public class ClientFOSFSB extends ClientBase {
-
- /**
- * Default constructor.
- */
- public ClientFOSFSB() {
- }
-
- /**
- * Constructor.
- * @param args arguments.
- */
- public ClientFOSFSB(final String[] args) {
- super(args);
- }
- /**
- * Starts the client.
- * @return 0 if ok.
- * @throws Exception any.
- */
- private int start() throws Exception {
- out.println(clientName + " : starting...");
- out.println("------------------------------------------");
- // get home
- MyStatefulHome home = ClientUtility.getMyStatefulHome();
- out.println("Home retrieved -> " + home);
-
- // get primary remote
- MyStateful bean = ClientUtility.getMyStatefulBean(home);
- out.println("Bean created -> " + bean);
- out.println("------------------------------------------");
-
- for (int i = 0; i < iterations; i++) {
- try {
-
- String l = "log entry " + i;
- // add in the bean state
- bean.logWithJOnASInstance(l);
-
- out.println("Add " + l);
-
- if (0 == i % 10) {
- out.println("------------------------------------------");
- out.println("Get the log entries from the bean state");
- out.println("------------------------------------------");
- StringBuffer sb = bean.getLogTextDump();
- out.println(sb);
-
- out.println("------------------------------------------");
- out.println("Sleep " + time2sleep / 1000 + " s");
- out.println("------------------------------------------");
- try {
- Thread.sleep(time2sleep);
- } catch (Exception e) {
- out.println(clientName + ": KO. " + e);
- out.close();
- throw e;
- }
- }
-
- } catch (Exception e) {
- out.println("exception occured " + e);
- out.close();
- throw e;
- }
- }
- try {
- bean.remove();
- } catch (Exception e) {
- out.println(clientName + ": KO. " + e);
- out.close();
- throw e;
- }
- out.println();
- out.println(clientName + ": OK. Exiting.");
- out.close();
- return 0;
- }
- /**
- * Main method
- * @param args arguments of the client
- * @throws Exception
- */
- public static int main(final String[] args) throws Exception {
- ClientFOSFSB client = new ClientFOSFSB(args);
- return client.start();
- }
-}
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/client/ClientLBHome.java b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/client/ClientLBHome.java
deleted file mode 100644
index 99028330f8a5584b179f588ed94cc7d19d748e30..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/client/ClientLBHome.java
+++ /dev/null
@@ -1,100 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2005-2006 Bull S.A.S
- * Contact: jonas-team@objectweb.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * Initial developer(s):
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-
-package org.ow2.jonas.examples.cluster.j2ee14.client;
-
-import java.util.Properties;
-
-import org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2.MyEjb1;
-import org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2.MyEjb1Home;
-
-
-/**
- * Fat client :
- * - access to a SSB
- * - LB at the home, remote
- */
-public class ClientLBHome extends ClientBase {
-
- public ClientLBHome() {
- }
-
-
- public ClientLBHome(final String[] args) {
- super(args);
- }
-
- /**
- * Starts the client.
- * @return 0 if ok.
- * @throws Exception any.
- */
- private int start() throws Exception {
- for (int i = 0; i < iterations; i++) {
- try {
- out.println(clientName + " : starting...");
- out.println("------------------------------------------");
- out.println("Trying to retieve Home");
- MyEjb1Home home = ClientUtility.getMyEjb1Home();
- out.println("Home retrieved -> " + home);
- out.println("------------------------------------------");
- if (0 == i % 10) {
- out.println("------------------------------------------");
- out.println("Sleep " + time2sleep / 1000 + " s");
- out.println("------------------------------------------");
- try {
- Thread.sleep(time2sleep);
- } catch (Exception e) {
- out.println(clientName + ": KO. " + e);
- out.close();
- throw e;
- }
- }
-
- } catch (Exception e) {
- out.println(clientName + ": KO." + e);
- out.close();
- throw e;
- }
- out.println();
- }
- out.println(clientName + ": OK. Exiting.");
- out.close();
- return 0;
- }
-
- /**
- * Main method
- * @param args arguments of the client
- * @throws Exception
- */
- public static int main(final String[] args) throws Exception {
- ClientLBHome client = new ClientLBHome(args);
- return client.start();
-
- }
-}
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/client/ClientLBLookup.java b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/client/ClientLBLookup.java
deleted file mode 100644
index b2eb20995008216416a214589ef16f898197eef9..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/client/ClientLBLookup.java
+++ /dev/null
@@ -1,105 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2005-2006 Bull S.A.S
- * Contact: jonas-team@objectweb.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * Initial developer(s):
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-
-package org.ow2.jonas.examples.cluster.j2ee14.client;
-
-import java.util.Properties;
-
-import org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2.MyEjb1;
-import org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2.MyEjb1Home;
-
-
-/**
- * Fat client :
- * - access to a SSB
- * - LB at the lookup, home, remote
- */
-public class ClientLBLookup extends ClientBase {
-
- /**
- * Default constructor.
- */
- public ClientLBLookup() {
- // TODO Auto-generated constructor stub
- }
- /**
- * Constructor using arguments.
- * @param args the arguments.
- */
- public ClientLBLookup(final String[] args) {
- super(args);
- }
- /**
- * Starts the client.
- * @return 0 if ok.
- * @throws Exception any.
- */
- private int start() throws Exception {
- out.println(clientName + ": starting...");
- out.println("------------------------------------------");
-
- for (int i = 0; i < iterations ; i++) {
- try {
-
- MyEjb1Home home = ClientUtility.getMyEjb1Home();
- out.println("Home retrieved -> " + home);
- if (0 == i % 10) {
- out.println("------------------------------------------");
- out.println("Sleep " + time2sleep / 1000 + " s");
- out.println("------------------------------------------");
- try {
- Thread.sleep(time2sleep);
- } catch (Exception e) {
- out.println(clientName + ": KO. " + e);
- out.close();
- throw e;
- }
- }
-
- } catch (Exception e) {
- out.println(clientName + ": KO. " + e);
- out.close();
- throw e;
- }
- out.println();
- }
- out.println(clientName + ": OK. Exiting.");
- out.close();
- return 0;
- }
-
- /**
- * Main method
- * @param args arguments of the client
- * @throws Exception
- */
- public static int main(final String[] args) throws Exception {
- ClientLBLookup client = new ClientLBLookup(args);
- return client.start();
-
- }
-}
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/client/ClientLBRemote.java b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/client/ClientLBRemote.java
deleted file mode 100644
index 73d3d67732e4ddeaef218c4eee7f7045e00bcde3..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/client/ClientLBRemote.java
+++ /dev/null
@@ -1,113 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2005-2006 Bull S.A.S
- * Contact: jonas-team@objectweb.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * Initial developer(s):
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-
-package org.ow2.jonas.examples.cluster.j2ee14.client;
-
-import java.util.Properties;
-
-import org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2.MyEjb1;
-import org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2.MyEjb1Home;
-
-
-/**
- * Fat client :
- * - access to a SSB
- * - LB at the remote
- */
-public class ClientLBRemote extends ClientBase {
- /**
- * Constructor using arguments.
- * @param args arguments.
- */
- public ClientLBRemote(final String[] args) {
- super(args);
- }
- /**
- * Starts the client.
- */
- private int start() throws Exception {
- String jonasEJBServer = null;
- String ejbTotalCallsCount = null;
- String ejbEntityCreated = null;
- Properties prop = null;
- out.println(clientName + ": starting...");
- out.println("------------------------------------------");
- MyEjb1Home home = ClientUtility.getMyEjb1Home();
- out.println("Home retrieved -> " + home);
- MyEjb1 bean = ClientUtility.getMyEjb1Bean(home);
- out.println("Bean created -> " + bean);
- out.println("------------------------------------------");
- for (int i = 0; i < iterations; i++) {
- try {
- prop = bean.getInfoProps();
- out.println("Bean invoked");
- jonasEJBServer = prop.getProperty("EJB server");
- ejbTotalCallsCount = prop.getProperty("EJB total calls");
- ejbEntityCreated = prop.getProperty("EJB server entity created");
- } catch (Exception e) {
- out.println(clientName + ": KO. " + e);
- out.close();
- throw e;
- }
-
- out.println("Calls=" + i + " - EJB served by jonas=" + jonasEJBServer + " - EJB total calls=" + ejbTotalCallsCount + " - ejbEntityCreated=" + ejbEntityCreated);
- if (0 == i % 10) {
- out.println("------------------------------------------");
- out.println("Sleep " + time2sleep / 1000 + " s");
- out.println("------------------------------------------");
- try {
- Thread.sleep(time2sleep);
- } catch (Exception e) {
- out.println(clientName + ": KO. " + e);
- out.close();
- throw e;
- }
- }
- out.println();
- }
- try {
- bean.remove();
- } catch (Exception e) {
- out.println(clientName + ": KO. " + e);
- out.close();
- throw e;
- }
- out.println(clientName + ": OK. Exiting.");
- out.close();
- return 0;
-
- }
- /**
- * Main method
- * @param args arguments of the client
- * @throws Exception
- */
- public static int main(final String[] args) throws Exception {
- ClientLBRemote client = new ClientLBRemote(args);
- return client.start();
- }
-}
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/client/ClientUtility.java b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/client/ClientUtility.java
deleted file mode 100644
index c3a814a00bd6f328437107ce0a08f391b641cd02..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/client/ClientUtility.java
+++ /dev/null
@@ -1,146 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2005-2006 Bull S.A.S
- * Contact: jonas-team@objectweb.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * Initial developer(s):
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-
-package org.ow2.jonas.examples.cluster.j2ee14.client;
-
-import java.rmi.RemoteException;
-
-import javax.naming.Context;
-import javax.naming.InitialContext;
-import javax.naming.NamingException;
-import javax.rmi.PortableRemoteObject;
-
-import org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2.MyEjb1;
-import org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2.MyEjb1Home;
-import org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2.MyStateful;
-import org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2.MyStatefulHome;
-
-
-/**
- * Fat client : generic methods
- */
-public class ClientUtility {
-
- /**
- * Constructor. Hide constructor as it is an utility class
- */
- private ClientUtility() {
- }
-
- /**
- * @return MyEjb1 home object
- * @throws Exception any.
- */
- protected static MyEjb1Home getMyEjb1Home() throws Exception {
-
- MyEjb1Home home = null;
- Context ctx = null;
-
- try {
- ctx = new InitialContext();
- } catch (NamingException e) {
- throw new Exception("Exception in getMyEjb1Home. Unable to create context ", e);
- }
-
- // Lookup bean home
- String bName = "MyEjb1Home";
- try {
- home = (MyEjb1Home) PortableRemoteObject.narrow(ctx.lookup(bName), MyEjb1Home.class);
- ctx.close();
- } catch (Exception e) {
- //e.printStackTrace();
- //System.exit(2);
- throw new Exception("Exception in getMyEjb1Home. Unable to get home reference ", e);
- }
-
- return home;
- }
- /**
- * Gets the entity bean reference.
- * @param home home object
- * @return MyEjb1 remote object
- * @throws Exception any.
- */
- protected static MyEjb1 getMyEjb1Bean(final MyEjb1Home home) throws Exception {
-
- MyEjb1 bean = null;
-
- try {
- bean = home.create();
- } catch (Exception e) {
- e.printStackTrace();
- throw new Exception("Exception in getMyEjb1Bean. Unable to invoke home.create() ", e);
- //System.exit(2);
- }
- return bean;
- }
-
- /**
- * Gets home for stateful bean.
- * @return MyStateful home object
- * @throws Exception any.
- */
- protected static MyStatefulHome getMyStatefulHome() throws Exception {
- MyStatefulHome home = null;
- Context ctx = null;
-
- try {
- ctx = new InitialContext();
- } catch (NamingException e) {
- throw new RemoteException("Exception in getMyStatefulHome. Unable to create context ", e);
- }
-
- // Lookup bean home
- String bName = "MyStatefulHome";
- try {
- home = (MyStatefulHome) PortableRemoteObject.narrow(ctx.lookup(bName), MyStatefulHome.class);
- ctx.close();
- } catch (Exception e) {
- //System.exit(2);
- throw new Exception("Exception in getMyStatefulHome. Unable get home reference ", e);
- }
- return home;
- }
- /**
- * Gets the stateful bean from home.
- * @param home home object
- * @return MyStateful remote object
- * @throws Exception any.
- */
- protected static MyStateful getMyStatefulBean(final MyStatefulHome home) throws Exception {
-
- MyStateful bean = null;
-
- try {
- bean = home.create();
- } catch (Exception e) {
- //System.exit(2);
- throw new Exception("Exception in getMyStatefulHome. Unable invoke home.create()", e);
- }
- return bean;
- }
-}
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/client/README b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/client/README
deleted file mode 100644
index 4dc3e0c5ff2182268b172af588f6ca4a3f139cb2..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/client/README
+++ /dev/null
@@ -1,40 +0,0 @@
- ===============================
-| SampleCluster2 |
- ===============================
-
-Date: 06/03/2006
-Version: v1.1
-
-CMI client
-----------
-Examples of a rich java client using the CMI protocol.
-
-Running
---------
-1) cd $JONAS_ROOT/examples/cluster-j2ee14
-2) create the directory './clientConfig'
-3) copy $JONAS_ROOT/conf/carol.properties to '/clientConfig'
-4) configure a carol.properties file pointing to a registry within a cluster in ./clientConfig/carol.properties.
- For instance :
-
-carol.protocols=cmi
-carol.cmi.url=cmi://dhcp0521:2032,dhcp0521:2043
-carol.cmi.multicast.address=224.0.0.35:35467
-carol.cmi.multicast.groupname=G1
-carol.cmi.rr.factor=100
-carol.cmi.stub.debug=false
-
-5) run the clients with the following commands :
-# for testing the load-balancing at the lookup
-src/client/clientLBLookup.sh
-
-# for testing the load-balancing at the home interface
-src/client/clientLBHome.sh
-
-# for testing the load-balancing at the remote interface
-src/client/clientLBRemote.sh
-
-# for testing the exception retrieving
-src/client/clientException.sh
-
-=================================================================================
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/servlets/AbstractServlet.java b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/servlets/AbstractServlet.java
deleted file mode 100644
index 22e820fec00b38cd1c2bf0bf6c8cebf902b68888..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/servlets/AbstractServlet.java
+++ /dev/null
@@ -1,143 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2005 Bull S.A.
- * Contact: jonas-team@objectweb.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * --------------------------------------------------------------------------
- * $Id:AbstractServlet.java 14651 2008-07-28 11:50:13Z eyindanga $
- * --------------------------------------------------------------------------
- */
-package org.ow2.jonas.examples.cluster.j2ee14.servlets;
-
-import javax.naming.Context;
-import javax.naming.InitialContext;
-import javax.naming.NamingException;
-import javax.rmi.PortableRemoteObject;
-import javax.servlet.http.HttpServlet;
-
-import org.objectweb.util.monolog.api.BasicLevel;
-import org.objectweb.util.monolog.api.Logger;
-import org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2.MyEjb1;
-import org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2.MyEjb1Home;
-import org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2.MyStateful;
-import org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2.MyStatefulHome;
-import org.ow2.jonas.lib.bootstrap.JProp;
-import org.ow2.jonas.lib.util.Log;
-
-/**
- * @author goebelg
- *
- * Servlet super class
- */
-public abstract class AbstractServlet extends HttpServlet {
-
- /**
- * Servlet initialization
- */
- @Override
- public void init() {
-
- if (logger == null) {
- logger = Log.getLogger("org.ow2.jonas_tests");
- }
- logger.log(BasicLevel.DEBUG, "");
- }
-
- /**
- * Creates a new Statefull session bean.
- * @return A new session bean
- */
- public MyStateful createStatefulEJB() {
- Context ctx = null;
- MyStatefulHome home = null;
- MyStateful bean = null;
-
- try {
- ctx = new InitialContext();
- } catch (NamingException e) {
- e.printStackTrace();
- }
-
- // Lookup bean home
- String bName = "java:comp/env/ejb/MyStatefulHome";
- try {
- home = (MyStatefulHome) PortableRemoteObject.narrow(ctx.lookup(bName), MyStatefulHome.class);
- bean = home.create();
- bean.initialize();
- } catch (Exception e) {
- e.printStackTrace();
- }
- return bean;
- }
-
- /**
- * Creates a new stateless session bean.
- * @return a new stateless session bean
- */
- public MyEjb1 theEJB() {
- Context ctx = null;
- MyEjb1Home home = null;
- MyEjb1 bean = null;
-
- try {
- ctx = new InitialContext();
- } catch (NamingException e) {
- e.printStackTrace();
- }
-
- // Lookup bean home
- String bName = "java:comp/env/ejb/MyEjb1Home";
- try {
- home = (MyEjb1Home) PortableRemoteObject.narrow(ctx.lookup(bName), MyEjb1Home.class);
- bean = home.create();
- } catch (Exception e) {
- e.printStackTrace();
- }
- return bean;
- }
-
- /**
- * Retrieve the name of the JOnAS node where the servlet is executed.
- * @return The JOnAS node name where the servlet is executed.
- */
- public static String getMyJonasInstanceName() {
-
- String s = "unknown";
- try {
- JProp jp = JProp.getInstance();
- s = jp.getValue("jonas.name");
- } catch (Exception e) {
- e.printStackTrace();
- }
- return s;
- }
-
- /**
- * Get the logger
- * @return the logger
- */
- public Logger getLogger() {
- return logger;
- }
-
- /**
- * The logger
- */
- private static Logger logger = null;
-}
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/servlets/CheckServlet.java b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/servlets/CheckServlet.java
deleted file mode 100644
index f169de7b30b398af812bacf4309438daec461264..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/servlets/CheckServlet.java
+++ /dev/null
@@ -1,83 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2005 Bull S.A.
- * Contact: jonas-team@objectweb.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * --------------------------------------------------------------------------
- * $Id:CheckServlet.java 14651 2008-07-28 11:50:13Z eyindanga $
- * --------------------------------------------------------------------------
- */
-
-package org.ow2.jonas.examples.cluster.j2ee14.servlets;
-
-import java.io.IOException;
-
-import javax.servlet.RequestDispatcher;
-import javax.servlet.ServletException;
-import javax.servlet.http.Cookie;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-import javax.servlet.http.HttpSession;
-
-import org.objectweb.util.monolog.api.BasicLevel;
-
-/**
- * @author goebelg
- *
- * Servlet which checks the HTTP session
- */
-public class CheckServlet extends AbstractServlet {
-
- /**
- *
- */
- private static final long serialVersionUID = 1L;
-
- /**
- * doGet methode of the servlet
- * @param req http servlet request
- * @param res http servlet response
- * @throws ServletException servlet exception
- * @throws IOException io exception
- */
- public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException {
-
- HttpSession session = req.getSession(false);
-
- String sessionCheckInfo = "JSESSIONID cookie absent.";
- Cookie[] cookies = req.getCookies();
- if (cookies != null) {
- for (int i = 0; i < cookies.length; i++) {
- if (cookies[i].getName().equals("JSESSIONID")) {
- sessionCheckInfo = "JSESSIONID cookie present.";
- }
- }
- }
-
- getLogger().log(BasicLevel.INFO, sessionCheckInfo);
- req.setAttribute("sessionCheckInfo", sessionCheckInfo);
-
- // --------------
- // Write response
- // --------------
- RequestDispatcher disp = req.getRequestDispatcher("../jsp/checkRsp.jsp");
- disp.forward(req, res);
-
- return;
- }
-}
\ No newline at end of file
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/servlets/ExceptionServlet.java b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/servlets/ExceptionServlet.java
deleted file mode 100644
index 0d8ad6cb21b3a7ee4d26c7588c5e48b2aed7b789..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/servlets/ExceptionServlet.java
+++ /dev/null
@@ -1,80 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2006 Bull S.A.S
- * Contact: jonas-team@objectweb.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * --------------------------------------------------------------------------
- * $Id:ExceptionServlet.java 14651 2008-07-28 11:50:13Z eyindanga $
- * --------------------------------------------------------------------------
- */
-
-package org.ow2.jonas.examples.cluster.j2ee14.servlets;
-
-import java.io.IOException;
-
-import javax.servlet.RequestDispatcher;
-import javax.servlet.ServletException;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2.MyEjb1;
-import org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2.MyException;
-
-
-
-/**
- * @author goebelg Release an http session servlet
- */
-public class ExceptionServlet extends AbstractServlet {
-
- /**
- *
- */
- private static final long serialVersionUID = 1L;
-
- /**
- * doGet methode of the servlet
- * @param req http servlet request
- * @param res http servlet response
- * @throws ServletException servlet exception
- * @throws IOException io exception
- */
- @Override
- public void doGet(final HttpServletRequest req, final HttpServletResponse res) throws ServletException, IOException {
-
- // creating a new stateless EJB -> EJBCreate
- MyEjb1 bean = theEJB();
- try {
- bean.throwMyException();
- } catch (MyException e) {
- System.out.println("My Exception caught: invocation successful");
- req.setAttribute("expectedException", "OK");
- req.setAttribute("exception", e);
- } catch (Exception e) {
- System.out.println("Exception caught" + e);
- e.printStackTrace();
- req.setAttribute("expectedException", "KO");
- req.setAttribute("exception", e);
- }
-
- RequestDispatcher disp = req.getRequestDispatcher("../jsp/exceptionRsp.jsp");
- disp.forward(req, res);
-
- return;
- }
-}
\ No newline at end of file
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/servlets/ReleaseServlet.java b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/servlets/ReleaseServlet.java
deleted file mode 100644
index c1cafa1510bc319a6cf5b69cdff164714bd4aa32..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/servlets/ReleaseServlet.java
+++ /dev/null
@@ -1,110 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2005 Bull S.A.
- * Contact: jonas-team@objectweb.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * --------------------------------------------------------------------------
- * $Id:ReleaseServlet.java 14651 2008-07-28 11:50:13Z eyindanga $
- * --------------------------------------------------------------------------
- */
-
-package org.ow2.jonas.examples.cluster.j2ee14.servlets;
-
-import java.io.IOException;
-import java.rmi.RemoteException;
-
-import javax.ejb.Handle;
-import javax.ejb.RemoveException;
-import javax.rmi.PortableRemoteObject;
-import javax.servlet.RequestDispatcher;
-import javax.servlet.ServletException;
-import javax.servlet.http.Cookie;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-import javax.servlet.http.HttpSession;
-
-import org.objectweb.util.monolog.api.BasicLevel;
-import org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2.MyStateful;
-
-/**
- * @author goebelg Release an http session servlet
- */
-public class ReleaseServlet extends AbstractServlet {
-
- /**
- *
- */
- private static final long serialVersionUID = 1L;
-
- /**
- * doGet methode of the servlet
- * @param req http servlet request
- * @param res http servlet response
- * @throws ServletException servlet exception
- * @throws IOException io exception
- */
- @Override
- public void doGet(final HttpServletRequest req, final HttpServletResponse res) throws ServletException, IOException {
-
- // Get the session object to invalidate it
-
- HttpSession session = req.getSession(false);
- String sessionToReleaseInfo = "no session to invalidate";
- if (session != null) {
- sessionToReleaseInfo = "session=" + session.getId() + " invalidated";
- // Remove the SFSB if present
- // Retrieve or create the Stateful EJB to log history
- Handle h = (Handle) session.getAttribute("myStateful");
- if (h != null) {
- MyStateful statefulBean = (MyStateful) PortableRemoteObject.narrow(h.getEJBObject(), MyStateful.class);
- try {
- statefulBean.remove();
- } catch (RemoteException e) {
- e.printStackTrace();
- } catch (RemoveException e) {
- e.printStackTrace();
- }
- }
-
- session.invalidate();
- }
- getLogger().log(BasicLevel.INFO, sessionToReleaseInfo);
- req.setAttribute("sessionToReleaseInfo", sessionToReleaseInfo);
-
- Cookie[] cookies = req.getCookies();
- if (cookies != null) {
- Cookie ck = null;
- for (int i = 0; i < cookies.length; i++) {
- if (cookies[i].getName().equals("JSESSIONID")) {
- ck = (Cookie) cookies[i].clone();
- ck.setMaxAge(0);
- res.addCookie(ck);
- }
- }
- }
-
- // --------------
- // Write response
- // --------------
-
- RequestDispatcher disp = req.getRequestDispatcher("../jsp/releaseRsp.jsp");
- disp.forward(req, res);
-
- return;
- }
-}
\ No newline at end of file
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/servlets/SessionServlet.java b/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/servlets/SessionServlet.java
deleted file mode 100644
index 813a46e89d6017f666d3f6118eb6fad7c433456b..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-j2ee14/src/java/org/ow2/jonas/examples/cluster/j2ee14/servlets/SessionServlet.java
+++ /dev/null
@@ -1,159 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2005 Bull S.A.
- * Contact: jonas-team@objectweb.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * --------------------------------------------------------------------------
- * $Id:SessionServlet.java 14651 2008-07-28 11:50:13Z eyindanga $
- * --------------------------------------------------------------------------
- */
-
-package org.ow2.jonas.examples.cluster.j2ee14.servlets;
-
-import java.io.IOException;
-import java.util.Properties;
-
-import javax.ejb.Handle;
-import javax.rmi.PortableRemoteObject;
-import javax.servlet.RequestDispatcher;
-import javax.servlet.ServletException;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-import javax.servlet.http.HttpSession;
-
-import org.objectweb.util.monolog.api.BasicLevel;
-import org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2.MyEjb1;
-import org.ow2.jonas.examples.cluster.j2ee14.beans.samplecluster2.MyStateful;
-
-/**
- * @author goebelg
- *
- * servlet which manages the different instantiations of the ejbs
- */
-public class SessionServlet extends AbstractServlet {
-
- /**
- *
- */
- private static final long serialVersionUID = 1L;
-
- /**
- * doGet methode of the servlet
- * @param req http servlet request
- * @param res http servlet response
- * @throws ServletException servlet exception
- * @throws IOException io exception
- */
- @Override
- public void doGet(final HttpServletRequest req, final HttpServletResponse res) throws ServletException, IOException {
- String jonasEJBServer = null;
- String ejbId = null;
- String ejbTotalCallsCount = null;
- String ejbEntityCreated = null;
- Properties prop = null;
-
- /*
- * ---------------------------------------- Update the session context -
- * sessiontest.counter : number of times this servlet has been called -
- * sessiontest.jonas. : counts the number of time the EJB was
- * served by JOnAS instance
- * -----------------------------------------
- */
- HttpSession session = req.getSession(true);
-
- // update sessiontest.counter
-
- Integer ival = (Integer) session.getAttribute("sessiontest.counter");
- if (ival == null) { // If counter is not in session, then create it
- ival = new Integer(1);
- } else {
- ival = new Integer(ival.intValue() + 1);
- }
- session.setAttribute("sessiontest.counter", ival);
-
- // Call EJB then update sessiontest.jonas.x
-
- // creating a new stateless EJB -> EJBCreate
- MyEjb1 bean = theEJB();
- try {
- prop = bean.getInfoProps();
- jonasEJBServer = prop.getProperty("EJB server");
- ejbId = prop.getProperty("EJB id");
- ejbTotalCallsCount = prop.getProperty("EJB total calls");
- ejbEntityCreated = prop.getProperty("EJB server entity created");
- } catch (Exception e) {
- e.printStackTrace();
- }
-
- // Retrieve or create the Stateful EJB to log history
- Handle h = (Handle) session.getAttribute("myStateful");
- MyStateful statefulBean = null;
- if (h == null) {
-
- statefulBean = createStatefulEJB();
- if (statefulBean != null) {
- h = statefulBean.getHandle();
- session.setAttribute("myStateful", h);
- statefulBean.setHTTPSessionId(session.getId());
- }
- } else {
- statefulBean = (MyStateful) PortableRemoteObject.narrow(h.getEJBObject(), MyStateful.class);
- }
-
- if (!session.isNew()) {
- session.setAttribute("sessiontest.old.EJB", session.getAttribute("sessiontest.EJB"));
- session.setAttribute("sessiontest.old.WEB", session.getAttribute("sessiontest.WEB"));
- }
- session.setAttribute("sessiontest.EJB", jonasEJBServer);
- session.setAttribute("sessiontest.WEB", getMyJonasInstanceName());
-
- req.setAttribute("jonas.EJB.served.by", jonasEJBServer);
- req.setAttribute("jonas.WEB.served.by", getMyJonasInstanceName());
-
- session.setAttribute("sessiontest.jonas.EJB_Server", jonasEJBServer);
- session.setAttribute("sessiontest.jonas.EJB_id", ejbId);
- session.setAttribute("sessiontest.jonas.nb_EJB_totalCalls", ejbTotalCallsCount);
-
- // Log information
-
- getLogger().log(BasicLevel.INFO, "session=" + session.getId() + " on jonas=" + getMyJonasInstanceName()
- + " - calls=" + ival + " - EJB served by jonas=" + jonasEJBServer + " - EJB total calls="
- + ejbTotalCallsCount);
-
- if (statefulBean != null) {
- try {
- statefulBean.log("
" + "
" + getMyJonasInstanceName() + "
" + "
" + jonasEJBServer
- + "
" + "
" + ejbTotalCallsCount + "
" + "
" + ejbEntityCreated + "
"
- + "
");
- } catch (Exception e) {
- getLogger().log(BasicLevel.INFO, "session=" + session.getId()
- + " : Exception when calling MyStateful EJB (" + e.getMessage() + ")");
- session.removeAttribute("myStateful");
- }
- }
- // --------------
- // Write response
- // --------------
-
- RequestDispatcher disp = req.getRequestDispatcher("../jsp/sessionRsp.jsp");
- disp.forward(req, res);
-
- return;
- }
-}
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/PortConfiguration.txt b/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/PortConfiguration.txt
deleted file mode 100644
index 5deb5b340c9a3b53cc1824b3fd5cc9bc115b67c4..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/PortConfiguration.txt
+++ /dev/null
@@ -1,63 +0,0 @@
-
-This file shows a configuration of
-- a cluster of 4 JOnAS instances running on the same machine,
-- a master JOnAS instance to manage the domain, and
-- a db JOnAS instance
-The table below lists a possible configuration of all the ports used by those 6 JOnAS instances.
-In the following configuration we will deploy the entity beans on node3 and node4.
-The Web application is deployed on node1 and node2.
-
- __--- Node1 --- Node3 ---__
-Apache with mod_jk ---__ x __--- DB
- --- Node2 --- Node4 ---
-
- Web Ejb
- Container Container
-
-Note :
-- You have to activate the AJP Connector (tomcat6-server.xml) for node1 and node2
-in order to be able to communicate with the mod_jk module.
-Two different ports (for example 9010 and 9011) must be choosen.
-Configure the mod_jk to use the 2 instances.
-For further information please consult
- http://jonas.objectweb.org/JONAS_5_1_0/doc/doc-en/html/clustering_guide.html
-in the section -WEB clustering with Apache/Tomcat -
-
-- Please note that the database used to store the data of the entity beans has to be
-the same on both nodes where the ejb's are deployed.
-In this example we use the database HSQL mapped to the JNDI name jdbc_1.
-We will use the database started by db node, therefore the url defined in
-rajdbc.HSQL1.url of build-jc.properties, must be conform to the db.port defined in build-db.properties.
-In this example, we have to start the DB node before the node3 and node4.
-
-
-
-FILENAME PROPERTY DB NODE1 NODE2 NODE3 NODE4 MASTER
--------- -------- ----- ----- ----- ----- ----- ------
-
-
-jonas.properties
- jonas.service.db.port 9005 xxx xxx xxx xxx xxx
-
- jonas.service.discovery.source.port 9888 9888 9888 9888 9888 9888
- jonas.service.discovery.greeting.port 9903 9899 9900 9901 9902 9904
-
-tomcat6-server.xml
- :/sampleCluster3
- ex : http://localhost:80/sampleCluster3
-
-4) Stop the cluster:
-
-jcl4sc stop
-
-This allows to stop the cluster.
-
-
-You may type jcl4sc -help to get the usage of the command.
-
-
-
----------------------------
-Good luck!!
-=================================================================================
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/bin-client/clientConfig/carol.properties b/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/bin-client/clientConfig/carol.properties
deleted file mode 100644
index c59d0b2b43e19b38df27c8e613066292223210b1..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/bin-client/clientConfig/carol.properties
+++ /dev/null
@@ -1,101 +0,0 @@
-# Copyright (C) 2002-2007 ObjectWeb
-#
-# CAROL: Common Architecture for RMI ObjectWeb Layer
-#
-# This library is developed inside the ObjectWeb Consortium,
-# http://www.ow2.org
-#
-# This library 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 any later version.
-#
-# This library 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 library; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
-# USA
-#
-# --------------------------------------------------------------------------
-# $Id$
-# --------------------------------------------------------------------------
-
-# jonas rmi activation (iiop, irmi, jrmp)
-carol.protocols=jrmp
-
-# RMI IRMI URL
-carol.irmi.url=rmi://localhost:1099
-
-# RMI JRMP URL
-carol.jrmp.url=rmi://localhost:1099
-
-# RMI IIOP URL
-carol.iiop.url=iiop://localhost:1099
-
-######################################################################
-# Advanced Configuration for IRMI
-######################################################################
-# Exported objects will listen on this port for remote method
-# invocations.
-#A value of 0 will cause a random port to be selected.
-# This is the default value.
-# Warning : if the port is set (not 0) with the value 'n', be aware that
-# the port 'n + 1' will be used by the JMX server.
-# So, for the firewall configuration, you have to open the port numbers 'n'
-# and 'n+1'.
-carol.irmi.server.port=0
-
-# Use only a single interface when creating the registry
-# (specified in carol.irmi.url property)
-# Use all interfaces available [default configuration = false]
-carol.irmi.interfaces.bind.single=false
-
-######################################################################
-# Advanced Configuration for JRMP
-######################################################################
-# If true, local call with jrmp are optimized. If you get "ClassCastException
-# with 2 beans in different jars, you should set it at "false".
-carol.jvm.rmi.local.call=false
-
-# If true a local Naming context is used (to be used only with a collocated registry)
-carol.jvm.rmi.local.registry=true
-
-# The value of this port is used to set the port of the objects listener.
-# This allow to use this port for a firewall configuration.
-# If registry and server are on same host, the two ports to open are the following and the registry port.
-# 0 means random port [default configuration = 0]
-carol.jrmp.server.port=0
-
-# Use only a single interface when creating the registry
-# (specified in carol.jrmp.url property)
-# Use all interfaces available [default configuration = false]
-carol.jrmp.interfaces.bind.single=false
-
-
-######################################################################
-# Advanced Configuration for IIOP
-######################################################################
-# The value of this port is used to set the port of the objects listener.
-# This allow to use this port for a firewall configuration.
-# If registry and server are on same host, the two ports to open are the following and the registry port.
-# 0 means random port [default configuration = 0]
-carol.iiop.server.port=0
-
-# The value of this port is used to set the SSL port of the objects listener.
-# Note that this port musn't not be set to 0 as it is used for CsiV2.
-# but this port is used only if SSL mode is enable.
-# So by default, there is no listener on this port
-# [default configuration = not used]
-carol.iiop.server.sslport=2003
-
-# Delegate used by JOnAS for rmi-iiop protocol
-carol.iiop.PortableRemoteObjectClass=org.ow2.jonas.registry.carol.delegate.JacORBPRODelegate
-
-######################################################################
-# Advanced JNDI Configuration
-######################################################################
-carol.jndi.java.naming.factory.url.pkgs=org.ow2.jonas.lib.naming
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/bin-client/clientConfig/cmi-config.xml b/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/bin-client/clientConfig/cmi-config.xml
deleted file mode 100644
index 771a2ea092601c429128676491bcf63d9be87eb6..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/bin-client/clientConfig/cmi-config.xml
+++ /dev/null
@@ -1,55 +0,0 @@
-
-
-
-
-
-
-
- rmi://localhost:2032
- rmi://localhost:2043
-
-
-
-
-
-
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/bin-client/clientConfig/traceclient.properties b/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/bin-client/clientConfig/traceclient.properties
deleted file mode 100644
index c7bb2c21359c289d2600c50846b5cf44d9daada8..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/bin-client/clientConfig/traceclient.properties
+++ /dev/null
@@ -1,43 +0,0 @@
-# -----------------------------------------------------------------------
-# This is a default configuration file for monolog.
-#
-# Patterns for each handler may include these possible values :
-# %h the thread name
-# %O{1} the Class name (basename only)
-# %M the method name
-# %L the line number
-# %d the date
-# %l the level
-# %m the message itself
-# %n a new line
-#
-# Each logger inherits from its parent for properties not defined.
-# The root logger is "root". It must always be defined.
-#
-# Each logger is associated with a level that can be one of :
-# ERROR | WARN | INFO | DEBUG
-#
-# -> More info on http://www.objectweb.org/monolog/doc.html
-# -----------------------------------------------------------------------
-#
-# Define which wrapper to use (= javaLog)
-# -----------------------------------------------------------------------
-# For Log4j you need to add log4j.jar
-# log.config.classname org.objectweb.util.monolog.wrapper.log4j.MonologLoggerFactory
-log.config.classname org.objectweb.util.monolog.wrapper.javaLog.LoggerFactory
-
-# -----------------------------------------------------------------------
-# tty : console handler
-# -----------------------------------------------------------------------
-handler.tty.type Console
-handler.tty.output System.out
-handler.tty.pattern %O{1}.%M : %m%n
-
-# -----------------------------------------------------------------------
-# logger definitions
-# -----------------------------------------------------------------------
-logger.root.handler.0 tty
-
-logger.root.level ERROR
-#logger.org.ow2.carol.level DEBUG
-#logger.org.ow2.jonas.level DEBUG
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/bin-client/clientException.bat b/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/bin-client/clientException.bat
deleted file mode 100755
index 7a89a4d0f06e69af5b052b5a605042e977b92c3c..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/bin-client/clientException.bat
+++ /dev/null
@@ -1,3 +0,0 @@
-REM set JAVA_OPTS=-Dcmi.conf.url=clientConfig\cmi-config.xml
-REM set JAVA_OPTS=-Dcmi.disabled=true
-jclient %JONAS_BASE%\deploy\sampleCluster3.ear -jarClient clientexception.jar -carolFile clientConfig\carol.properties -traceFile clientConfig\traceclient.properties
\ No newline at end of file
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/bin-client/clientException.sh b/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/bin-client/clientException.sh
deleted file mode 100755
index af351049695215a861c6d6f50f42e19c4ecab900..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/bin-client/clientException.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-#export JAVA_OPTS=-Dcmi.conf.url=clientConfig/cmi-config.xml
-#export JAVA_OPTS=-Dcmi.disabled=true
-jclient $JONAS_BASE/deploy/sampleCluster3.ear -jarClient clientexception.jar -carolFile clientConfig/carol.properties -traceFile clientConfig/traceclient.properties
\ No newline at end of file
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/bin-client/clientFOSFSB.bat b/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/bin-client/clientFOSFSB.bat
deleted file mode 100755
index 24b2acc05cb65c86e98e3dc88d75378121dd5575..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/bin-client/clientFOSFSB.bat
+++ /dev/null
@@ -1,3 +0,0 @@
-REM set JAVA_OPTS=-Dcmi.conf.url=clientConfig\cmi-config.xml
-REM set JAVA_OPTS=-Dcmi.disabled=true
-jclient %JONAS_BASE%\deploy\sampleCluster3.ear -jarClient clientfosfsb.jar -carolFile clientConfig\carol.properties -traceFile clientConfig\traceclient.properties
\ No newline at end of file
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/bin-client/clientFOSFSB.sh b/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/bin-client/clientFOSFSB.sh
deleted file mode 100755
index e7da982925da88e4b2d110980cf29bd9f119d12a..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/bin-client/clientFOSFSB.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-#export JAVA_OPTS=-Dcmi.conf.url=clientConfig/cmi-config.xml
-#export JAVA_OPTS=-Dcmi.disabled=true
-jclient $JONAS_BASE/deploy/sampleCluster3.ear -jarClient clientfosfsb.jar -carolFile clientConfig/carol.properties -traceFile clientConfig/traceclient.properties
\ No newline at end of file
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/bin-client/clientLBRemote.bat b/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/bin-client/clientLBRemote.bat
deleted file mode 100755
index 027f6f777a9418053f3dde83bfca01c1271b9826..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/bin-client/clientLBRemote.bat
+++ /dev/null
@@ -1,3 +0,0 @@
-REM set JAVA_OPTS=-Dcmi.conf.url=clientConfig\cmi-config.xml
-REM set JAVA_OPTS=-Dcmi.disabled=true
-jclient %JONAS_BASE%\deploy\sampleCluster3.ear -jarClient clientlbremote.jar -carolFile clientConfig\carol.properties -traceFile clientConfig\traceclient.properties
\ No newline at end of file
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/bin-client/clientLBRemote.sh b/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/bin-client/clientLBRemote.sh
deleted file mode 100755
index d1997fa728bb3045bccae77c2fc35ab6015d4faf..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/bin-client/clientLBRemote.sh
+++ /dev/null
@@ -1,3 +0,0 @@
-#export JAVA_OPTS=-Dcmi.conf.url=clientConfig/cmi-config.xml
-#export JAVA_OPTS=-Dcmi.disabled=true
-jclient $JONAS_BASE/deploy/sampleCluster3.ear -jarClient clientlbremote.jar -carolFile clientConfig/carol.properties -traceFile clientConfig/traceclient.properties
\ No newline at end of file
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/build.properties b/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/build.properties
deleted file mode 100644
index 7e7445b10fa931427f24997a5e63f60033331d82..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/build.properties
+++ /dev/null
@@ -1,33 +0,0 @@
-# ---------------------------------------------------------------------------
-# JOnAS: Java(TM) Open Application Server
-# Copyright (C) 2008 Bull S.A.S
-# Contact: jonas-team@objectweb.org
-#
-# This library 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 any later version.
-#
-# This library 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 library; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
-# USA
-#
-# Initial developer(s): ____________________________________.
-# Contributor(s): ______________________________________.
-#
-# ---------------------------------------------------------------------------
-# $Id$
-# ---------------------------------------------------------------------------
-
-# Properties defined in this file could be customized
-
-# protocols for Carol (jrmp,iiop,cmi)
-protocols.names=jrmp,iiop
-#required JOnAS services to add to the manifest of the application.
-required.services=ejb3-client
\ No newline at end of file
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/build.xml b/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/build.xml
deleted file mode 100644
index 1e87c9ffca8b4fb3740b5118231e267141f5b80a..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/build.xml
+++ /dev/null
@@ -1,188 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/etc/resources/WEB-INF/web.xml b/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/etc/resources/WEB-INF/web.xml
deleted file mode 100644
index 3ba61bffaba25f2ad234f927cc3e7b15e5e1d7fb..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/etc/resources/WEB-INF/web.xml
+++ /dev/null
@@ -1,57 +0,0 @@
-
-
-
-
-
-
-
- sessionServlet
- org.ow2.jonas.examples.cluster.javaee5.servlets.SessionServlet
-
-
-
- releaseSessionServlet
- org.ow2.jonas.examples.cluster.javaee5.servlets.ReleaseServlet
-
-
-
- checkSessionServlet
- org.ow2.jonas.examples.cluster.javaee5.servlets.CheckServlet
-
-
-
- exceptionServlet
- org.ow2.jonas.examples.cluster.javaee5.servlets.ExceptionServlet
-
-
-
- exceptionServlet
- /servlet/exception
-
-
-
- sessionServlet
- /servlet/session
-
-
-
- releaseSessionServlet
- /servlet/release
-
-
-
- checkSessionServlet
- /servlet/check
-
-
-
- /index.html
-
-
-
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/etc/resources/application.xml b/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/etc/resources/application.xml
deleted file mode 100644
index ec946539cab2cb5f568b8e74bcec3f24a89d3734..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/etc/resources/application.xml
+++ /dev/null
@@ -1,73 +0,0 @@
-
-
-
-
-
-
- Cluster Java EE Sample
- Cluster Java EE Sample
-
-
-
- clientlbremote.jar
-
-
-
- clientfosfsb.jar
-
-
-
- clientexception.jar
-
-
-
-
- ejb3.jar
-
-
-
-
-
- sampleCluster3.war
- sampleCluster3
-
-
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/etc/resources/client.xml b/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/etc/resources/client.xml
deleted file mode 100644
index c3eb0b02bbe974fd5aec701e4d1d3698841ca7a5..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/etc/resources/client.xml
+++ /dev/null
@@ -1,37 +0,0 @@
-
-
-
-
-
- OW2 JOnAS :: Cluster Java EE example
-
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/etc/resources/jonas-client.xml b/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/etc/resources/jonas-client.xml
deleted file mode 100644
index 86b086555ef28e562953aebc06b37fae0d3a9f3f..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/etc/resources/jonas-client.xml
+++ /dev/null
@@ -1,33 +0,0 @@
-
-
-
-
-
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/etc/resources/persistence.xml b/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/etc/resources/persistence.xml
deleted file mode 100644
index 051059f7763aeb41dbe857d79fea3bcf6c3bddd0..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/etc/resources/persistence.xml
+++ /dev/null
@@ -1,42 +0,0 @@
-
-
-
-
-
- jdbc_1
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/etc/resources/policy/round-robin-policy.xml b/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/etc/resources/policy/round-robin-policy.xml
deleted file mode 100644
index 307e577c18505facf2aef5d58cabd663fa3bdebb..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/etc/resources/policy/round-robin-policy.xml
+++ /dev/null
@@ -1,35 +0,0 @@
-
-
-
-
-
- org.ow2.cmi.lb.policy.RoundRobin
-
-
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/etc/resources/web/index.html b/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/etc/resources/web/index.html
deleted file mode 100644
index 09bf411d3c7505e3ba05f221a798f4a4b5e954bb..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/etc/resources/web/index.html
+++ /dev/null
@@ -1,27 +0,0 @@
-
-
-
-
- sampleCluster3
-
-
-
-
Test the exception propagation from the server side to the client side : click here
-(exception servlet)
-
-
-
-
-
-
- Sample is OK.
-
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/etc/resources/web/jsp/checkRsp.jsp b/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/etc/resources/web/jsp/checkRsp.jsp
deleted file mode 100644
index 33b3d2578ad0e8ce2c25e98b2fcc4283114c6aa4..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/etc/resources/web/jsp/checkRsp.jsp
+++ /dev/null
@@ -1,22 +0,0 @@
-<%@ page session="false" %>
-<%
-Cookie[] cookies = request.getCookies();
-HttpSession session = request.getSession(false);
-%>
-
-
Check session
-
-
check Servlet output
-<%= (session != null ? "
Logged in.
Session ID: " + session.getId() + "
" : "
No session.
") %>
-<%
- if ( cookies != null)
- for (int i=0; i < cookies.length;i++)
- out.println(cookies[i].getName()+ ": " + cookies[i].getValue() + " ");
-%>
- <%=request.getAttribute("sessionCheckInfo")%>
->go to session,
-<% if (session != null) out.println("logout, ");%>
->check session,
->home.
- Sample is OK.
-
\ No newline at end of file
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/etc/resources/web/jsp/exceptionRsp.jsp b/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/etc/resources/web/jsp/exceptionRsp.jsp
deleted file mode 100644
index 7b41603aa4ec39f088fc93259cf528ead306e8a7..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/etc/resources/web/jsp/exceptionRsp.jsp
+++ /dev/null
@@ -1,13 +0,0 @@
-<%@ page session="false" %>
-
-
-<%
-if (cookies != null) {
- for (int i=0; i < cookies.length;i++)
- out.println(cookies[i].getName()+ ": " + cookies[i].getValue() + " ");
- out.println(" If present, the JSESSIONID cookie will be obsoleted. ");
-} else {
- out.println("None.");
-}
-%>
-
-
->go to session,
->check session,
->home.
- Sample is OK.
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/etc/resources/web/jsp/sessionRsp.jsp b/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/etc/resources/web/jsp/sessionRsp.jsp
deleted file mode 100644
index bd62ca78aca58e807ea1e053e559757a14f1362a..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/etc/resources/web/jsp/sessionRsp.jsp
+++ /dev/null
@@ -1,64 +0,0 @@
-<%@ page import="java.util.Enumeration" %>
-<%@ page import="java.util.Date" %>
-<%@ page import="javax.ejb.Handle" %>
-<%@ page import="org.ow2.jonas.examples.cluster.javaee5.beans.samplecluster3.*" %>
-<%@ page import="javax.rmi.PortableRemoteObject" %>
-<%
- Date dc = new Date(session.getCreationTime());
- Date da = new Date(session.getLastAccessedTime());
-%>
-
SessionServlet Output
-
-
SessionServlet Output
-
getRequestURL <%=request.getRequestURL()%>
- for the <%=session.getAttribute("sessiontest.counter")%> times.
-from <%=request.getRemoteAddr()%>(user is <%=request.getRemoteUser()%>)
-To server <%=request.getServerName()%> on port <%=request.getServerPort()%>.
-
-
Request path:
-Servlet executed on JOnAS instance (<%=request.getAttribute("jonas.WEB.served.by")%>)
-Stateless EJB executed on JOnAS instance (<%=request.getAttribute("jonas.EJB.served.by")%>)
-
-
-Sample is OK.
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/etc/xml/easybeans.xml b/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/etc/xml/easybeans.xml
deleted file mode 100644
index 75392e200b7cd97b63cf9b1481a9e4f02d169364..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/etc/xml/easybeans.xml
+++ /dev/null
@@ -1,27 +0,0 @@
-
-
-
-
-
- MyStatelessBean
-
- org.ow2.cmi.lb.policy.RoundRobin
- org.ow2.cmi.lb.strategy.LocalPreference
-
-
-
-
- MyStatefulBean
-
- org.ow2.cmi.lb.policy.RoundRobin
- org.ow2.cmi.lb.strategy.LocalPreference
-
-
-
-
- MyStatefulInnerBean
-
-
-
-
\ No newline at end of file
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/etc/xml/ejb-jar.xml b/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/etc/xml/ejb-jar.xml
deleted file mode 100644
index 92806c91336a8b0a36ececa2480210e5023560bd..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/etc/xml/ejb-jar.xml
+++ /dev/null
@@ -1,62 +0,0 @@
-
-
-
-
-
-
-
- Describe here the session bean MyStatelessHome
- MyStatelessHome
- MyStatelessBean
- org.ow2.jonas.examples.cluster.javaee5.beans.samplecluster3.MyStateless
- org.ow2.jonas.examples.cluster.javaee5.beans.samplecluster3.MyStatelessBean
- Stateless
- Container
-
-
-
- Describe here the session bean MyStatefulHome
- MyStatefulHome
- MyStatefulBean
- org.ow2.jonas.examples.cluster.javaee5.beans.samplecluster3.MyStateful
- org.ow2.jonas.examples.cluster.javaee5.beans.samplecluster3.MyStatefulBean
- Stateful
- Container
-
-
-
- Describe here the session bean MyStatefulInnerHome
- MyStatefulInnerHome
- MyStatefulInnerBean
- org.ow2.jonas.examples.cluster.javaee5.beans.samplecluster3.MyStatefulInner
- org.ow2.jonas.examples.cluster.javaee5.beans.samplecluster3.MyStatefulInnerBean
- Stateful
- Container
-
-
-
\ No newline at end of file
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/example-config/tomcat6-jk.conf b/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/example-config/tomcat6-jk.conf
deleted file mode 100644
index 9e58496394904b06b6623becb5d4185b903ab662..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/example-config/tomcat6-jk.conf
+++ /dev/null
@@ -1,23 +0,0 @@
-
-LoadModule jk_module modules/mod_jk.so
-# Location of the worker file
-JkWorkersFile conf/jk\workers.properties
-# Location of the log file
-JkLogFile conf/jk\mod_jk.log
-# Log level : debug, info, error or emerg
-JkLogLevel emerg
-# Shared Memory Filename ( Only for Unix platform ) required by loadbalancer
-JkShmFile conf/jk\jk.shm
-# Assign specific URL to Tomcat workers
-JkMount /sampleCluster3 loadbalancer
-JkMount /sampleCluster3/* loadbalancer
-# A mount point to the status worker
-JkMount /jkmanager jkstatus
-JkMount /jkmanager/* jkstatus
-# Enable the Jk manager access only from localhost
-
- JkMount jkstatus
- Order deny,allow
- Deny from all
- Allow from 127.0.0.1
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/example-config/tomcat6-mod_jk.xml b/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/example-config/tomcat6-mod_jk.xml
deleted file mode 100644
index c1060a8ca7c6ede6ec40a1c750977a4b658b48c0..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/example-config/tomcat6-mod_jk.xml
+++ /dev/null
@@ -1,184 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/example-config/workers.properties b/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/example-config/workers.properties
deleted file mode 100644
index 9738a3a7773a3ccaa25e7676c75af43e06e883bb..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/example-config/workers.properties
+++ /dev/null
@@ -1,42 +0,0 @@
-
-# -----------------------
-# List the workers name
-# -----------------------
-worker.list=loadbalancer,jkstatus
-
-# -----------------------
-# worker1
-# -----------------------
-worker.worker1.port=9010
-worker.worker1.host=localhost
-worker.worker1.type=ajp13
-# Load balance factor
-worker.worker1.lbfactor=1
-# Define prefered failover node for worker1
-#worker.worker1.redirect=worker2
-# Disable worker1 for all requests except failover
-#worker.worker1.disabled=True
-
-# -----------------------
-# worker2
-# -----------------------
-worker.worker2.port=9011
-worker.worker2.host=localhost
-worker.worker2.type=ajp13
-# Load balance factor
-worker.worker2.lbfactor=1
-# Define prefered failover node for worker2
-#worker.worker2.redirect=worker2
-# Disable worker2 for all requests except failover
-#worker.worker2.disabled=True
-
-# -----------------------
-# Load Balancer worker
-# -----------------------
-worker.loadbalancer.type=lb
-worker.loadbalancer.balanced_workers=worker1,worker2
-worker.loadbalancer.sticky_session=false
-# -----------------------
-# jkstatus worker
-# -----------------------
-worker.jkstatus.type=status
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/src/java/org/ow2/jonas/examples/cluster/javaee5/beans/samplecluster3/MyException.java b/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/src/java/org/ow2/jonas/examples/cluster/javaee5/beans/samplecluster3/MyException.java
deleted file mode 100644
index 0b1643149ccd2e8b53b862f1728d1fd8d54a7c04..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/src/java/org/ow2/jonas/examples/cluster/javaee5/beans/samplecluster3/MyException.java
+++ /dev/null
@@ -1,58 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2008 Bull S.A.S
- * Contact: jonas-team@objectweb.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * Initial developer(s):
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-package org.ow2.jonas.examples.cluster.javaee5.beans.samplecluster3;
-
-
-/**
- * @author
- * application exception
- */
-public class MyException extends Exception {
-
- /**
- * UID
- */
- private static final long serialVersionUID = 110L;
-
-
- /**
- * Default Constructor
- *
- */
- public MyException() {
- super();
- }
-
- /**
- * Constructor
- * @param msg message associated with the exception
- */
- public MyException(final String msg) {
- super(msg);
- }
-
-}
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/src/java/org/ow2/jonas/examples/cluster/javaee5/beans/samplecluster3/MyStateful.java b/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/src/java/org/ow2/jonas/examples/cluster/javaee5/beans/samplecluster3/MyStateful.java
deleted file mode 100644
index b6357044b76cbe9d3090f3e3bd19d758a4060846..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/src/java/org/ow2/jonas/examples/cluster/javaee5/beans/samplecluster3/MyStateful.java
+++ /dev/null
@@ -1,93 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2008 Bull S.A.S.
- * Contact: jonas-team@ow2.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-
-package org.ow2.jonas.examples.cluster.javaee5.beans.samplecluster3;
-
-import javax.ejb.Handle;
-
-
-/**
- * MyStateful remote interface
- */
-public interface MyStateful {
-
- /**
- * Initializes the inner beans
- */
- void initialize();
-
- /**
- * Keep the parameter in a list. Note : the parameter represents a line in
- * the "session servlet output" screen
- * @param s The string to keep.
- */
- void log(java.lang.String s);
-
- /**
- * Keep the parameter in a list keeping track of the JOnAS instance
- * @param s The string to keep.
- */
- void logWithJOnASInstance(java.lang.String s);
-
- /**
- * Retreive all the data in the log table Note : The return value is the
- * data shown in the "session servlet output" screen
- * @return All the logged data
- */
- java.lang.StringBuffer getLogDump();
-
- /**
- * Retreive all the data in the log table Note : The return value is the
- * text format (calls from the java client)
- * @return All the logged data
- */
- java.lang.StringBuffer getLogTextDump();
-
-
- /**
- * Set the http sessionid of the caller.
- * @param s The sessionid of the caller.
- */
- void setHTTPSessionId(java.lang.String s);
-
- /**
- * Get the stored http sessionid of the caller.
- * @return The stored sessionid.
- */
- java.lang.String getHTTPSessionId();
-
- /**
- *
- * @return handle on the SFSB
- */
- Handle getMyHandle();
-
- /**
- * Cleanup/Remove
- */
- void cleanup();
-
-
-}
\ No newline at end of file
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/src/java/org/ow2/jonas/examples/cluster/javaee5/beans/samplecluster3/MyStatefulBean.java b/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/src/java/org/ow2/jonas/examples/cluster/javaee5/beans/samplecluster3/MyStatefulBean.java
deleted file mode 100644
index ba939dc5a542bf0d6e1c25459381a6d5b8419590..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/src/java/org/ow2/jonas/examples/cluster/javaee5/beans/samplecluster3/MyStatefulBean.java
+++ /dev/null
@@ -1,375 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2008 Bull S.A.S.
- * Contact: jonas-team@ow2.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-
-package org.ow2.jonas.examples.cluster.javaee5.beans.samplecluster3;
-
-
-import java.rmi.RemoteException;
-import java.util.ArrayList;
-import java.util.Date;
-import java.util.Iterator;
-
-import javax.annotation.PostConstruct;
-import javax.annotation.Resource;
-import javax.ejb.EJB;
-import javax.ejb.Handle;
-import javax.ejb.Remote;
-import javax.ejb.Remove;
-import javax.ejb.SessionContext;
-import javax.ejb.SessionSynchronization;
-import javax.ejb.Stateful;
-import javax.persistence.EntityManager;
-import javax.persistence.PersistenceContext;
-
-import org.ow2.cmi.annotation.Cluster;
-import org.ow2.cmi.annotation.Policy;
-import org.ow2.cmi.annotation.Strategy;
-import org.ow2.cmi.lb.policy.RoundRobin;
-import org.ow2.cmi.lb.strategy.LocalPreference;
-import org.ow2.jonas.lib.bootstrap.JProp;
-import org.ow2.util.log.Log;
-import org.ow2.util.log.LogFactory;
-
-/**
- *
- */
-@Stateful
-@Remote(MyStateful.class)
-@Cluster(name="cluster-javaee5", isReplicated=false)
-@Policy(RoundRobin.class)
-@Strategy(LocalPreference.class)
-public class MyStatefulBean implements SessionSynchronization,MyStateful {
-
- /**
- *
- */
- private static final long serialVersionUID = 1L;
-
- /**
- * Entity manager used by this bean.
- */
- @PersistenceContext
- private EntityManager entityManager = null;
-
- /**
- * Session context
- */
- @Resource
- private SessionContext sessionContext = null;
- /**
- * The logger.
- */
- private Log logger = LogFactory.getLog(MyStatefulBean.class);
-
- /**
- * The JOnAS node name where the bean is executed
- * the field is transient because we don't want to passivate or replicate it
- */
- private transient String creatorJonasInstanceName = "unknown";
-
- /**
- * The maximum number of values to conserve
- */
- private static final int MAXSIZE = 20;
-
- /**
- * The log output
- */
- private ArrayList log = null;
-
- /**
- * caller http session id
- */
- private String callerHTTPSessionId = null;
-
- @EJB
- private MyStatefulInner localStateful = null;
-
- private Node localEntity = null;
-
- private transient boolean isModified = true;
-
- /**
- * After the transaction begun
- */
- public void afterBegin() {
- logger.debug("");
- }
-
- /**
- * before the commit is executed
- */
- public void beforeCompletion() {
- logger.debug("");
- }
-
- /**
- * after the commit or rollback
- * @param committed true -> commit, false -> rollback
- */
- public void afterCompletion(final boolean committed) {
- logger.debug("");
- }
-
- /**
- * Init
- */
- @PostConstruct
- public void init() {
- creatorJonasInstanceName = "unknown";
- try {
- JProp jp = JProp.getInstance();
- creatorJonasInstanceName = jp.getValue("jonas.name");
- } catch (Exception e) {
- logger.fatal(e.getMessage(), e);
- }
-
- log = new ArrayList(MAXSIZE);
- logger.debug("->" + this.toString());
- isModified = true;
- }
-
- /**
- * Initializes the inner beans
- */
- public void initialize() {
- logger.debug("");
- Date date = new Date();
- isModified = true;
- }
-
- /**
- * Keep the parameter in a list. Note : the parameter represents a line in
- * the "session servlet output" screen
- * @param s The string to keep.
- */
- public void log(final java.lang.String s) {
- logger.debug("");
-
- if (log.size() == MAXSIZE) {
- Iterator iter = log.iterator();
- iter.next();
- iter.remove();
- }
-
- log.add(s);
-
- // Call local stateful
- getLocalStateful().increment();
-
- isModified = true;
- }
-
- /**
- * Keep the parameter in a list with the source node
- * @param s The string to keep.
- * @throws RemoteException
- */
- public void logWithJOnASInstance(final java.lang.String s) {
- logger.debug("");
-
- if (log.size() == MAXSIZE) {
- Iterator iter = log.iterator();
- iter.next();
- iter.remove();
- }
-
- log.add("JOnAS instance=" + creatorJonasInstanceName + " - " + s);
-
- // Call local stateful
- getLocalStateful().increment();
-
- isModified = true;
- }
- /**
- * Retreive all the data in the log table Note : The return value is the
- * data shown in the "session servlet output" screen
- * @return All the logged data
- */
- public java.lang.StringBuffer getLogDump() {
- logger.debug("");
-
- StringBuffer sb = new StringBuffer();
- sb.append("JOnAS instance=");
- sb.append(creatorJonasInstanceName);
- sb.append(" ; EJB=");
- sb.append(this.toString());
- sb.append("\n");
- sb.append("Owner: ");
- sb.append(callerHTTPSessionId);
- sb.append("\n");
-
- sb.append("Inner count: ");
- sb.append(getLocalStateful().getCount());
- sb.append("\n");
-
- sb.append("Local entity: ");
- sb.append(getLocalEntity().getName());
- sb.append("\n");
-
- Iterator iter = log.iterator();
-
- sb.append("
");
-
- logger.info(sb.toString());
- return sb;
- }
-
- /**
- * Retreive all the data in the log table Note : The return value is the
- * text format (calls from the java client)
- * @return All the logged data
- */
- public java.lang.StringBuffer getLogTextDump() {
- logger.debug("");
-
- StringBuffer sb = new StringBuffer();
- sb.append("JOnAS instance=");
- sb.append(creatorJonasInstanceName);
- sb.append(" ; EJB=");
- sb.append(this.toString());
- sb.append("\n");
-
- sb.append("Inner count: ");
- sb.append(getLocalStateful().getCount());
- sb.append("\n");
-
- sb.append("Local entity: ");
- sb.append(getLocalEntity().getName());
- sb.append("\n");
-
- Iterator iter = log.iterator();
- int i = 1;
- sb.append("Log entries -> \n");
- while (iter.hasNext()) {
- sb.append(" " + i + " : ");
- sb.append(iter.next());
- sb.append("\n");
- i++;
- }
- sb.append("End\n");
-
- logger.info(sb.toString());
- return sb;
- }
-
- /**
- * Set the http sessionid of the caller.
- * @param s The sessionid of the caller.
- * @throws RemoteException
- */
- public void setHTTPSessionId(final java.lang.String s) {
- logger.debug("");
- callerHTTPSessionId = s;
- isModified = true;
- }
-
- /**
- * Get the stored http sessionid of the caller.
- * @return The stored sessionid.
- * @throws RemoteException
- */
- public java.lang.String getHTTPSessionId() {
- logger.debug("");
- return callerHTTPSessionId;
- }
-
- /**
- *
- * @return the local stateful bean
- */
- private MyStatefulInner getLocalStateful() {
- return localStateful;
- }
-
- /**
- * Creates a new Entity bean with the time as parameter
- * @param valeur The current time as string
- * @return A new Entity Bean
- */
- private Node createEntity(final String valeur) {
-
- Node node = new Node() ;
- node.setName(valeur);
- node.setInvocationNumber(1);
-
- entityManager.persist(node);
-
- logger.info("node.name=", valeur );
-
- return node;
- }
-
- /**
- * Returns the local entity bean
- * @return the local entity bean
- */
- private Node getLocalEntity() {
- if (localEntity == null) {
- Date date = new Date();
- localEntity = createEntity("SFSB_" + creatorJonasInstanceName + "_" + Long.toString(date.getTime()));
- isModified = true;
- }
- return localEntity;
- }
-
- public boolean isModified() {
- boolean result = isModified;
- isModified = false;
- return result;
- }
-
- /**
- * @return handle on the stateful
- */
- public Handle getMyHandle() {
- Handle handle = null;
- try {
- handle = sessionContext.getEJBObject().getHandle();
- } catch (RemoteException e) {
- logger.error("Unable to get SFSB handle", e);
- } catch (IllegalStateException e) {
- logger.error("Unable to get SFSB handle", e);
- }
- return handle;
- }
-
-
- /**
- * cleanup all fields
- */
- @Remove
- public void cleanup() {
- logger.debug("cleanup all fields");
- this.localEntity = null;
- this.log = null;
- this.callerHTTPSessionId = null;
- }
-}
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/src/java/org/ow2/jonas/examples/cluster/javaee5/beans/samplecluster3/MyStatefulInner.java b/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/src/java/org/ow2/jonas/examples/cluster/javaee5/beans/samplecluster3/MyStatefulInner.java
deleted file mode 100644
index 353a8befef6cc4d12df73586659f807ee978fde8..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/src/java/org/ow2/jonas/examples/cluster/javaee5/beans/samplecluster3/MyStatefulInner.java
+++ /dev/null
@@ -1,35 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2008 Bull S.A.S
- * Contact: jonas-team@objectweb.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * Initial developer(s):
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-package org.ow2.jonas.examples.cluster.javaee5.beans.samplecluster3;
-
-/**
- * @author pelletib
- * MyStateful local interface
- */
-public interface MyStatefulInner {
- void increment();
- int getCount();
-}
\ No newline at end of file
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/src/java/org/ow2/jonas/examples/cluster/javaee5/beans/samplecluster3/MyStatefulInnerBean.java b/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/src/java/org/ow2/jonas/examples/cluster/javaee5/beans/samplecluster3/MyStatefulInnerBean.java
deleted file mode 100644
index 296ec00700a797c64eadaefe8cec2ea063de91e7..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/src/java/org/ow2/jonas/examples/cluster/javaee5/beans/samplecluster3/MyStatefulInnerBean.java
+++ /dev/null
@@ -1,112 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2008 Bull S.A.S
- * Contact: jonas-team@objectweb.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * Initial developer(s):
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-package org.ow2.jonas.examples.cluster.javaee5.beans.samplecluster3;
-
-
-import javax.ejb.Local;
-import javax.ejb.SessionSynchronization;
-import javax.ejb.Stateful;
-
-import org.ow2.util.log.Log;
-import org.ow2.util.log.LogFactory;
-
-/**
- * Inner statefull
- * @author pelletib
- */
-@Stateful
-@Local(MyStatefulInner.class)
-public class MyStatefulInnerBean implements SessionSynchronization,MyStatefulInner {
-
- /**
- * The logger.
- */
- private Log logger = LogFactory.getLog(MyStatefulInnerBean.class);
-
- /**
- *
- */
- private static final long serialVersionUID = 1L;
-
- /**
- * counter
- */
- private int count = 0;
-
- /**
- * Modifier flag
- */
- private transient boolean isModified = true;
-
- /**
- * After the transaction begun
- */
- public void afterBegin() {
- logger.debug("afterBegin");
- }
-
- /**
- * before the commit is executed
- */
- public void beforeCompletion() {
- logger.debug("beforeCompletion");
- }
-
- /**
- * after the commit or rollback
- * @param committed true -> commit, false -> rollback
- */
- public void afterCompletion(final boolean committed) {
- logger.debug("afterCompletion: " + committed);
- }
-
-
- /**
- * increment the local counter
- */
- public void increment() {
- count++;
- isModified = true;
- }
-
- /**
- * @return local counter
- */
- public int getCount() {
- return count;
- }
-
- /**
- *
- * @return true if the counter is modified
- */
- public boolean isModified() {
- boolean result = isModified;
- isModified = false;
- return result;
- }
-}
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/src/java/org/ow2/jonas/examples/cluster/javaee5/beans/samplecluster3/MyStateless.java b/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/src/java/org/ow2/jonas/examples/cluster/javaee5/beans/samplecluster3/MyStateless.java
deleted file mode 100644
index 5839c0526fcc7bfa7c97490bd95963b055641cf5..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/src/java/org/ow2/jonas/examples/cluster/javaee5/beans/samplecluster3/MyStateless.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2008 Bull S.A.S
- * Contact: jonas-team@objectweb.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * Initial developer(s):
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-
-package org.ow2.jonas.examples.cluster.javaee5.beans.samplecluster3;
-
-import java.util.Properties;
-import java.rmi.RemoteException;
-
-/**
- * MyStateless interface.
- */
-public interface MyStateless {
-
- /**
- * Access a property stored in the JOnAS instance executing the EJB
- * container.
- * @param prop Name of the property
- * @return The value of the property
- */
- String getProperty(String prop);
-
- /**
- * Retreive some information of the JOnAS instance executing the EJB
- * container The names of the properties are : EJB server, EJB id, EJB
- * instance calls, EJB total calls - EJB server : name of the JOnAS instance -
- * EJB id : toString() of the MyEjb1 - EJB instance calls : number of calls
- * to this EJB instance - EJB total calls : number of calls to this EJB for
- * all instance of class MyEjb1
- * @return The Properties
- */
- Properties getInfoProps();
-
- /**
- * Throw a MyException
- * @throws RemoteException remote exception
- * @throws MyException application exception
- */
- void throwMyException() throws MyException;
-
-}
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/src/java/org/ow2/jonas/examples/cluster/javaee5/beans/samplecluster3/MyStatelessBean.java b/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/src/java/org/ow2/jonas/examples/cluster/javaee5/beans/samplecluster3/MyStatelessBean.java
deleted file mode 100644
index f82b36f7a90e9ea5dcc76aa1afdd4d4d8e865d82..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/src/java/org/ow2/jonas/examples/cluster/javaee5/beans/samplecluster3/MyStatelessBean.java
+++ /dev/null
@@ -1,173 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2008 Bull S.A.S.
- * Contact: jonas-team@ow2.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-
-package org.ow2.jonas.examples.cluster.javaee5.beans.samplecluster3;
-
-import static org.ow2.jonas.examples.cluster.javaee5.beans.samplecluster3.Node.QN.FIND_NODE;
-
-import java.util.List;
-import java.util.Properties;
-
-import javax.ejb.Remote;
-import javax.ejb.Stateless;
-import javax.persistence.EntityManager;
-import javax.persistence.PersistenceContext;
-import javax.persistence.Query;
-
-import org.ow2.cmi.annotation.Cluster;
-import org.ow2.cmi.annotation.Policy;
-import org.ow2.cmi.annotation.Strategy;
-import org.ow2.cmi.lb.policy.RoundRobin;
-import org.ow2.cmi.lb.strategy.LocalPreference;
-import org.ow2.jonas.lib.bootstrap.JProp;
-import org.ow2.util.log.Log;
-import org.ow2.util.log.LogFactory;
-
-/**
- * This is an example of Session Bean, stateless
- * @author pelletib
- */
-@Stateless
-@Remote(MyStateless.class)
-@Cluster(name="cluster-javaee5")
-@Policy(RoundRobin.class)
-@Strategy(LocalPreference.class)
-public class MyStatelessBean implements MyStateless {
-
- /**
- * Entity manager used by this bean.
- */
- @PersistenceContext
- private EntityManager entityManager = null;
-
- /**
- * The logger.
- */
- private Log logger = LogFactory.getLog(MyStatelessBean.class);
-
-
- /**
- * Find a given {@link Node} using it's name as a key.
- * @param name {@link Node}'s name.
- * @return the first {@link Node} that matches the given name.
- */
- @SuppressWarnings("unchecked")
- private Node findNode(final String name) {
- Query query = entityManager.createNamedQuery(FIND_NODE);
- query.setParameter("name", name);
- List nodes = query.getResultList();
- if (nodes != null && nodes.size() > 0) {
- return nodes.get(0);
- }
- return null;
- }
-
- /**
- *
- * @return the JOnAS instance name
- * @throws Exception if the property is not present
- */
- private String getName() throws Exception {
-
- try {
- JProp jp = JProp.getInstance();
- return jp.getValue("jonas.name");
- } catch (Exception e) {
- logger.error("Error while getting 'jonas.name' property", e);
- throw e;
- }
- }
-
- /**
- * Updates the properties described above
- * @param name JOnAS instance name
- */
- private int updateStatistics(final String name) {
-
- Node node = findNode(name);
- if (node == null) {
- node = new Node() ;
- node.setName(name);
- node.setInvocationNumber(1);
- } else {
- node.setInvocationNumber(node.getInvocationNumber() + 1);
- }
- entityManager.persist(node);
-
- logger.info("JOnAS={0} ; ejb={1} ; total calls={2}", name, this.toString(), node.getInvocationNumber() );
- return node.getInvocationNumber();
- }
-
-
- /**
- * @return get properties about processing node
- */
- public Properties getInfoProps() {
- String name;
- try {
- name = getName();
- } catch (Exception e) {
- e.printStackTrace();
- return null;
- }
- int in = updateStatistics(name);
- Properties p = new Properties();
- p.setProperty("EJB server", name);
- p.setProperty("EJB id", this.toString());
- p.setProperty("EJB total calls", (new Integer(in)).toString());
- return p;
- }
-
- /**
- * @return get a property value
- */
- public String getProperty(final String prop) {
- String s = "unknown";
- try {
- JProp jp = JProp.getInstance();
- s = jp.getValue(prop);
- } catch (Exception e) {
- logger.fatal("Error while getProperty)(", e);
- return null;
- }
- return s;
-
- }
-
- /**
- * @throws MyException generates an exception
- */
- public void throwMyException() throws MyException {
- String name = "";
- try {
- name = getName();
- } catch (Exception e) {
- e.printStackTrace();
- }
- throw new MyException("From MyStateless(" + name + ")");
-
- }
-
-}
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/src/java/org/ow2/jonas/examples/cluster/javaee5/beans/samplecluster3/Node.java b/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/src/java/org/ow2/jonas/examples/cluster/javaee5/beans/samplecluster3/Node.java
deleted file mode 100644
index 05ffec728d65e49a01654219e8297380d9b614cf..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/src/java/org/ow2/jonas/examples/cluster/javaee5/beans/samplecluster3/Node.java
+++ /dev/null
@@ -1,162 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2008 Bull S.A.S.
- * Contact: jonas-team@ow2.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-
-
-package org.ow2.jonas.examples.cluster.javaee5.beans.samplecluster3;
-
-import static org.ow2.jonas.examples.cluster.javaee5.beans.samplecluster3.Node.QN.ALL_NODES;
-import static org.ow2.jonas.examples.cluster.javaee5.beans.samplecluster3.Node.QN.FIND_NODE;
-
-import java.io.Serializable;
-
-import javax.persistence.Entity;
-import javax.persistence.GeneratedValue;
-import javax.persistence.GenerationType;
-import javax.persistence.Id;
-import javax.persistence.NamedQueries;
-import javax.persistence.NamedQuery;
-
-/**
- * Node
- * @author pelletib
- */
-@Entity
-@NamedQueries({@NamedQuery(name=ALL_NODES, query="select o FROM Node o"),
- @NamedQuery(name=FIND_NODE, query="select o FROM Node o WHERE name = :name")})
-public class Node implements Serializable {
- /**
- * Store Query names.
- */
- public static interface QN {
- /**
- * Search all authors.
- */
- String ALL_NODES = "Node.allNodes";
-
- /**
- * Search a named author.
- */
- String FIND_NODE = "Node.findNode";
- }
-
- /**
- * Serial Version UID.
- */
- private static final long serialVersionUID = 0L;
-
- /**
- * Primary key (will be auto generated).
- */
- private long id;
-
- /**
- * Name of the node.
- */
- private String name = null;
-
- /**
- * Creating time of the bean.
- */
- private int invocationNumber = 0;
-
-
- /**
- * Default constructor.
- */
- public Node() {
- }
-
- /**
- * Constructor with a given node name.
- * @param name - the name of the node
- */
- public Node(final String name) {
- this();
- setName(name);
- }
-
- /**
- * @return name of the node
- */
- public String getName() {
- return name;
- }
-
- /**
- * Sets the name of the node.
- * @param name - the name of this node
- */
- public void setName(final String name) {
- this.name = name;
- }
-
- /**
- * @return creating time of the bean
- */
- public int getInvocationNumber() {
- return invocationNumber;
- }
-
- /**
- * Sets the creating time of the bean.
- * @param number - the creating time of the bean
- */
- public void setInvocationNumber(final int invocationNumber) {
- this.invocationNumber = invocationNumber;
- }
-
- /**
- * @return an id for this object (incremented automatically)
- */
- @Id
- @GeneratedValue(strategy=GenerationType.AUTO)
- public long getId() {
- return this.id;
- }
-
- /**
- * Sets the id of this node object.
- * @param id the given id of this node
- */
- public void setId(final long id) {
- this.id = id;
- }
-
- /**
- * @return String representation of this entity object.
- */
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder(this.getClass().getName());
- sb.append("[id=");
- sb.append(getId());
- sb.append(", name=");
- sb.append(getName());
- sb.append(", invocationNumber=");
- sb.append(Integer.valueOf(getInvocationNumber()).toString());
- sb.append("]");
- return sb.toString();
- }
-}
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/src/java/org/ow2/jonas/examples/cluster/javaee5/client/ClientBase.java b/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/src/java/org/ow2/jonas/examples/cluster/javaee5/client/ClientBase.java
deleted file mode 100644
index b2ecab44b9b2a052d10c47b081103d6e3907ec50..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/src/java/org/ow2/jonas/examples/cluster/javaee5/client/ClientBase.java
+++ /dev/null
@@ -1,122 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2009 Bull S.A.S
- * Contact: jonas-team@ow2.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * Initial developer(s):
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-package org.ow2.jonas.examples.cluster.javaee5.client;
-
-import java.io.FileOutputStream;
-import java.io.PrintStream;
-
-public class ClientBase {
-
- /**
- * Iteration number
- */
- private static final int ITERATION_NB = 50;
-
- /**
- * Default time to sleep.
- */
- private static final long TIME2SLEEP = 10000;
-
- /**
- * Output to be used.
- */
- protected PrintStream out = null;
- /**
- * the name of the client.
- */
- protected String clientName = "JOnAS Client for cluster-javaee5";
-
- /**
- * Time to sleep each 10 iterations.
- */
- protected long time2sleep = 10000;
-
- /**
- * Iterations number.
- */
- protected int iterations = ITERATION_NB;
-
- public ClientBase() {
- }
-
- public ClientBase(final String[] args) {
- initArgs(args);
- }
-
- private void initArgs(final String[] args) {
- out = System.out;
- String url = null;
- if(args != null && args.length != 0) {
- for (int argn = 0; argn < args.length; argn++) {
- String arg = args[argn];
- if("-out".equals(arg)) {
- url = args[++argn];
- continue;
- }else if ("-clientName".equals(arg)) {
- clientName = args[++argn];
- out.println("Client name set to : " + clientName);
- continue;
- }else if ("-time2sleep".equals(arg)) {
- String time = args[++argn];
- try {
- time2sleep = Long.parseLong(time);
- } catch (NumberFormatException e) {
- time2sleep = TIME2SLEEP;
- }
- out.println("Time to sleep set to : " + time2sleep);
- continue;
- }else if ("-iterations".equals(arg)) {
- String it = args[++argn];
- try {
- iterations = Integer.parseInt(it);
- } catch (Exception e) {
- // TODO: handle exception
- iterations = ITERATION_NB;
- }
- out.println("Number of iterations set to : " + iterations);
- continue;
- }
- }
- }
- if (url != null) {
- initOut(url);
- }
- }
- /**
- * Initializes client output.
- * @param url Stringified url of the client output file.
- */
- private void initOut(final String url) {
- try {
- FileOutputStream file = new FileOutputStream(url, true);
- out.println("Initializing output '" + url + "' for " + clientName);
- out = new PrintStream(file, true);
- } catch (Exception e) {
- out.println("Unable to initialize output for " + clientName + " because : " + e);
- }
- }
-
-}
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/src/java/org/ow2/jonas/examples/cluster/javaee5/client/ClientException.java b/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/src/java/org/ow2/jonas/examples/cluster/javaee5/client/ClientException.java
deleted file mode 100644
index 94f6c99525ecba004780e3cc6a87d82e62e8fcfa..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/src/java/org/ow2/jonas/examples/cluster/javaee5/client/ClientException.java
+++ /dev/null
@@ -1,96 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2006 Bull S.A.S
- * Contact: jonas-team@objectweb.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * Initial developer(s):
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-
-package org.ow2.jonas.examples.cluster.javaee5.client;
-
-import javax.ejb.EJB;
-
-import org.ow2.jonas.examples.cluster.javaee5.beans.samplecluster3.MyException;
-import org.ow2.jonas.examples.cluster.javaee5.beans.samplecluster3.MyStateless;
-
-
-/**
- * Fat client :
- * - get an exception
- */
-public class ClientException extends ClientBase {
-
- /**
- * Link to the SSB.
- */
- @EJB
- private static MyStateless myStateless = null;
-
- /**
- * Private constructor for utility class
- *
- */
- private ClientException() {
- }
-
- /**
- * Private constructor for utility class
- *
- */
- private ClientException(final String[] args) {
- super(args);
- }
-
- /**
- * Starts the client.
- * @return
- */
- private int start() {
- out.println("------------------------------------------");
- out.println("Bean created -> " + myStateless);
- out.println("------------------------------------------");
-
- try {
- out.println("Throw an exception at the server side");
- myStateless.throwMyException();
- } catch (MyException e) {
- out.println("MyException caught : invocation successful");
- }catch (Exception e) {
- out.println("Invocation failed because : " + e);
- out.println("Client KO. Exiting.");
- return -1;
- }
- out.println();
- out.println("Client OK. Exiting.");
- return 0;
-
- }
- /**
- * Main method
- * @param args arguments of the client
- */
- public static int main(final String[] args) {
- ClientException client = new ClientException(args);
- return client.start();
-
- }
-}
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/src/java/org/ow2/jonas/examples/cluster/javaee5/client/ClientFOSFSB.java b/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/src/java/org/ow2/jonas/examples/cluster/javaee5/client/ClientFOSFSB.java
deleted file mode 100644
index ab2445da1f5bc4599a767af5caeea6a35032d0d5..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/src/java/org/ow2/jonas/examples/cluster/javaee5/client/ClientFOSFSB.java
+++ /dev/null
@@ -1,114 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2005-2006 Bull S.A.S
- * Contact: jonas-team@objectweb.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * Initial developer(s):
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-
-package org.ow2.jonas.examples.cluster.javaee5.client;
-
-import javax.ejb.EJB;
-
-import org.ow2.jonas.examples.cluster.javaee5.beans.samplecluster3.MyStateful;
-
-
-/**
- * Fat client :
- * - test Fail Over of the SFSB
- */
-public class ClientFOSFSB extends ClientBase {
-
- /**
- * Link to the SFSB.
- */
- @EJB
- private static MyStateful myStateful = null;
-
- /**
- * Default constructor.
- */
- public ClientFOSFSB() {
- }
-
- /**
- * Constructor.
- */
- public ClientFOSFSB(final String[] args) {
- super(args);
- }
- /**
- * Starts the client.
- * @return 0 if OK, -1 else.
- */
- private int start() {
- out.println("------------------------------------------");
- out.println("Bean created -> " + myStateful);
- out.println("------------------------------------------");
-
- for (int i = 0; i < iterations; i++) {
- try {
-
- String l = "log entry " + i;
- // add in the bean state
- myStateful.logWithJOnASInstance(l);
-
- out.println("Add " + l);
-
- if (0 == i % 10) {
- out.println("------------------------------------------");
- out.println("Get the log entries from the bean state");
- out.println("------------------------------------------");
- StringBuffer sb = myStateful.getLogTextDump();
- out.println(sb);
-
- out.println("------------------------------------------");
- out.println("Sleep " + time2sleep / 1000 + "s");
- out.println("------------------------------------------");
- try {
- Thread.sleep(time2sleep);
- } catch (Exception e) {
- e.printStackTrace();
- return -1;
- }
- }
-
- } catch (Exception e) {
- e.printStackTrace();
- return -1;
- }
- }
- myStateful.cleanup();
- out.println();
- out.println("Client OK. Exiting.");
- return 0;
- }
- /**
- * Main method
- * @param args arguments of the client
- */
- public static int main(final String[] args) {
- ClientFOSFSB client = new ClientFOSFSB(args);
- return client.start();
-
- }
-}
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/src/java/org/ow2/jonas/examples/cluster/javaee5/client/ClientLBRemote.java b/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/src/java/org/ow2/jonas/examples/cluster/javaee5/client/ClientLBRemote.java
deleted file mode 100644
index d2e1f83648ff8222912fca9fd06c893eae55fe2c..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/src/java/org/ow2/jonas/examples/cluster/javaee5/client/ClientLBRemote.java
+++ /dev/null
@@ -1,115 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2005-2006 Bull S.A.S
- * Contact: jonas-team@objectweb.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * Initial developer(s):
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-
-package org.ow2.jonas.examples.cluster.javaee5.client;
-
-import java.util.Properties;
-
-import javax.ejb.EJB;
-
-import org.ow2.jonas.examples.cluster.javaee5.beans.samplecluster3.MyStateless;
-
-
-/**
- * Fat client :
- * - access to a SSB
- * - LB at the remote
- */
-public class ClientLBRemote extends ClientBase {
-
- /**
- * Link to the SSB.
- */
- @EJB
- private static MyStateless myStateless = null;
-
- /**
- * Default constructor.
- */
- public ClientLBRemote() {
- }
-
- /**
- * Constructor.
- */
- public ClientLBRemote(final String[] args) {
- super(args);
- }
-
- /**
- * Start the client.
- */
- private int start() {
- String jonasEJBServer = null;
- String ejbTotalCallsCount = null;
- Properties prop = null;
-
- out.println("------------------------------------------");
- out.println("Bean created -> " + myStateless);
- out.println("------------------------------------------");
-
- for (int i = 0; i < iterations; i++) {
- try {
-
- prop = myStateless.getInfoProps();
- out.println("Bean invoked");
-
- jonasEJBServer = prop.getProperty("EJB server");
- ejbTotalCallsCount = prop.getProperty("EJB total calls");
- } catch (Exception e) {
- e.printStackTrace();
- return -1;
- }
-
- out.println("Calls=" + i + " - EJB served by jonas=" + jonasEJBServer + " - EJB total calls=" + ejbTotalCallsCount);
- if (0 == i % 10) {
- out.println("------------------------------------------");
- out.println("Sleep " + time2sleep / 1000 +" s");
- out.println("------------------------------------------");
- try {
- Thread.sleep(time2sleep);
- } catch (Exception e) {
- e.printStackTrace();
- return -1;
- }
- }
- out.println();
- }
-
- out.println("Client OK. Exiting.");
- return 0;
- }
-
- /**
- * Main method
- * @param args arguments of the client
- */
- public static int main(final String[] args) {
- ClientLBRemote client = new ClientLBRemote(args);
- return client.start();
- }
-}
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/src/java/org/ow2/jonas/examples/cluster/javaee5/client/README b/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/src/java/org/ow2/jonas/examples/cluster/javaee5/client/README
deleted file mode 100644
index 75c9991036b035555b399fa2b1bfa01c7e26eece..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/src/java/org/ow2/jonas/examples/cluster/javaee5/client/README
+++ /dev/null
@@ -1,36 +0,0 @@
- ===============================
-| SampleCluster3 |
- ===============================
-
-Date: 14/10/2008
-Version: v1.1
-
-CMI client
-----------
-Examples of a rich java client using the CMI protocol.
-
-Running
---------
-1) cd $JONAS_ROOT/examples/cluster-javaee5
-2) create the directory './clientConfig'
-3) copy $JONAS_ROOT/conf/carol.properties to '/clientConfig'
-4) configure a carol.properties file pointing to a registry within a cluster in ./clientConfig/carol.properties.
- For instance :
-
-carol.protocols=jrmp
-carol.jrmp.url=rmi://localhost:1099
-
-5) run the clients with the following commands :
-# for testing the load-balancing at the lookup
-..../client/clientLBLookup.sh
-
-# for testing the load-balancing at the home interface
-..../client/clientLBHome.sh
-
-# for testing the load-balancing at the remote interface
-..../client/clientLBRemote.sh
-
-# for testing the exception retrieving
-..../client/clientException.sh
-
-=================================================================================
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/src/java/org/ow2/jonas/examples/cluster/javaee5/servlets/AbstractServlet.java b/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/src/java/org/ow2/jonas/examples/cluster/javaee5/servlets/AbstractServlet.java
deleted file mode 100644
index a30c2a1e205ee76e0ec42d79e750fb06d865fb52..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/src/java/org/ow2/jonas/examples/cluster/javaee5/servlets/AbstractServlet.java
+++ /dev/null
@@ -1,130 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2008 Bull S.A.S
- * Contact: jonas-team@objectweb.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * Initial developer(s):
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-package org.ow2.jonas.examples.cluster.javaee5.servlets;
-
-import javax.ejb.EJB;
-import javax.naming.Context;
-import javax.naming.InitialContext;
-import javax.naming.NamingException;
-import javax.servlet.http.HttpServlet;
-
-import org.ow2.jonas.examples.cluster.javaee5.beans.samplecluster3.MyStateful;
-import org.ow2.jonas.examples.cluster.javaee5.beans.samplecluster3.MyStateless;
-import org.ow2.jonas.lib.bootstrap.JProp;
-import org.ow2.util.log.Log;
-import org.ow2.util.log.LogFactory;
-
-/**
- * @author pelletib
- *
- * Servlet super class
- */
-public abstract class AbstractServlet extends HttpServlet {
-
- /**
- * Link to the SSB.
- */
- // @EJB
- private MyStateless myStateless = null;
-
- /**
- * Link to the SFSB.
- */
- private MyStateful myStateful = null;
-
- /**
- * Logger
- */
- private Log logger = LogFactory.getLog(AbstractServlet.class);
-
-
- /**
- * Servlet initialization
- */
- @Override
- public void init() {
-
- logger.debug("");
- }
-
- /**
- * Creates a new Stateful session bean.
- * @return A new session bean
- */
- public MyStateful getMyStateful() {
- try {
- Context ctx = new InitialContext();
- myStateful = (MyStateful) ctx.lookup("org.ow2.jonas.examples.cluster.javaee5.beans.samplecluster3.MyStatefulBean"
- + "_" + MyStateful.class.getName() + "@Remote");
- } catch (NamingException e) {
- e.printStackTrace();
- }
- myStateful.initialize();
- return myStateful;
- }
-
- /**
- * Creates a new stateless session bean.
- * @return a new stateless session bean
- */
- public MyStateless getMyStateless() {
- try {
- Context ctx = new InitialContext();
- myStateless = (MyStateless) ctx.lookup("org.ow2.jonas.examples.cluster.javaee5.beans.samplecluster3.MyStatelessBean"
- + "_" + MyStateless.class.getName() + "@Remote");
- } catch (NamingException e) {
- e.printStackTrace();
- }
- return myStateless;
- }
-
- /**
- * Retrieve the name of the JOnAS node where the servlet is executed.
- * @return The JOnAS node name where the servlet is executed.
- */
- public static String getMyJonasInstanceName() {
-
- String s = "unknown";
- try {
- JProp jp = JProp.getInstance();
- s = jp.getValue("jonas.name");
- } catch (Exception e) {
- e.printStackTrace();
- }
- return s;
- }
-
- /**
- * Get the logger
- * @return the logger
- */
- public Log getLogger() {
- return logger;
- }
-
-
-}
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/src/java/org/ow2/jonas/examples/cluster/javaee5/servlets/CheckServlet.java b/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/src/java/org/ow2/jonas/examples/cluster/javaee5/servlets/CheckServlet.java
deleted file mode 100644
index 56e40acfe93f2472058f6ace05316a412938ae05..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/src/java/org/ow2/jonas/examples/cluster/javaee5/servlets/CheckServlet.java
+++ /dev/null
@@ -1,82 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2008 Bull S.A.S
- * Contact: jonas-team@objectweb.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * Initial developer(s):
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-package org.ow2.jonas.examples.cluster.javaee5.servlets;
-
-import java.io.IOException;
-
-import javax.servlet.RequestDispatcher;
-import javax.servlet.ServletException;
-import javax.servlet.http.Cookie;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-import javax.servlet.http.HttpSession;
-
-/**
- * @author pelletib
- *
- * Servlet which checks the HTTP session
- */
-public class CheckServlet extends AbstractServlet {
-
- /**
- *
- */
- private static final long serialVersionUID = 1L;
-
- /**
- * doGet methode of the servlet
- * @param req http servlet request
- * @param res http servlet response
- * @throws ServletException servlet exception
- * @throws IOException io exception
- */
- @Override
- public void doGet(final HttpServletRequest req, final HttpServletResponse res) throws ServletException, IOException {
-
- HttpSession session = req.getSession(false);
-
- String sessionCheckInfo = "JSESSIONID cookie absent.";
- Cookie[] cookies = req.getCookies();
- if (cookies != null) {
- for (int i = 0; i < cookies.length; i++) {
- if (cookies[i].getName().equals("JSESSIONID")) {
- sessionCheckInfo = "JSESSIONID cookie present.";
- }
- }
- }
-
- getLogger().info(sessionCheckInfo);
- req.setAttribute("sessionCheckInfo", sessionCheckInfo);
-
- // --------------
- // Write response
- // --------------
- RequestDispatcher disp = req.getRequestDispatcher("../jsp/checkRsp.jsp");
- disp.forward(req, res);
-
- return;
- }
-}
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/src/java/org/ow2/jonas/examples/cluster/javaee5/servlets/ExceptionServlet.java b/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/src/java/org/ow2/jonas/examples/cluster/javaee5/servlets/ExceptionServlet.java
deleted file mode 100644
index 2c8128cae5881da63daca34d42073d52fa6f7d3f..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/src/java/org/ow2/jonas/examples/cluster/javaee5/servlets/ExceptionServlet.java
+++ /dev/null
@@ -1,81 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2008 Bull S.A.S
- * Contact: jonas-team@objectweb.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * Initial developer(s):
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-package org.ow2.jonas.examples.cluster.javaee5.servlets;
-
-import java.io.IOException;
-
-import javax.servlet.RequestDispatcher;
-import javax.servlet.ServletException;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import org.ow2.jonas.examples.cluster.javaee5.beans.samplecluster3.MyException;
-import org.ow2.jonas.examples.cluster.javaee5.beans.samplecluster3.MyStateless;
-
-
-
-/**
- * @author pelletib
- * Release an http session servlet
- */
-public class ExceptionServlet extends AbstractServlet {
-
- /**
- *
- */
- private static final long serialVersionUID = 1L;
-
- /**
- * doGet methode of the servlet
- * @param req http servlet request
- * @param res http servlet response
- * @throws ServletException servlet exception
- * @throws IOException io exception
- */
- @Override
- public void doGet(final HttpServletRequest req, final HttpServletResponse res) throws ServletException, IOException {
-
- MyStateless bean = getMyStateless();
- try {
- bean.throwMyException();
- } catch (MyException e) {
- getLogger().info("My Exception caught" + e);
- e.printStackTrace();
- req.setAttribute("expectedException", "OK");
- req.setAttribute("exception", e);
- } catch (Exception e) {
- getLogger().info("Exception caught" + e);
- e.printStackTrace();
- req.setAttribute("expectedException", "KO");
- req.setAttribute("exception", e);
- }
-
- RequestDispatcher disp = req.getRequestDispatcher("../jsp/exceptionRsp.jsp");
- disp.forward(req, res);
-
- return;
- }
-}
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/src/java/org/ow2/jonas/examples/cluster/javaee5/servlets/ReleaseServlet.java b/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/src/java/org/ow2/jonas/examples/cluster/javaee5/servlets/ReleaseServlet.java
deleted file mode 100644
index 6daa0e44f167c54bb2280b8a547bfc6b2bb60c8d..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/src/java/org/ow2/jonas/examples/cluster/javaee5/servlets/ReleaseServlet.java
+++ /dev/null
@@ -1,98 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2008 Bull S.A.S
- * Contact: jonas-team@objectweb.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * Initial developer(s):
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-package org.ow2.jonas.examples.cluster.javaee5.servlets;
-
-import java.io.IOException;
-
-import javax.servlet.RequestDispatcher;
-import javax.servlet.ServletException;
-import javax.servlet.http.Cookie;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-import javax.servlet.http.HttpSession;
-
-import org.ow2.jonas.examples.cluster.javaee5.beans.samplecluster3.MyStateful;
-
-/**
- * @author pelletib
- * Release an http session servlet
- */
-public class ReleaseServlet extends AbstractServlet {
-
- /**
- *
- */
- private static final long serialVersionUID = 1L;
-
- /**
- * doGet methode of the servlet
- * @param req http servlet request
- * @param res http servlet response
- * @throws ServletException servlet exception
- * @throws IOException io exception
- */
- @Override
- public void doGet(final HttpServletRequest req, final HttpServletResponse res) throws ServletException, IOException {
-
- // Get the session object to invalidate it
-
- HttpSession session = req.getSession(false);
- String sessionToReleaseInfo = "no session to invalidate";
- if (session != null) {
- // invalidate the SFSB
- MyStateful myStateful = (MyStateful) session.getAttribute("myStateful");
- myStateful.cleanup();
-
- // invalidate the HTTP session
- sessionToReleaseInfo = "session=" + session.getId() + " invalidated";
- session.setAttribute("myStateful", null);
- session.invalidate();
- }
- getLogger().info(sessionToReleaseInfo);
- req.setAttribute("sessionToReleaseInfo", sessionToReleaseInfo);
-
- Cookie[] cookies = req.getCookies();
- if (cookies != null) {
- Cookie ck = null;
- for (int i = 0; i < cookies.length; i++) {
- if (cookies[i].getName().equals("JSESSIONID")) {
- ck = (Cookie) cookies[i].clone();
- ck.setMaxAge(0);
- res.addCookie(ck);
- }
- }
- }
-
- // --------------
- // Write response
- // --------------
-
- RequestDispatcher disp = req.getRequestDispatcher("../jsp/releaseRsp.jsp");
- disp.forward(req, res);
-
- return;
- }
-}
diff --git a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/src/java/org/ow2/jonas/examples/cluster/javaee5/servlets/SessionServlet.java b/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/src/java/org/ow2/jonas/examples/cluster/javaee5/servlets/SessionServlet.java
deleted file mode 100644
index 6dc5c0e29a4d6aec42076203126811693e395bc7..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/cluster-javaee5/src/java/org/ow2/jonas/examples/cluster/javaee5/servlets/SessionServlet.java
+++ /dev/null
@@ -1,168 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2005 Bull S.A.
- * Contact: jonas-team@objectweb.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * --------------------------------------------------------------------------
- * $Id:SessionServlet.java 14651 2008-07-28 11:50:13Z eyindanga $
- * --------------------------------------------------------------------------
- */
-
-package org.ow2.jonas.examples.cluster.javaee5.servlets;
-
-import java.io.IOException;
-import java.util.Properties;
-
-import javax.servlet.RequestDispatcher;
-import javax.servlet.ServletException;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-import javax.servlet.http.HttpSession;
-
-import org.ow2.jonas.examples.cluster.javaee5.beans.samplecluster3.MyStateful;
-
-/**
- * @author goebelg
- *
- * servlet which manages the different instantiations of the ejbs
- */
-public class SessionServlet extends AbstractServlet {
-
- /**
- *
- */
- private static final long serialVersionUID = 1L;
-
- /**
- * doGet methode of the servlet
- * @param req http servlet request
- * @param res http servlet response
- * @throws ServletException servlet exception
- * @throws IOException io exception
- */
- @Override
- public void doGet(final HttpServletRequest req, final HttpServletResponse res) throws ServletException, IOException {
- String jonasEJBServer = null;
- String ejbId = null;
- String ejbTotalCallsCount = null;
- String ejbEntityCreated = null;
- Properties prop = null;
-
- /*
- * ---------------------------------------- Update the session context -
- * sessiontest.counter : number of times this servlet has been called -
- * sessiontest.jonas. : counts the number of time the EJB was
- * served by JOnAS instance
- * -----------------------------------------
- */
- HttpSession session = req.getSession(true);
-
- // update sessiontest.counter
-
- Integer ival = (Integer) session.getAttribute("sessiontest.counter");
- if (ival == null) { // If counter is not in session, then create it
- ival = new Integer(1);
- } else {
- ival = new Integer(ival.intValue() + 1);
- }
- session.setAttribute("sessiontest.counter", ival);
-
- // Call EJB then update sessiontest.jonas.x
-
- try {
- prop = getMyStateless().getInfoProps();
- jonasEJBServer = prop.getProperty("EJB server");
- ejbId = prop.getProperty("EJB id");
- ejbTotalCallsCount = prop.getProperty("EJB total calls");
- } catch (Exception e) {
- e.printStackTrace();
- }
-
- // Retrieve or create the Stateful EJB to log history
-
- /*
- * getHandle() doesn't work
- * see bug http://jira.easybeans.org/browse/EZB-314
- *
- Handle h = (Handle) session.getAttribute("myStateful");
- MyStateful statefulBean = null;
- if (h == null) {
-
- statefulBean = getMyStateful();
- if (statefulBean != null) {
-
- h = statefulBean.getMyHandle();
- session.setAttribute("myStateful", h);
- statefulBean.setHTTPSessionId(session.getId());
- }
- } else {
- statefulBean = (MyStateful) PortableRemoteObject.narrow(h.getEJBObject(), MyStateful.class);
- } */
-
- MyStateful statefulBean = (MyStateful) session.getAttribute("myStateful");
- if (statefulBean == null) {
- getLogger().info("create new stateful");
- statefulBean = getMyStateful();
- if (statefulBean != null) {
- session.setAttribute("myStateful", statefulBean);
- statefulBean.setHTTPSessionId(session.getId());
- }
- }
-
- if (!session.isNew()) {
- session.setAttribute("sessiontest.old.EJB", session.getAttribute("sessiontest.EJB"));
- session.setAttribute("sessiontest.old.WEB", session.getAttribute("sessiontest.WEB"));
- }
- session.setAttribute("sessiontest.EJB", jonasEJBServer);
- session.setAttribute("sessiontest.WEB", getMyJonasInstanceName());
-
- req.setAttribute("jonas.EJB.served.by", jonasEJBServer);
- req.setAttribute("jonas.WEB.served.by", getMyJonasInstanceName());
-
- session.setAttribute("sessiontest.jonas.EJB_Server", jonasEJBServer);
- session.setAttribute("sessiontest.jonas.EJB_id", ejbId);
- session.setAttribute("sessiontest.jonas.nb_EJB_totalCalls", ejbTotalCallsCount);
-
- // Log information
-
- getLogger().info("session=" + session.getId() + " on jonas=" + getMyJonasInstanceName()
- + " - calls=" + ival + " - EJB served by jonas=" + jonasEJBServer + " - EJB total calls="
- + ejbTotalCallsCount);
-
- if (statefulBean != null) {
- try {
- statefulBean.log("
" + "
" + getMyJonasInstanceName() + "
" + "
" + jonasEJBServer
- + "
" + "
" + ejbTotalCallsCount + "
"
- + "
");
- } catch (Exception e) {
- getLogger().info("session=" + session.getId()
- + " : Exception when calling MyStateful EJB (" + e.getMessage() + ")");
- session.removeAttribute("myStateful");
- }
- }
- // --------------
- // Write response
- // --------------
-
- RequestDispatcher disp = req.getRequestDispatcher("../jsp/sessionRsp.jsp");
- disp.forward(req, res);
-
- return;
- }
-}
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/README b/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/README
deleted file mode 100644
index 3e38e037b238c8969e42e93eb12eeffc8f4c41fb..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/README
+++ /dev/null
@@ -1,84 +0,0 @@
-J2EE 1.4 Example Overview:
------------------
-
-This example shows how to access an EJB deployed in a JOnAS EJB container, from
- - a servlet deployed in a Tomcat/Jetty container (thin client)
- - a client running inside the client container (heavy client)
-
-It also shows how to use security in Tomcat or Jetty to authentificate the user and in JOnAS
-to authorize the user to access the EJB methods. This aspect is described in details
-in the "Use Security in JOnAS with TOMCAT" howto of the JOnAS documentation.
-
-Besides, this example shows the uniform naming resource access supported in JOnAS.
-The servlet gets a javax.transaction.UserTransaction object reference from the JNDI
-using the "java:comp/UserTransaction" name. Moreover, it gets a reference on the
-bean's home using an environment entry: "java:comp/env/ejb/".
-
-This sample contains an example of using ejb-link which allows to link the EJB to the
-servlet. It is used in the web.xml file for both the ejb-ref and
-ejb-local-ref tags. It implies that when the servlet performs a lookup on the bean,
-the web classloader has got the visibility of the ejb class.
-This is due to the classloader hierarchy between the ear classloader, ejb
-classloader and the web classloader.
-
-Finally, this example shows how to add a resource adapter in an ear.
-
-The "src" directory contains
- - An EJB that is a stateful session Bean.
- - The servlet source of ServletOp.
- - The source of a client which run inside the client container with uniform naming available
- - The resource adapter source.
-
-The "etc" directory contains
- - the "xml" directory which contains all the deployment descriptors used for this example :
- * application.xml (ear file)
- * ejb-jar.xml and jonas-ejb-jar.xml (jar file)
- * web.xml, jonas-web.xml (war file)
- * ra.xml (rar file)
- * application-client.xml, jonas-client1.xml and jonas-client2.xml (two clients jar file)
- - the "resources" directory which contains all the resources for this application
- * "web" directory contains all resources used by the servlet
-
-
-Compiling this example creates an .ear file that represents an application including :
- - a session bean used by the web application
- - a web application that will be used by Tomcat or Jetty to run the servlet.
- - a resource adapter.
-
-Prerequisites
--------------
-First, you must have installed a web container (ie : Catalina or Jetty)
-as the web container service or you will use the heavy client
-
-Compiling and installing this example:
---------------------------------------
- ant install
-
-Running this example:
---------------------
-Commands are given for an Unix system.
-(Similar commands can be done on Windows)
-
-1) Run a JOnAS server:
- jonas start
-
-2a) Run your web browser (e.g., netscape):
- netscape http://:/j2ee-1.4
- where is the name of your machine (localhost by default)
- and the port number (9000 by default)
-
-2b) You can also lookup the Bean by using one of the client of the ear
-
- Use the default client (first found)
- java -jar $JONAS_ROOT/lib/client.jar ($JONAS_ROOT |$JONAS_BASE)/deploy/j2ee-1.4.ear -carolFile ($JONAS_ROOT |$JONAS_BASE)/conf/carol.properties
-
- Use a specific client
- java -jar $JONAS_ROOT/lib/client.jar ($JONAS_ROOT |$JONAS_BASE)/deploy/j2ee-1.4.ear -jarClient client2.jar -carolFile ($JONAS_ROOT |$JONAS_BASE)/conf/carol.properties
-
-
-Notes :
- the argument -carolFile is useless if you have rebuilt this example because in this
- case the carol.properties of your environment is inserted in earsample.ear
-
-3) Stop the JOnAS server
- jonas stop
diff --git a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/build.xml b/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/build.xml
deleted file mode 100644
index 62009465bc352dbb5b3ac7328ea054077bb3745d..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/build.xml
+++ /dev/null
@@ -1,204 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/etc/resources/jaas/jaas.config b/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/etc/resources/jaas/jaas.config
deleted file mode 100644
index 73bdc1497ffaf765cd1546992894dddd1f954ed7..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/etc/resources/jaas/jaas.config
+++ /dev/null
@@ -1,13 +0,0 @@
-earsample {
- // Login Module to use for the example earsample.
-
- //First, use a LoginModule for the authentication
- // Use the resource memrlm_1
- org.ow2.jonas.security.auth.spi.JResourceLoginModule required
- resourceName="memrlm_1"
- ;
-
- // Use the login module to propagate security to the JOnAS server
- org.ow2.jonas.security.auth.spi.ClientLoginModule required
- ;
-};
\ No newline at end of file
diff --git a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/etc/resources/web/img/jetty.gif b/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/etc/resources/web/img/jetty.gif
deleted file mode 100644
index 01f44a87f6801b200f142513d0d02b12cea0fb46..0000000000000000000000000000000000000000
Binary files a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/etc/resources/web/img/jetty.gif and /dev/null differ
diff --git a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/etc/resources/web/img/logoOW2.png b/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/etc/resources/web/img/logoOW2.png
deleted file mode 100644
index 71a185b68ed53e228e23c82c4ea0aa47b7556959..0000000000000000000000000000000000000000
Binary files a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/etc/resources/web/img/logoOW2.png and /dev/null differ
diff --git a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/etc/resources/web/img/ow_jonas_logo.gif b/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/etc/resources/web/img/ow_jonas_logo.gif
deleted file mode 100644
index 1b56943a721f82a8cb81776030567772265433f2..0000000000000000000000000000000000000000
Binary files a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/etc/resources/web/img/ow_jonas_logo.gif and /dev/null differ
diff --git a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/etc/resources/web/img/tomcat.gif b/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/etc/resources/web/img/tomcat.gif
deleted file mode 100644
index 61756736b82350f64b5ea1b2bfc31ac57e30a3d3..0000000000000000000000000000000000000000
Binary files a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/etc/resources/web/img/tomcat.gif and /dev/null differ
diff --git a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/etc/resources/web/img/valid-xhtml11.png b/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/etc/resources/web/img/valid-xhtml11.png
deleted file mode 100644
index 2c63d93f8868d574b9e69eda2727b7e7bf7fc8ec..0000000000000000000000000000000000000000
Binary files a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/etc/resources/web/img/valid-xhtml11.png and /dev/null differ
diff --git a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/etc/resources/web/img/vcss.png b/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/etc/resources/web/img/vcss.png
deleted file mode 100644
index 9b2f596e016533327216d98a0a927738fe17384f..0000000000000000000000000000000000000000
Binary files a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/etc/resources/web/img/vcss.png and /dev/null differ
diff --git a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/etc/resources/web/index.html b/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/etc/resources/web/index.html
deleted file mode 100644
index 48abd6db03f1926adf3fc0409bc5098032068444..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/etc/resources/web/index.html
+++ /dev/null
@@ -1,52 +0,0 @@
-
-
-
-
-
-
- J2EE 1.4 Example
-
-
-
-
-
-
-
-
-
-
-
- J2EE 1.4 Example : Servlet accessing a protected EJB
-
-
-
- This web application is packaged as an "ear".
- When you will click to access the servlet, your web browser will open a dialog box
- asking you a user ID and a password.
-
- Use : jonas for the user ID and jonas for the
- password
-
-
-
-
-
-
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/etc/resources/web/ow2_jonas.css b/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/etc/resources/web/ow2_jonas.css
deleted file mode 100644
index 9902f9b13e947e5818ae5e6216287363674d8cd4..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/etc/resources/web/ow2_jonas.css
+++ /dev/null
@@ -1,183 +0,0 @@
-/*
- Context Root css. based on css from http://jonas.objectweb.org
- XHTML by Florent BENOIT
-*/
-
-
-body
-{
- top: 10px;
- margin-top:10px;
- background-color: #FFF;
- color: #000000;
- }
-
-
-img {
- margin: 5px;
- border:0;
-}
-
-
-
-div.logos {
- top: 5px;
- width: 99%;
- text-align: right;
-}
-
-
-div.links {
- font-size: 14px;
- margin-top : 40px;
- margin-left : 100px;
-}
-
-
-div.titlepage {
- margin-left: 200px;
- font-family: Arial, Helvetica, sans-serif;
- font-size: 1.5em;
- line-height: 1.5em;
- border-bottom: 1px solid #0099cc;
- color : #ff6600;
- font-weight : bold;
-}
-
-
-div.footer {
- margin-top : 50px;
- color: #FFFFFF;
- font-size: 8pt;
- text-align: center;
-}
-
-
-/*HTML elements */
-
-
-
-ul, ol, dl
-{
- color: black;
- font-family: Arial,Helvetica, sans-serif;
- font-size: 12px;
- line-height: 16px;
- font-weight: normal;
-}
-
-li
-{
- color: black;
- font-family: Arial, Helvetica, sans-serif;
- font-size: 14px;
- font-weight: normal;
- margin: 10px 0px 5px 0px;
-
-}
-a
-{
- color: #3F3975;
- background-color: transparent;
- text-decoration: underline;
-}
-
-a:visited
-{
- color: #9898CB;
- background-color: transparent;
- text-decoration: underline;
-}
-
-a:hover
-{
- color: #E06611;
- background-color: transparent;
- text-decoration: underline;
-}
-
-
-a:active
-{
- color: #FFFFFF;
- background-color: #E06611;
- text-decoration: underline;
-}
-
-
-
-
-.h1, .h2, .h3, .h4, .h5 {
- color: #000;
- background-color: inherit;
- padding: 0;
-}
-
-.h1 {
- margin-top: 5px;
- font-size: 2em;
- line-height: 1.5em;
- margin: 30px 0 30px 0;
- border-bottom: 1px solid #0099cc;
- color : #ff6600;
- font-weight : bold;
-}
-
-.h2 {
- margin: 20px 0 15px 0;
- border-bottom: 1px solid #0099cc;
- font-weight:normal;
- font-style: normal;
- font-size: 1.6em;
- line-height: 1.4em;
- color : #0099cc
-}
-
-.h3 {
- font-weight: normal;
- font-size: 1.4em;
- line-height: 1.4em;
- margin: 20px 0 15px 0;
-}
-
-.h4 {
- font-weight:normal;
- color: #404040;
- margin: 20px 0 0 0;
- left: 0px;
- font-size: 1.4em;
- line-height: 1.4em;
-}
-.h5 {
- font-weight:normal;
- color: #404040;
- font-style: normal;
- margin: 0px;
- left: 0px;
- font-size: 1.2em;
- line-height: 1.2em;
-}
-
-td
-{
- color: black;
- font-family: Arial,Helvetica, sans-serif;
- font-size: 12px;
- font-weight: normal;
-}
-
-p
-{
- color: black;
- font-family: Arial,Helvetica, sans-serif;
- font-size: 12px;
- line-height: 16px;
- font-weight: normal;
- margin: 10px 10px 5px 0px;
-}
-
-p.error
-{
- color: red;
-}
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/etc/xml/application-client.xml b/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/etc/xml/application-client.xml
deleted file mode 100644
index e2688908b9cd44640acf0a6ce62744381625e783..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/etc/xml/application-client.xml
+++ /dev/null
@@ -1,72 +0,0 @@
-
-
-
-
-
- Client of the earsample
-
-
- envEntryString
- java.lang.String
-
- Test of envEntry of application-client.xml file
-
-
-
-
-
- ejb/Op
- Session
- org.ow2.jonas.earsample.beans.secusb.OpHome
- org.ow2.jonas.earsample.beans.secusb.Op
- secusb.jar#EarOp
-
-
-
-
- ejb/OpLink
- Session
- org.ow2.jonas.earsample.beans.secusb.OpHome
- org.ow2.jonas.earsample.beans.secusb.Op
- EarOp
-
-
-
- url/jonas
- java.net.URL
- Container
-
-
-
- org.ow2.jonas.security.auth.callback.LoginCallbackHandler
-
-
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/etc/xml/application.xml b/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/etc/xml/application.xml
deleted file mode 100644
index f91c69d089f29c65d794cefc2a762f9f2e9e7bf8..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/etc/xml/application.xml
+++ /dev/null
@@ -1,59 +0,0 @@
-
-
-
-
-
- ear example secusb/servlet
- earsample secusb/servlet
-
-
- secusb.jar
-
-
-
-
- earsample.war
- j2ee-1.4
-
-
-
-
- client1.jar
-
-
- client2.jar
-
-
-
- ra-sample.rar
-
-
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/etc/xml/jonas-client1.xml b/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/etc/xml/jonas-client1.xml
deleted file mode 100644
index 9a596a28de219d247769e84a5f0697bd4e4c3006..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/etc/xml/jonas-client1.xml
+++ /dev/null
@@ -1,19 +0,0 @@
-
-
-
-
- url/jonas
- http://jonas.ow2.org
-
-
-
- jaas.config
- earsample
- jonas
- jonas
-
-
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/etc/xml/jonas-client2.xml b/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/etc/xml/jonas-client2.xml
deleted file mode 100644
index a1bf42917d3328a05781cc5cfd9b629e3b9b36c4..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/etc/xml/jonas-client2.xml
+++ /dev/null
@@ -1,18 +0,0 @@
-
-
-
-
-
- url/jonas
- http://jonas.ow2.org
-
-
-
- jaas.config
- earsample
-
-
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/etc/xml/jonas-secusb.xml b/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/etc/xml/jonas-secusb.xml
deleted file mode 100644
index ca04b169dbabb1e2aa96fb0c0cab7e7d16639f07..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/etc/xml/jonas-secusb.xml
+++ /dev/null
@@ -1,12 +0,0 @@
-
-
-
-
-
- EarOp
- EarOpHome
-
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/etc/xml/jonas-web.xml b/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/etc/xml/jonas-web.xml
deleted file mode 100644
index e66d881247ae0b0c44d2d0f3aef8ddb14dbfdcb6..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/etc/xml/jonas-web.xml
+++ /dev/null
@@ -1,13 +0,0 @@
-
-
-
-
-
- url/URL
- http://jonas.ow2.org
-
-
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/etc/xml/ra.xml b/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/etc/xml/ra.xml
deleted file mode 100644
index 3aeee3e280adb299a6e0a6f6e42d6b5970641c05..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/etc/xml/ra.xml
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
- rar sample
- rar sample
- OW2
-
- 1.0
-
- false
-
-
-
-
- org.ow2.jonas.earsample.resourceadapters.ResourceAdapterImpl
-
-
-
- JNDI name
- jndiName
-
- java.lang.String
-
-
- eisName
-
-
-
- URL for EIS instance
- EisURL
-
- java.lang.String
-
-
- EIS_URL
-
-
-
-
\ No newline at end of file
diff --git a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/etc/xml/secusb.xml b/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/etc/xml/secusb.xml
deleted file mode 100644
index 53820328257fb1098ba0150c95870def2b887fc8..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/etc/xml/secusb.xml
+++ /dev/null
@@ -1,60 +0,0 @@
-
-
-
-
- secured session bean JOnAS example
-
- secusb (earsample)
-
-
-
- EarOp
- org.ow2.jonas.earsample.beans.secusb.OpHome
- org.ow2.jonas.earsample.beans.secusb.Op
- org.ow2.jonas.earsample.beans.secusb.OpLocalHome
- org.ow2.jonas.earsample.beans.secusb.OpLocal
- org.ow2.jonas.earsample.beans.secusb.OpBean
- Stateful
- Container
-
-
-
-
-
- tomcat
-
-
- jetty
-
-
-
- tomcat
-
- EarOp
- *
-
-
-
-
- jetty
-
- EarOp
- *
-
-
-
-
-
- EarOp
- *
-
- Supports
-
-
-
-
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/etc/xml/web.xml b/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/etc/xml/web.xml
deleted file mode 100644
index f9ad76e411aa4ac330cdded24441cb16ea30d3bb..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/etc/xml/web.xml
+++ /dev/null
@@ -1,110 +0,0 @@
-
-
-
-
-
- Op
-
- org.ow2.jonas.earsample.servlets.ServletOp
-
-
-
-
- Op
- /secured/Op
-
-
-
- url/URL
- java.net.URL
- Application
-
-
-
-
- Protected Area
-
- /secured/*
-
- DELETE
- GET
- POST
- PUT
-
-
-
- tomcat
- jetty
-
-
-
-
-
- BASIC
- JOnAS Realm
-
-
-
-
- tomcat
-
-
-
- jetty
-
-
-
-
- envEntryString
- java.lang.String
-
- This is a string from the env-entry
-
-
-
-
- ejb/Op
- Session
- org.ow2.jonas.earsample.beans.secusb.OpHome
- org.ow2.jonas.earsample.beans.secusb.Op
- EarOp
-
-
-
- ejb/OpLocal
- Session
-
- org.ow2.jonas.earsample.beans.secusb.OpLocalHome
-
- org.ow2.jonas.earsample.beans.secusb.OpLocal
- secusb.jar#EarOp
-
-
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/src/java/org/ow2/jonas/earsample/beans/secusb/Op.java b/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/src/java/org/ow2/jonas/earsample/beans/secusb/Op.java
deleted file mode 100644
index 2f7b4bfc36d5a3e630790079bbc93cb79ed0be4d..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/src/java/org/ow2/jonas/earsample/beans/secusb/Op.java
+++ /dev/null
@@ -1,52 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 1999-2004 Bull S.A.
- * Contact: jonas-team@ow2.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * Initial developer(s):
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-
-package org.ow2.jonas.earsample.beans.secusb;
-
-import javax.ejb.EJBObject;
-import java.rmi.RemoteException;
-
-/**
- * Remote interface for the bean Op
- * @author JOnAS team
- */
-public interface Op extends EJBObject {
-
- /**
- * Business method implementation.
- * @param shares nb of shares to be bought
- * @throws RemoteException if RMI failed.
- */
- void buy (int shares) throws RemoteException;
-
- /**
- * Business method implementation.
- * @return the nb of shares bought
- * @throws RemoteException if RMI failed.
- */
- int read () throws RemoteException;
-
-}
\ No newline at end of file
diff --git a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/src/java/org/ow2/jonas/earsample/beans/secusb/OpBean.java b/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/src/java/org/ow2/jonas/earsample/beans/secusb/OpBean.java
deleted file mode 100644
index 4df11b2e919a6f27f0de44350694df66d7186593..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/src/java/org/ow2/jonas/earsample/beans/secusb/OpBean.java
+++ /dev/null
@@ -1,247 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 1999-2004 Bull S.A.
- * Contact: jonas-team@ow2.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * Initial developer(s):
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-
-package org.ow2.jonas.earsample.beans.secusb;
-
-import javax.ejb.EJBException;
-import javax.ejb.SessionBean;
-import javax.ejb.SessionContext;
-import javax.ejb.SessionSynchronization;
-
-/**
- * This is an example of Session Bean, statefull, and synchronized.
- * @author JOnAS team
- */
-public class OpBean implements SessionBean, SessionSynchronization {
-
- /**
- * Actual state of the bean
- */
- private int total = 0;
-
- /**
- * value inside Tx, not yet committed.
- */
- private int newtotal = 0;
-
- /**
- * User client
- */
- private String clientUser = null;
-
- /**
- * Session context that the container provides for a session enterprise Bean
- * instance.
- */
- private SessionContext sessionContext = null;
-
- /* ========================= ejbCreate methods ============================ */
-
- /**
- * There must be one ejbCreate() method per create() method on the Home
- * interface, and with the same signature.
- * @param user the user name
- */
- public void ejbCreate(String user) {
- total = 0;
- // in case we are outside transactions
- newtotal = total;
- clientUser = user;
- }
-
- /* =============== javax.ejb.SessionBean 2.0 implementation ============== */
-
- /**
- * The activate method is called when the instance is activated from its
- * "passive" state. The instance should acquire any resource that it has
- * released earlier in the ejbPassivate() method. This method is called with
- * no transaction context.
- * @throws EJBException Thrown by the method to indicate a failure caused by
- * a system-level error.
- * @throws java.rmi.RemoteException This exception is defined in the method
- * signature to provide backward compatibility for enterprise beans
- * written for the EJB 1.0 specification. Enterprise beans written
- * for the EJB 1.1 specification should throw the
- * javax.ejb.EJBException instead of this exception. Enterprise
- * beans written for the EJB2.0 and higher specifications must throw
- * the javax.ejb.EJBException instead of this exception.
- */
- public void ejbActivate() throws EJBException, java.rmi.RemoteException {
- // Nothing to do for this simple example
- }
-
- /**
- * The passivate method is called before the instance enters the "passive"
- * state. The instance should release any resources that it can re-acquire
- * later in the ejbActivate() method. After the passivate method completes,
- * the instance must be in a state that allows the container to use the Java
- * Serialization protocol to externalize and store away the instance's
- * state. This method is called with no transaction context.
- * @throws EJBException Thrown by the method to indicate a failure caused by
- * a system-level error.
- * @throws java.rmi.RemoteException This exception is defined in the method
- * signature to provide backward compatibility for enterprise beans
- * written for the EJB 1.0 specification. Enterprise beans written
- * for the EJB 1.1 specification should throw the
- * javax.ejb.EJBException instead of this exception. Enterprise
- * beans written for the EJB2.0 and higher specifications must throw
- * the javax.ejb.EJBException instead of this exception.
- */
- public void ejbPassivate() throws EJBException, java.rmi.RemoteException {
- // Nothing to do for this simple example
- }
-
- /**
- * A container invokes this method before it ends the life of the session
- * object. This happens as a result of a client's invoking a remove
- * operation, or when a container decides to terminate the session object
- * after a timeout. This method is called with no transaction context.
- * @throws EJBException Thrown by the method to indicate a failure caused by
- * a system-level error.
- * @throws java.rmi.RemoteException This exception is defined in the method
- * signature to provide backward compatibility for enterprise beans
- * written for the EJB 1.0 specification. Enterprise beans written
- * for the EJB 1.1 specification should throw the
- * javax.ejb.EJBException instead of this exception. Enterprise
- * beans written for the EJB2.0 and higher specifications must throw
- * the javax.ejb.EJBException instead of this exception.
- */
- public void ejbRemove() throws EJBException, java.rmi.RemoteException {
- // Nothing to do for this simple example
- }
-
- /**
- * Set the associated session context. The container calls this method after
- * the instance creation. The enterprise Bean instance should store the
- * reference to the context object in an instance variable. This method is
- * called with no transaction context.
- * @param sessionContext A SessionContext interface for the instance.
- * @throws EJBException Thrown by the method to indicate a failure caused by
- * a system-level error.
- * @throws java.rmi.RemoteException This exception is defined in the method
- * signature to provide backward compatibility for applications
- * written for the EJB 1.0 specification. Enterprise beans written
- * for the EJB 1.1 specification should throw the
- * javax.ejb.EJBException instead of this exception. Enterprise
- * beans written for the EJB2.0 and higher specifications must throw
- * the javax.ejb.EJBException instead of this exception.
- */
- public void setSessionContext(SessionContext sessionContext) throws EJBException, java.rmi.RemoteException {
- this.sessionContext = sessionContext;
- }
-
- /*
- * ============== javax.ejb.SessionSynchronization implementation
- * =============
- */
-
- /**
- * The afterBegin method notifies a session Bean instance that a new
- * transaction has started, and that the subsequent business methods on the
- * instance will be invoked in the context of the transaction. The instance
- * can use this method, for example, to read data from a database and cache
- * the data in the instance fields. This method executes in the proper
- * transaction context.
- * @throws EJBException Thrown by the method to indicate a failure caused by
- * a system-level error.
- * @throws java.rmi.RemoteException - This exception is defined in the
- * method signature to provide backward compatibility for enterprise
- * beans written for the EJB 1.0 specification. Enterprise beans
- * written for the EJB 1.1 and higher specifications should throw
- * the javax.ejb.EJBException instead of this exception. Enterprise
- * beans written for the EJB 2.0 and higher specifications must not
- * throw the java.rmi.RemoteException.
- */
- public void afterBegin() throws EJBException, java.rmi.RemoteException {
- newtotal = total;
- }
-
- /**
- * The beforeCompletion method notifies a session Bean instance that a
- * transaction is about to be committed. The instance can use this method,
- * for example, to write any cached data to a database. This method executes
- * in the proper transaction context. Note: The instance may still
- * cause the container to rollback the transaction by invoking the
- * setRollbackOnly() method on the instance context, or by throwing an
- * exception.
- * @throws EJBException Thrown by the method to indicate a failure caused by
- * a system-level error.
- * @throws java.rmi.RemoteException - This exception is defined in the
- * method signature to provide backward compatibility for enterprise
- * beans written for the EJB 1.0 specification. Enterprise beans
- * written for the EJB 1.1 and higher specifications should throw
- * the javax.ejb.EJBException instead of this exception. Enterprise
- * beans written for the EJB 2.0 and higher specifications must not
- * throw the java.rmi.RemoteException.
- */
- public void beforeCompletion() throws EJBException, java.rmi.RemoteException {
- }
-
- /**
- * The afterCompletion method notifies a session Bean instance that a
- * transaction commit protocol has completed, and tells the instance whether
- * the transaction has been committed or rolled back. This method executes
- * with no transaction context.
- * @param committed - True if the transaction has been committed, false if
- * is has been rolled back.
- * @throws EJBException Thrown by the method to indicate a failure caused by
- * a system-level error.
- * @throws java.rmi.RemoteException - This exception is defined in the
- * method signature to provide backward compatibility for enterprise
- * beans written for the EJB 1.0 specification. Enterprise beans
- * written for the EJB 1.1 and higher specifications should throw
- * the javax.ejb.EJBException instead of this exception. Enterprise
- * beans written for the EJB 2.0 and higher specifications must not
- * throw the java.rmi.RemoteException.
- */
- public void afterCompletion(boolean committed) throws EJBException, java.rmi.RemoteException {
-
- if (committed) {
- total = newtotal;
- } else {
- newtotal = total;
- }
- }
-
- /* ========================= Op implementation ============================ */
-
- /**
- * Business method implementation.
- * @param s nb of shares to be bought
- */
- public void buy(int s) {
- newtotal = newtotal + s;
- return;
- }
-
- /**
- * Business method implementation.
- * @return the nb of shares bought
- */
- public int read() {
- return newtotal;
- }
-}
\ No newline at end of file
diff --git a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/src/java/org/ow2/jonas/earsample/beans/secusb/OpHome.java b/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/src/java/org/ow2/jonas/earsample/beans/secusb/OpHome.java
deleted file mode 100644
index f9961dec81b2d3f547f1421532f70aa898a360f6..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/src/java/org/ow2/jonas/earsample/beans/secusb/OpHome.java
+++ /dev/null
@@ -1,47 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 1999-2004 Bull S.A.
- * Contact: jonas-team@ow2.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * Initial developer(s):
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-
-package org.ow2.jonas.earsample.beans.secusb;
-
-import java.rmi.RemoteException;
-import javax.ejb.CreateException;
-import javax.ejb.EJBHome;
-
-/**
- * Home interface for the bean Op
- * @author JOnAS team
- */
-public interface OpHome extends EJBHome {
-
- /**
- * Create an instance of the Op bean.
- * @param user the user name.
- * @return the Remote interface of the bean Op.
- * @throws CreateException if the creation failed.
- * @throws RemoteException if the RMI call failed.
- */
- Op create(String user) throws CreateException, RemoteException;
-}
diff --git a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/src/java/org/ow2/jonas/earsample/beans/secusb/OpLocal.java b/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/src/java/org/ow2/jonas/earsample/beans/secusb/OpLocal.java
deleted file mode 100644
index 82ca738c2d86646f8242675be2dd1f876fb19a9d..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/src/java/org/ow2/jonas/earsample/beans/secusb/OpLocal.java
+++ /dev/null
@@ -1,48 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 1999-2004 Bull S.A.
- * Contact: jonas-team@ow2.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * Initial developer(s):
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-
-package org.ow2.jonas.earsample.beans.secusb;
-
-import javax.ejb.EJBLocalObject;
-
-/**
- * Local interface for the bean Op
- * @author JOnAS team
- */
-public interface OpLocal extends EJBLocalObject {
-
- /**
- * Business method implementation.
- * @param shares nb of shares to be bought
- */
- void buy(int shares);
-
- /**
- * Business method implementation.
- * @return the nb of shares bought
- */
- int read();
-}
\ No newline at end of file
diff --git a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/src/java/org/ow2/jonas/earsample/beans/secusb/OpLocalHome.java b/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/src/java/org/ow2/jonas/earsample/beans/secusb/OpLocalHome.java
deleted file mode 100644
index 187bd3e9500d590c3fd52fcc988b682aba3ec1a4..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/src/java/org/ow2/jonas/earsample/beans/secusb/OpLocalHome.java
+++ /dev/null
@@ -1,45 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 1999-2004 Bull S.A.
- * Contact: jonas-team@ow2.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * Initial developer(s):
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-
-package org.ow2.jonas.earsample.beans.secusb;
-
-import javax.ejb.CreateException;
-import javax.ejb.EJBLocalHome;
-
-/**
- * Local home interface for the bean Op
- * @author JOnAS team
- */
-public interface OpLocalHome extends EJBLocalHome {
-
- /**
- * Create an instance of the Op bean.
- * @param user the user name.
- * @return the Remote interface of the bean Op.
- * @throws CreateException if the creation failed.
- */
- OpLocal create(String user) throws CreateException;
-}
\ No newline at end of file
diff --git a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/src/java/org/ow2/jonas/earsample/clients/Client.java b/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/src/java/org/ow2/jonas/earsample/clients/Client.java
deleted file mode 100644
index 9c7b51012530d3464e3b2d48b6acaa1a5423dfa1..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/src/java/org/ow2/jonas/earsample/clients/Client.java
+++ /dev/null
@@ -1,190 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 1999-2004 Bull S.A.
- * Contact: jonas-team@ow2.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * Initial developer: Florent Benoit
- *
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-
-package org.ow2.jonas.earsample.clients;
-
-import java.net.URL;
-
-import javax.naming.Context;
-import javax.naming.InitialContext;
-import javax.transaction.UserTransaction;
-import javax.rmi.PortableRemoteObject;
-
-import org.ow2.jonas.earsample.beans.secusb.Op;
-import org.ow2.jonas.earsample.beans.secusb.OpHome;
-
-
-/**
- * Heavy client doing some operations on a bean
- * @author jonas team
- */
-public class Client {
-
- /**
- * First amount to buy
- */
- private static final int FIRST_BUY_AMOUNT = 10;
-
- /**
- * Second amount to buy
- */
- private static final int SECOND_BUY_AMOUNT = 20;
-
- /**
- * Third amount to buy (will be rollback)
- */
- private static final int THIRD_BUY_AMOUNT = 50;
-
- /**
- * Constructor. Hide constructor as it is an utility class
- */
- private Client() {
-
- }
-
- /**
- * Main method
- * @param args arguments of the client
- */
- public static void main(String[] args) {
-
- Context initialContext = null;
- System.out.print("Building a new InitialContext...");
- try {
- initialContext = new InitialContext();
- } catch (Exception e) {
- System.err.println("Cannot get initial context for JNDI: " + e);
- System.exit(2);
- }
- System.out.println("done !");
-
- System.out.print("Looking up java:comp/UserTransaction ...");
- // We want to start transactions from client: get UserTransaction
- UserTransaction utx = null;
- try {
- utx = (UserTransaction) initialContext.lookup("java:comp/UserTransaction");
- } catch (Exception e) {
- System.err.println("Cannot lookup UserTransaction: " + e);
- System.exit(2);
- }
- System.out.println("done !");
-
- String envEntry = null;
- System.out.print("Looking up java:comp/env/envEntryString ...");
- try {
- envEntry = (String) initialContext.lookup("java:comp/env/envEntryString");
- } catch (Exception e) {
- System.err.println("Cannot get env-entry on JNDI " + e);
- System.exit(2);
- }
- System.out.println("done !");
- System.out.println("Env entry is : " + envEntry);
-
- URL url = null;
- System.out.print("Looking up java:comp/env/url/jonas ...");
- try {
- url = (URL) initialContext.lookup("java:comp/env/url/jonas");
- } catch (Exception e) {
- System.err.println("Cannot get URL on JNDI " + e);
- System.exit(2);
- }
- System.out.println("done !");
- System.out.println("Web site of jonas is at :" + url);
-
- System.out.print("Looking up java:comp/env/ejb/Op ...");
- // Connecting to OpHome thru JNDI
- OpHome home = null;
- try {
- home = (OpHome) PortableRemoteObject.narrow(initialContext.lookup("java:comp/env/ejb/Op"), OpHome.class);
- System.out.println("done !");
- } catch (Exception e) {
- e.printStackTrace();
- System.err.println("Cannot lookup OpHome: " + e);
- System.exit(2);
- }
-
- // OpBean creation
- Op t1 = null;
- try {
- System.out.println("Create a bean");
- t1 = home.create("User1");
- } catch (Exception e) {
- System.err.println("Cannot create OpBean: " + e);
- System.exit(2);
- }
-
- // First transaction (committed)
- try {
- System.out.println("Start a first transaction");
- utx.begin();
- System.out.println("First request on the new bean");
- t1.buy(FIRST_BUY_AMOUNT);
- System.out.println("Second request on the bean");
- t1.buy(SECOND_BUY_AMOUNT);
- System.out.println("Commit the transaction");
- utx.commit();
- } catch (Exception e) {
- System.err.println("exception during 1st Tx: " + e);
- System.exit(2);
- }
- // Start another transaction (rolled back)
- try {
- System.out.println("Start a second transaction");
- utx.begin();
- t1.buy(THIRD_BUY_AMOUNT);
- System.out.println("Rollback the transaction");
- utx.rollback();
- } catch (Exception e) {
- System.err.println("exception during 2nd Tx: " + e);
- System.exit(2);
- }
-
- // Get the total bought, outside the transaction
- int val = 0;
- try {
- System.out.println("Request outside any transaction");
- val = t1.read();
- } catch (Exception e) {
- System.err.println("Cannot read value on t1 : " + e);
- System.exit(2);
- }
- if (val != FIRST_BUY_AMOUNT + SECOND_BUY_AMOUNT) {
- System.err.println("Bad value read: " + val);
- System.exit(2);
- }
-
- // Remove Session bean
- try {
- t1.remove();
- } catch (Exception e) {
- System.out.println("Exception on buy: " + e);
- System.exit(2);
- }
- System.out.println("ClientOp OK. Exiting.");
- }
-}
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/src/java/org/ow2/jonas/earsample/resourceadapters/ResourceAdapterImpl.java b/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/src/java/org/ow2/jonas/earsample/resourceadapters/ResourceAdapterImpl.java
deleted file mode 100644
index 8886fde8a067f538b164fd18752b20b78bc3cdb0..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/src/java/org/ow2/jonas/earsample/resourceadapters/ResourceAdapterImpl.java
+++ /dev/null
@@ -1,191 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 1999-2005 Bull S.A.
- * Contact: jonas-team@ow2.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-
-package org.ow2.jonas.earsample.resourceadapters;
-
-
-import java.net.MalformedURLException;
-import java.util.HashMap;
-
-import javax.naming.InitialContext;
-import javax.naming.NamingException;
-import javax.resource.NotSupportedException;
-import javax.resource.ResourceException;
-import javax.resource.spi.ActivationSpec;
-import javax.resource.spi.BootstrapContext;
-import javax.resource.spi.ResourceAdapterInternalException;
-import javax.resource.spi.endpoint.MessageEndpointFactory;
-import javax.transaction.xa.XAResource;
-
-/**
- * A Resource adapter
- * @author kemlerp
- *
- */
-public class ResourceAdapterImpl implements javax.resource.spi.ResourceAdapter, java.io.Serializable {
-
-
- /**
- * serialVersionUID
- */
- private static final long serialVersionUID = 3834312812943456568L;
-
- /**
- * String should be the RA name when set, ie, EIS
- */
- private String eisurl;
-
- /**
- * The JNDI name
- */
- private String jndiName;
-
- /**
- * Initial context
- */
- private InitialContext ictx;
-
- /**
- * BootstrapContext
- */
- private BootstrapContext bootstrapCtx = null; // set in start()
-
- /**
- * EndpointFactories
- */
- private transient HashMap endpointFactories = new HashMap();
-
-
- /**
- * Start
- * @param bootstrapCtx bootstrapCtx
- * @throws ResourceAdapterInternalException if an error occurs
- */
- public void start(BootstrapContext bootstrapCtx) throws ResourceAdapterInternalException {
- this.bootstrapCtx = bootstrapCtx;
-
- try {
- ictx = new InitialContext();
- ictx.bind(jndiName, eisurl);
- } catch (NamingException e) {
- e.printStackTrace();
- }
-
- }
-
- /**
- * Stop
- */
- public void stop() {
- try {
- ictx.unbind(jndiName);
- } catch (NamingException e) {
- e.printStackTrace();
- }
- }
-
-
- /**
- * Called by the application server when a message-driven bean
- * (MessageEndpoint) is deployed.
- * @param factory MessageEndpointFactory
- * @param spec activation spec
- * @throws NotSupportedException if an error occurs
- * @throws ResourceAdapterInternalException if an error occurs
- */
- public void endpointActivation(MessageEndpointFactory factory, ActivationSpec spec) throws NotSupportedException,
- ResourceAdapterInternalException {
- endpointFactories.put(spec, factory);
- }
-
- /**
- * Endpoint Deactivation
- * @param factory MessageEndpointFactory
- * @param spec activation spec
- */
- public void endpointDeactivation(MessageEndpointFactory factory, ActivationSpec spec) {
- endpointFactories.remove(spec);
- }
-
- /**
- * Get XAResources
- * @param specs A tab of specs
- * @throws ResourceException if an error occurs
- * @return Tab of XAResources
- */
- public XAResource[] getXAResources(ActivationSpec[] specs) throws ResourceException {
- return null;
- }
-
- /**
- * Get Eis URL
- * @return Eis URL
- */
- public String getEisURL() {
- return eisurl.toString();
- }
-
- /**
- * Set Eis URL
- * @param eisURL Eis URL
- * @throws MalformedURLException if 'eisURL' is not a URL
- */
- public void setEisURL(String eisURL) throws MalformedURLException {
- // ra.xml deployment supplies value
- this.eisurl = eisURL;
- }
-
- /**
- * Get BootstrapContext
- * @return bootstrapCtx
- */
- public BootstrapContext getBootstrapCtx() {
- return bootstrapCtx;
- }
-
- /**
- * Set BootstrapContext
- * @param bootstrapCtx bootstrapContext
- */
- public void setBootstrapCtx(BootstrapContext bootstrapCtx) {
- this.bootstrapCtx = bootstrapCtx;
- }
-
- /**
- * Get used JNDI name
- * @return A string
- */
- public String getJndiName() {
- return jndiName;
- }
-
- /**
- * Set JNDI name
- * @param jndiName a string
- */
- public void setJndiName(String jndiName) {
- this.jndiName = jndiName;
- }
-}
diff --git a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/src/java/org/ow2/jonas/earsample/servlets/ServletOp.java b/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/src/java/org/ow2/jonas/earsample/servlets/ServletOp.java
deleted file mode 100644
index 7afcbaeb7f19e462b2b76d6adaba525cb1855862..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/src/java/org/ow2/jonas/earsample/servlets/ServletOp.java
+++ /dev/null
@@ -1,305 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 1999-2005 Bull S.A.
- * Contact: jonas-team@ow2.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-
-package org.ow2.jonas.earsample.servlets;
-
-import java.io.IOException;
-import java.io.PrintWriter;
-import java.net.URL;
-
-import javax.naming.Context;
-import javax.naming.InitialContext;
-import javax.rmi.PortableRemoteObject;
-import javax.servlet.ServletException;
-import javax.servlet.http.HttpServlet;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-import javax.transaction.UserTransaction;
-
-import org.ow2.jonas.earsample.beans.secusb.Op;
-import org.ow2.jonas.earsample.beans.secusb.OpHome;
-import org.ow2.jonas.earsample.beans.secusb.OpLocal;
-import org.ow2.jonas.earsample.beans.secusb.OpLocalHome;
-
-
-/**
- * This servlet is an example to show how to access a EJB from a servlet
- * @author JOnAS team
- */
-public class ServletOp extends HttpServlet {
-
- /**
- * First amount to buy
- */
- private static final int FIRST_BUY_AMOUNT = 10;
-
- /**
- * Second amount to buy
- */
- private static final int SECOND_BUY_AMOUNT = 20;
-
- /**
- * Third amount to buy (will be rollback)
- */
- private static final int THIRD_BUY_AMOUNT = 50;
-
-
- /**
- * Called by the server (via the service method) to allow a servlet to
- * handle a GET request.
- * @param request an HttpServletRequest object that contains the request
- * the client has made of the servlet
- * @param response an HttpServletResponse object that contains the
- * response the servlet sends to the client
- * @throws IOException if an input or output error is detected when the
- * servlet handles the GET request
- * @throws ServletException if the request for the GET could not be handled
- */
- public void doGet(HttpServletRequest request, HttpServletResponse response)
- throws IOException, ServletException {
-
- response.setContentType("text/html");
- PrintWriter out = response.getWriter();
- out.println("");
- out.println("");
- out.println("");
- out.println("");
- out.println("Ear Sample of Servlet accessing a protected EJB");
- out.println("");
- out.println("");
- out.println("
Ear sample of Servlet accessing a protected EJB");
- out.println("
");
-
-
- out.println("Sample is OK. ");
- out.println("");
- out.println("");
- }
-}
diff --git a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/velocity.log b/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/velocity.log
deleted file mode 100644
index 3589d3311f7822e619ec3c24129cb580eb4f6803..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/j2ee1.4/velocity.log
+++ /dev/null
@@ -1,62 +0,0 @@
-Tue Nov 18 12:51:02 CET 2008 [debug] AvalonLogSystem initialized using logfile 'velocity.log'
-Tue Nov 18 12:51:02 CET 2008 [info] **************************************************************
-Tue Nov 18 12:51:02 CET 2008 [info] Starting Jakarta Velocity v1.4
-Tue Nov 18 12:51:02 CET 2008 [info] RuntimeInstance initializing.
-Tue Nov 18 12:51:02 CET 2008 [info] Default Properties File: org\apache\velocity\runtime\defaults\velocity.properties
-Tue Nov 18 12:51:02 CET 2008 [info] Trying to use logger class org.apache.velocity.runtime.log.AvalonLogSystem
-Tue Nov 18 12:51:02 CET 2008 [info] Using logger class org.apache.velocity.runtime.log.AvalonLogSystem
-Tue Nov 18 12:51:02 CET 2008 [info] Default ResourceManager initializing. (class org.apache.velocity.runtime.resource.ResourceManagerImpl)
-Tue Nov 18 12:51:02 CET 2008 [info] Resource Loader Instantiated: org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
-Tue Nov 18 12:51:02 CET 2008 [info] ClasspathResourceLoader : initialization starting.
-Tue Nov 18 12:51:02 CET 2008 [info] ClasspathResourceLoader : initialization complete.
-Tue Nov 18 12:51:02 CET 2008 [info] ResourceCache : initialized. (class org.apache.velocity.runtime.resource.ResourceCacheImpl)
-Tue Nov 18 12:51:02 CET 2008 [info] Default ResourceManager initialization complete.
-Tue Nov 18 12:51:02 CET 2008 [info] Loaded System Directive: org.apache.velocity.runtime.directive.Literal
-Tue Nov 18 12:51:02 CET 2008 [info] Loaded System Directive: org.apache.velocity.runtime.directive.Macro
-Tue Nov 18 12:51:02 CET 2008 [info] Loaded System Directive: org.apache.velocity.runtime.directive.Parse
-Tue Nov 18 12:51:02 CET 2008 [info] Loaded System Directive: org.apache.velocity.runtime.directive.Include
-Tue Nov 18 12:51:02 CET 2008 [info] Loaded System Directive: org.apache.velocity.runtime.directive.Foreach
-Tue Nov 18 12:51:03 CET 2008 [info] Created: 20 parsers.
-Tue Nov 18 12:51:03 CET 2008 [info] Velocimacro : initialization starting.
-Tue Nov 18 12:51:03 CET 2008 [info] Velocimacro : adding VMs from VM library template : org/ow2/jonas/generators/genic/GenICMacros.vm
-Tue Nov 18 12:51:03 CET 2008 [info] Velocimacro : added new VM : #beforeThrowRemoteException( ) : source = org/ow2/jonas/generators/genic/GenICMacros.vm
-Tue Nov 18 12:51:03 CET 2008 [info] Velocimacro : added new VM : #afterThrowRemoteException( ) : source = org/ow2/jonas/generators/genic/GenICMacros.vm
-Tue Nov 18 12:51:03 CET 2008 [info] Velocimacro : added new VM : #timerVariablesDeclaration( ) : source = org/ow2/jonas/generators/genic/GenICMacros.vm
-Tue Nov 18 12:51:03 CET 2008 [info] Velocimacro : added new VM : #getRequestStartTime( ) : source = org/ow2/jonas/generators/genic/GenICMacros.vm
-Tue Nov 18 12:51:03 CET 2008 [info] Velocimacro : added new VM : #getRequestStopTime( ) : source = org/ow2/jonas/generators/genic/GenICMacros.vm
-Tue Nov 18 12:51:03 CET 2008 [info] Velocimacro : added new VM : #getBusinessStartTime( ) : source = org/ow2/jonas/generators/genic/GenICMacros.vm
-Tue Nov 18 12:51:03 CET 2008 [info] Velocimacro : added new VM : #getBusinessStopTime( ) : source = org/ow2/jonas/generators/genic/GenICMacros.vm
-Tue Nov 18 12:51:03 CET 2008 [info] Velocimacro : added new VM : #updateEJBMonitoringData( ) : source = org/ow2/jonas/generators/genic/GenICMacros.vm
-Tue Nov 18 12:51:03 CET 2008 [info] ResourceManager : found org/ow2/jonas/generators/genic/GenICMacros.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
-Tue Nov 18 12:51:03 CET 2008 [info] Velocimacro : VM library template macro registration complete.
-Tue Nov 18 12:51:03 CET 2008 [info] Velocimacro : allowInline = true : VMs can be defined inline in templates
-Tue Nov 18 12:51:03 CET 2008 [info] Velocimacro : allowInlineToOverride = false : VMs defined inline may NOT replace previous VM definitions
-Tue Nov 18 12:51:03 CET 2008 [info] Velocimacro : allowInlineLocal = false : VMs defined inline will be global in scope if allowed.
-Tue Nov 18 12:51:03 CET 2008 [info] Velocimacro : messages on : VM system will output logging messages
-Tue Nov 18 12:51:03 CET 2008 [info] Velocimacro : autoload off : VM system will not automatically reload global library macros
-Tue Nov 18 12:51:03 CET 2008 [info] Velocimacro : initialization complete.
-Tue Nov 18 12:51:03 CET 2008 [info] Velocity successfully started.
-Tue Nov 18 12:51:03 CET 2008 [info] ResourceManager : found org/ow2/jonas/generators/genic/JStatefulHome.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
-Tue Nov 18 12:51:03 CET 2008 [warn] org.apache.velocity.runtime.exception.ReferenceException: reference : template = org/ow2/jonas/generators/genic/JStatefulHome.vm [line 35,column 11] : $Id is not a valid reference.
-Tue Nov 18 12:51:03 CET 2008 [warn] org.apache.velocity.runtime.exception.ReferenceException: reference : template = org/ow2/jonas/generators/genic/JStatefulHome.vm [line 1,column 42] : $Id is not a valid reference.
-Tue Nov 18 12:51:03 CET 2008 [warn] org.apache.velocity.runtime.exception.ReferenceException: reference : template = org/ow2/jonas/generators/genic/JStatefulHome.vm [line 1,column 45] : $Id is not a valid reference.
-Tue Nov 18 12:51:03 CET 2008 [warn] org.apache.velocity.runtime.exception.ReferenceException: reference : template = org/ow2/jonas/generators/genic/JStatefulHome.vm [line 1,column 42] : $Id is not a valid reference.
-Tue Nov 18 12:51:03 CET 2008 [warn] org.apache.velocity.runtime.exception.ReferenceException: reference : template = org/ow2/jonas/generators/genic/JStatefulHome.vm [line 1,column 45] : $Id is not a valid reference.
-Tue Nov 18 12:51:03 CET 2008 [warn] org.apache.velocity.runtime.exception.ReferenceException: reference : template = org/ow2/jonas/generators/genic/JStatefulHome.vm [line 1,column 42] : $Id is not a valid reference.
-Tue Nov 18 12:51:03 CET 2008 [warn] org.apache.velocity.runtime.exception.ReferenceException: reference : template = org/ow2/jonas/generators/genic/JStatefulHome.vm [line 1,column 45] : $Id is not a valid reference.
-Tue Nov 18 12:51:03 CET 2008 [warn] org.apache.velocity.runtime.exception.ReferenceException: reference : template = org/ow2/jonas/generators/genic/JStatefulHome.vm [line 182,column 9] : $Id is not a valid reference.
-Tue Nov 18 12:51:03 CET 2008 [info] ResourceManager : found org/ow2/jonas/generators/genic/JStatefulRemote.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
-Tue Nov 18 12:51:03 CET 2008 [warn] org.apache.velocity.runtime.exception.ReferenceException: reference : template = org/ow2/jonas/generators/genic/JStatefulRemote.vm [line 36,column 11] : $Id is not a valid reference.
-Tue Nov 18 12:51:03 CET 2008 [warn] org.apache.velocity.runtime.exception.ReferenceException: reference : template = org/ow2/jonas/generators/genic/JStatefulRemote.vm [line 1,column 42] : $Id is not a valid reference.
-Tue Nov 18 12:51:03 CET 2008 [warn] org.apache.velocity.runtime.exception.ReferenceException: reference : template = org/ow2/jonas/generators/genic/JStatefulRemote.vm [line 1,column 45] : $Id is not a valid reference.
-Tue Nov 18 12:51:03 CET 2008 [warn] org.apache.velocity.runtime.exception.ReferenceException: reference : template = org/ow2/jonas/generators/genic/JStatefulRemote.vm [line 1,column 42] : $Id is not a valid reference.
-Tue Nov 18 12:51:03 CET 2008 [warn] org.apache.velocity.runtime.exception.ReferenceException: reference : template = org/ow2/jonas/generators/genic/JStatefulRemote.vm [line 1,column 45] : $Id is not a valid reference.
-Tue Nov 18 12:51:03 CET 2008 [warn] org.apache.velocity.runtime.exception.ReferenceException: reference : template = org/ow2/jonas/generators/genic/JStatefulRemote.vm [line 1,column 42] : $Id is not a valid reference.
-Tue Nov 18 12:51:03 CET 2008 [warn] org.apache.velocity.runtime.exception.ReferenceException: reference : template = org/ow2/jonas/generators/genic/JStatefulRemote.vm [line 1,column 45] : $Id is not a valid reference.
-Tue Nov 18 12:51:03 CET 2008 [warn] org.apache.velocity.runtime.exception.ReferenceException: reference : template = org/ow2/jonas/generators/genic/JStatefulRemote.vm [line 236,column 9] : $Id is not a valid reference.
-Tue Nov 18 12:51:03 CET 2008 [info] ResourceManager : found org/ow2/jonas/generators/genic/JStatefulLocalHome.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
-Tue Nov 18 12:51:03 CET 2008 [warn] org.apache.velocity.runtime.exception.ReferenceException: reference : template = org/ow2/jonas/generators/genic/JStatefulLocalHome.vm [line 30,column 11] : $Id is not a valid reference.
-Tue Nov 18 12:51:03 CET 2008 [warn] org.apache.velocity.runtime.exception.ReferenceException: reference : template = org/ow2/jonas/generators/genic/JStatefulLocalHome.vm [line 135,column 9] : $Id is not a valid reference.
-Tue Nov 18 12:51:03 CET 2008 [info] ResourceManager : found org/ow2/jonas/generators/genic/JStatefulLocal.vm with loader org.apache.velocity.runtime.resource.loader.ClasspathResourceLoader
-Tue Nov 18 12:51:03 CET 2008 [warn] org.apache.velocity.runtime.exception.ReferenceException: reference : template = org/ow2/jonas/generators/genic/JStatefulLocal.vm [line 36,column 11] : $Id is not a valid reference.
-Tue Nov 18 12:51:03 CET 2008 [warn] org.apache.velocity.runtime.exception.ReferenceException: reference : template = org/ow2/jonas/generators/genic/JStatefulLocal.vm [line 192,column 9] : $Id is not a valid reference.
diff --git a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/README b/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/README
deleted file mode 100644
index d40c62d74e9aba2c6f1c26ba1cb086e8e052c622..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/README
+++ /dev/null
@@ -1,10 +0,0 @@
-- Ant tool must be launched in this directory
- --> a file named javaee5-earsample.ear is produced in $JONAS_BASE/deploy
-
-- Configure JavaMail: see $JONAS_BASE/conf/MailMimePartDS1.properties and $JONAS_BASE/conf/MailSession1.properties
-
-- Start JOnAS
-
-- Go on http://localhost:9000/javaee5-earsample/
-
-- Example is ready
diff --git a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/bin-client/clientConfig/carol.properties b/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/bin-client/clientConfig/carol.properties
deleted file mode 100644
index c59d0b2b43e19b38df27c8e613066292223210b1..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/bin-client/clientConfig/carol.properties
+++ /dev/null
@@ -1,101 +0,0 @@
-# Copyright (C) 2002-2007 ObjectWeb
-#
-# CAROL: Common Architecture for RMI ObjectWeb Layer
-#
-# This library is developed inside the ObjectWeb Consortium,
-# http://www.ow2.org
-#
-# This library 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 any later version.
-#
-# This library 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 library; if not, write to the Free Software
-# Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
-# USA
-#
-# --------------------------------------------------------------------------
-# $Id$
-# --------------------------------------------------------------------------
-
-# jonas rmi activation (iiop, irmi, jrmp)
-carol.protocols=jrmp
-
-# RMI IRMI URL
-carol.irmi.url=rmi://localhost:1099
-
-# RMI JRMP URL
-carol.jrmp.url=rmi://localhost:1099
-
-# RMI IIOP URL
-carol.iiop.url=iiop://localhost:1099
-
-######################################################################
-# Advanced Configuration for IRMI
-######################################################################
-# Exported objects will listen on this port for remote method
-# invocations.
-#A value of 0 will cause a random port to be selected.
-# This is the default value.
-# Warning : if the port is set (not 0) with the value 'n', be aware that
-# the port 'n + 1' will be used by the JMX server.
-# So, for the firewall configuration, you have to open the port numbers 'n'
-# and 'n+1'.
-carol.irmi.server.port=0
-
-# Use only a single interface when creating the registry
-# (specified in carol.irmi.url property)
-# Use all interfaces available [default configuration = false]
-carol.irmi.interfaces.bind.single=false
-
-######################################################################
-# Advanced Configuration for JRMP
-######################################################################
-# If true, local call with jrmp are optimized. If you get "ClassCastException
-# with 2 beans in different jars, you should set it at "false".
-carol.jvm.rmi.local.call=false
-
-# If true a local Naming context is used (to be used only with a collocated registry)
-carol.jvm.rmi.local.registry=true
-
-# The value of this port is used to set the port of the objects listener.
-# This allow to use this port for a firewall configuration.
-# If registry and server are on same host, the two ports to open are the following and the registry port.
-# 0 means random port [default configuration = 0]
-carol.jrmp.server.port=0
-
-# Use only a single interface when creating the registry
-# (specified in carol.jrmp.url property)
-# Use all interfaces available [default configuration = false]
-carol.jrmp.interfaces.bind.single=false
-
-
-######################################################################
-# Advanced Configuration for IIOP
-######################################################################
-# The value of this port is used to set the port of the objects listener.
-# This allow to use this port for a firewall configuration.
-# If registry and server are on same host, the two ports to open are the following and the registry port.
-# 0 means random port [default configuration = 0]
-carol.iiop.server.port=0
-
-# The value of this port is used to set the SSL port of the objects listener.
-# Note that this port musn't not be set to 0 as it is used for CsiV2.
-# but this port is used only if SSL mode is enable.
-# So by default, there is no listener on this port
-# [default configuration = not used]
-carol.iiop.server.sslport=2003
-
-# Delegate used by JOnAS for rmi-iiop protocol
-carol.iiop.PortableRemoteObjectClass=org.ow2.jonas.registry.carol.delegate.JacORBPRODelegate
-
-######################################################################
-# Advanced JNDI Configuration
-######################################################################
-carol.jndi.java.naming.factory.url.pkgs=org.ow2.jonas.lib.naming
diff --git a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/bin-client/clientConfig/traceclient.properties b/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/bin-client/clientConfig/traceclient.properties
deleted file mode 100644
index c7bb2c21359c289d2600c50846b5cf44d9daada8..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/bin-client/clientConfig/traceclient.properties
+++ /dev/null
@@ -1,43 +0,0 @@
-# -----------------------------------------------------------------------
-# This is a default configuration file for monolog.
-#
-# Patterns for each handler may include these possible values :
-# %h the thread name
-# %O{1} the Class name (basename only)
-# %M the method name
-# %L the line number
-# %d the date
-# %l the level
-# %m the message itself
-# %n a new line
-#
-# Each logger inherits from its parent for properties not defined.
-# The root logger is "root". It must always be defined.
-#
-# Each logger is associated with a level that can be one of :
-# ERROR | WARN | INFO | DEBUG
-#
-# -> More info on http://www.objectweb.org/monolog/doc.html
-# -----------------------------------------------------------------------
-#
-# Define which wrapper to use (= javaLog)
-# -----------------------------------------------------------------------
-# For Log4j you need to add log4j.jar
-# log.config.classname org.objectweb.util.monolog.wrapper.log4j.MonologLoggerFactory
-log.config.classname org.objectweb.util.monolog.wrapper.javaLog.LoggerFactory
-
-# -----------------------------------------------------------------------
-# tty : console handler
-# -----------------------------------------------------------------------
-handler.tty.type Console
-handler.tty.output System.out
-handler.tty.pattern %O{1}.%M : %m%n
-
-# -----------------------------------------------------------------------
-# logger definitions
-# -----------------------------------------------------------------------
-logger.root.handler.0 tty
-
-logger.root.level ERROR
-#logger.org.ow2.carol.level DEBUG
-#logger.org.ow2.jonas.level DEBUG
diff --git a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/bin-client/clientJaasSecuredApplication.bat b/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/bin-client/clientJaasSecuredApplication.bat
deleted file mode 100755
index 25a39c40ff008c9a8a986e279ce540e0cf150610..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/bin-client/clientJaasSecuredApplication.bat
+++ /dev/null
@@ -1 +0,0 @@
-jclient %JONAS_BASE%\deploy\javaee5-earsample.ear -jarClient jaas-secured-application-client.jar -carolFile clientConfig\carol.properties -traceFile clientConfig\traceclient.properties
\ No newline at end of file
diff --git a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/bin-client/clientJaasSecuredApplication.sh b/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/bin-client/clientJaasSecuredApplication.sh
deleted file mode 100755
index 0f510a8f4bef1b336fa52607cedb9430b4e80509..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/bin-client/clientJaasSecuredApplication.sh
+++ /dev/null
@@ -1 +0,0 @@
-jclient $JONAS_BASE/deploy/javaee5-earsample.ear -jarClient jaas-secured-application-client.jar -carolFile clientConfig/carol.properties -traceFile clientConfig/traceclient.properties
\ No newline at end of file
diff --git a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/bin-client/clientJmsApplication.bat b/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/bin-client/clientJmsApplication.bat
deleted file mode 100755
index 9966a4917fcf55ec9b750b0fd6555d808d757e7b..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/bin-client/clientJmsApplication.bat
+++ /dev/null
@@ -1 +0,0 @@
-jclient %JONAS_BASE%\deploy\javaee5-earsample.ear -jarClient jms-application-client.jar -carolFile clientConfig\carol.properties -traceFile clientConfig\traceclient.properties
\ No newline at end of file
diff --git a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/bin-client/clientJmsApplication.sh b/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/bin-client/clientJmsApplication.sh
deleted file mode 100755
index 9f4a12482b54000bfeaf9902babe462659ce0c74..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/bin-client/clientJmsApplication.sh
+++ /dev/null
@@ -1 +0,0 @@
-jclient $JONAS_BASE/deploy/javaee5-earsample.ear -jarClient jms-application-client.jar -carolFile clientConfig/carol.properties -traceFile clientConfig/traceclient.properties
\ No newline at end of file
diff --git a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/bin-client/clientNotSecuredApplication.bat b/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/bin-client/clientNotSecuredApplication.bat
deleted file mode 100755
index 8ec6ff397977f99ea8c7dbf414d2fa4fdd28d9f1..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/bin-client/clientNotSecuredApplication.bat
+++ /dev/null
@@ -1 +0,0 @@
-jclient %JONAS_BASE%\deploy\javaee5-earsample.ear -jarClient not-secured-application-client.jar -carolFile clientConfig\carol.properties -traceFile clientConfig\traceclient.properties
\ No newline at end of file
diff --git a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/bin-client/clientNotSecuredApplication.sh b/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/bin-client/clientNotSecuredApplication.sh
deleted file mode 100755
index 541ed9e201dd3c3fdb8944f9cf9b44ccaeb598b9..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/bin-client/clientNotSecuredApplication.sh
+++ /dev/null
@@ -1 +0,0 @@
-jclient $JONAS_BASE/deploy/javaee5-earsample.ear -jarClient not-secured-application-client.jar -carolFile clientConfig/carol.properties -traceFile clientConfig/traceclient.properties
\ No newline at end of file
diff --git a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/build.xml b/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/build.xml
deleted file mode 100644
index 10961a18f538a41e5d4cb1f738cbdbbbb09b40df..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/build.xml
+++ /dev/null
@@ -1,198 +0,0 @@
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/META-INF/MANIFEST.MF b/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/META-INF/MANIFEST.MF
deleted file mode 100644
index badbabc3cab8390a2a0a60e83434f466ab4a782a..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/META-INF/MANIFEST.MF
+++ /dev/null
@@ -1 +0,0 @@
-Require-JOnAS-Services: mail
diff --git a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/application.xml b/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/application.xml
deleted file mode 100644
index b0079c89648c76c40fda3e5d50c7ae9bbc5436ed..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/application.xml
+++ /dev/null
@@ -1,66 +0,0 @@
-
-
-
-
-
-
- Java EE 5.0 EAR Sample
- Java EE 5.0 EAR Sample
-
-
-
- ejb3.jar
-
-
-
-
-
- javaee5-earsample.war
- javaee5-earsample
-
-
-
-
-
-
- jms-application-client.jar
-
-
-
- not-secured-application-client.jar
-
-
-
- jaas-secured-application-client.jar
-
-
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/jaas-secured-application-client.xml b/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/jaas-secured-application-client.xml
deleted file mode 100644
index a663fd65656768a3ca5afa1980c775dcf6f6383a..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/jaas-secured-application-client.xml
+++ /dev/null
@@ -1,39 +0,0 @@
-
-
-
-
-
- OW2 JOnAS :: EAR Sample :: Secured Application Client
-
- org.ow2.jonas.security.auth.callback.LoginCallbackHandler
-
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/jaas-secured-jonas-client.xml b/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/jaas-secured-jonas-client.xml
deleted file mode 100644
index 1f34afa5d3cf2e3a6d889e0d70619f13e211d6d5..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/jaas-secured-jonas-client.xml
+++ /dev/null
@@ -1,40 +0,0 @@
-
-
-
-
-
-
- jaas.config
- javaee5-earsample
- jonas
- jonas
-
-
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/jaas.config b/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/jaas.config
deleted file mode 100644
index 517159a434442b0b0feaf2880e0f8e7092021a4e..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/jaas.config
+++ /dev/null
@@ -1,37 +0,0 @@
-// ---------------------------------------------------------------------------
-// JOnAS: Java(TM) Open Application Server
-// Copyright (C) 2008 Bull S.A.S.
-// Contact: jonas-team@ow2.org
-//
-// This library 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 any later version.
-//
-// This library 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 library; if not, write to the Free Software
-// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
-// USA
-//
-// ---------------------------------------------------------------------------
-// $Id: build.properties 12246 2007-12-09 21:42:38Z benoitf $
-// ---------------------------------------------------------------------------
-
-javaee5-earsample {
- // Login Module to use for the example javaee5-earsample.
-
- // First, use a LoginModule for the authentication
- // Use the resource memrlm_1
- org.ow2.jonas.security.auth.spi.JResourceLoginModule required
- resourceName="memrlm_1"
- ;
-
- // Use the login module to propagate security to the JOnAS server
- org.ow2.jonas.security.auth.spi.ClientLoginModule required
- ;
-};
diff --git a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/jms-application-client.xml b/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/jms-application-client.xml
deleted file mode 100644
index 60620aadf75e6515dd963d47b1fd8731d2d14392..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/jms-application-client.xml
+++ /dev/null
@@ -1,50 +0,0 @@
-
-
-
-
-
- OW2 JOnAS :: EAR Sample :: JMS Application Client
-
-
-
- jms/QueueConnectionFactory
- javax.jms.QueueConnectionFactory
- Container
-
-
-
-
- jms/SampleQueue
- javax.jms.Queue
-
-
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/jms-jonas-client.xml b/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/jms-jonas-client.xml
deleted file mode 100644
index c7dae4e51ea0c7e56c939aa53b0d29a1e039c26a..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/jms-jonas-client.xml
+++ /dev/null
@@ -1,42 +0,0 @@
-
-
-
-
-
-
- jms/QueueConnectionFactory
- JQCF
-
-
-
- jms/SampleQueue
- SampleQueue
-
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/not-secured-application-client.xml b/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/not-secured-application-client.xml
deleted file mode 100644
index 38c9eca304cba73780de14c6150d4535d7fde6b0..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/not-secured-application-client.xml
+++ /dev/null
@@ -1,37 +0,0 @@
-
-
-
-
-
- OW2 JOnAS :: EAR Sample :: Not Secured Application Client
-
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/not-secured-jonas-client.xml b/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/not-secured-jonas-client.xml
deleted file mode 100644
index 63a21cfb9a614afc58074c9f25e63333dfee4205..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/not-secured-jonas-client.xml
+++ /dev/null
@@ -1,33 +0,0 @@
-
-
-
-
-
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/persistence.xml b/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/persistence.xml
deleted file mode 100644
index 13b22224dfabec00124f2df392e1dd79fe17c8a5..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/persistence.xml
+++ /dev/null
@@ -1,45 +0,0 @@
-
-
-
-
-
- jdbc_1
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/web.xml b/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/web.xml
deleted file mode 100644
index f71cc4a400238ddcc60803504f1a14bdb234eec8..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/web.xml
+++ /dev/null
@@ -1,84 +0,0 @@
-
-
-
-
-
-
-
- DisplayServlet
- org.ow2.jonas.examples.ear.web.ExampleServlet
-
-
-
- AdminServlet
- org.ow2.jonas.examples.ear.web.AdminServlet
-
-
-
- DisplayServlet
- /display
-
-
-
- AdminServlet
- /secured/*
-
-
-
-
- Protected Area
-
- /secured/*
-
- DELETE
- GET
- POST
- PUT
-
-
-
- earsample
-
-
-
-
-
- BASIC
- JOnAS Realm
-
-
-
-
- earsample
-
-
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/web/img/architecture.png b/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/web/img/architecture.png
deleted file mode 100644
index 677540d697923559efa4c2095defb5917134492f..0000000000000000000000000000000000000000
Binary files a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/web/img/architecture.png and /dev/null differ
diff --git a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/web/img/jetty.gif b/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/web/img/jetty.gif
deleted file mode 100644
index 01f44a87f6801b200f142513d0d02b12cea0fb46..0000000000000000000000000000000000000000
Binary files a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/web/img/jetty.gif and /dev/null differ
diff --git a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/web/img/logoOW2.png b/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/web/img/logoOW2.png
deleted file mode 100644
index 71a185b68ed53e228e23c82c4ea0aa47b7556959..0000000000000000000000000000000000000000
Binary files a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/web/img/logoOW2.png and /dev/null differ
diff --git a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/web/img/ow_jonas_logo.gif b/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/web/img/ow_jonas_logo.gif
deleted file mode 100644
index 1b56943a721f82a8cb81776030567772265433f2..0000000000000000000000000000000000000000
Binary files a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/web/img/ow_jonas_logo.gif and /dev/null differ
diff --git a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/web/img/tomcat.gif b/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/web/img/tomcat.gif
deleted file mode 100644
index 61756736b82350f64b5ea1b2bfc31ac57e30a3d3..0000000000000000000000000000000000000000
Binary files a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/web/img/tomcat.gif and /dev/null differ
diff --git a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/web/img/valid-xhtml11.png b/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/web/img/valid-xhtml11.png
deleted file mode 100644
index 2c63d93f8868d574b9e69eda2727b7e7bf7fc8ec..0000000000000000000000000000000000000000
Binary files a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/web/img/valid-xhtml11.png and /dev/null differ
diff --git a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/web/img/vcss.png b/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/web/img/vcss.png
deleted file mode 100644
index 9b2f596e016533327216d98a0a927738fe17384f..0000000000000000000000000000000000000000
Binary files a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/web/img/vcss.png and /dev/null differ
diff --git a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/web/index.html b/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/web/index.html
deleted file mode 100644
index f587aeee4f96b86795abeb68473ebcade4f482f4..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/web/index.html
+++ /dev/null
@@ -1,66 +0,0 @@
-
-
-
-
-
-
- Java EE 5.0 Example
-
-
-
-
-
-
-
-
-
-
-
- Java EE 5.0 Example : Servlets accessing EJBs 3.0
-
-
-
- This web application is packaged as an "ear".
- When you will click to access the secured servlet, your web browser will open a dialog box
- asking you a user ID and a password.
-
- Use : jonas for the user ID and jonas for the
- password
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
Java EE 5.0 Example : Architecture
-
-
-
-
-
-
-
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/web/ow2_jonas.css b/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/web/ow2_jonas.css
deleted file mode 100644
index 4f0ee0e6b37f25e190dc37df5cf67d9ca2813e2f..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/etc/web/ow2_jonas.css
+++ /dev/null
@@ -1,183 +0,0 @@
-/*
- Context Root css. based on css from http://jonas.objectweb.org
- XHTML by Florent BENOIT
-*/
-
-
-body
-{
- top:10px;
- margin-top:10px;
- background-color: #FFF;
- color: #000000;
- }
-
-
-img {
- margin: 5px;
- border:0;
-}
-
-
-
-div.logos {
- top: 5px;
- width: 99%;
- text-align: right;
-}
-
-
-div.links {
- font-size: 14px;
- margin-top : 40px;
- margin-left : 200px;
-}
-
-
-div.titlepage {
- margin-left: 200px;
- font-family: Arial, Helvetica, sans-serif;
- font-size: 1.5em;
- line-height: 1.5em;
- border-bottom: 1px solid #0099cc;
- color : #ff6600;
- font-weight : bold;
-}
-
-
-div.footer {
- margin-top : 50px;
- color: #FFFFFF;
- font-size: 8pt;
- text-align: center;
-}
-
-
-/*HTML elements */
-
-
-
-ul, ol, dl
-{
- color: black;
- font-family: Arial,Helvetica, sans-serif;
- font-size: 12px;
- line-height: 16px;
- font-weight: normal;
-}
-
-li
-{
- color: black;
- font-family: Arial, Helvetica, sans-serif;
- font-size: 14px;
- font-weight: normal;
- margin: 10px 0px 5px 0px;
-
-}
-a
-{
- color: #3F3975;
- background-color: transparent;
- text-decoration: underline;
-}
-
-a:visited
-{
- color: #9898CB;
- background-color: transparent;
- text-decoration: underline;
-}
-
-a:hover
-{
- color: #E06611;
- background-color: transparent;
- text-decoration: underline;
-}
-
-
-a:active
-{
- color: #FFFFFF;
- background-color: #E06611;
- text-decoration: underline;
-}
-
-
-
-
-.h1, .h2, .h3, .h4, .h5 {
- color: #000;
- background-color: inherit;
- padding: 0;
-}
-
-.h1 {
- margin-top: 5px;
- font-size: 2em;
- line-height: 1.5em;
- margin: 30px 0 30px 0;
- border-bottom: 1px solid #0099cc;
- color : #ff6600;
- font-weight : bold;
-}
-
-.h2 {
- margin: 20px 0 15px 0;
- border-bottom: 1px solid #0099cc;
- font-weight:normal;
- font-style: normal;
- font-size: 1.6em;
- line-height: 1.4em;
- color : #0099cc
-}
-
-.h3 {
- font-weight: normal;
- font-size: 1.4em;
- line-height: 1.4em;
- margin: 20px 0 15px 0;
-}
-
-.h4 {
- font-weight:normal;
- color: #404040;
- margin: 20px 0 0 0;
- left: 0px;
- font-size: 1.4em;
- line-height: 1.4em;
-}
-.h5 {
- font-weight:normal;
- color: #404040;
- font-style: normal;
- margin: 0px;
- left: 0px;
- font-size: 1.2em;
- line-height: 1.2em;
-}
-
-td
-{
- color: black;
- font-family: Arial,Helvetica, sans-serif;
- font-size: 12px;
- font-weight: normal;
-}
-
-p
-{
- color: black;
- font-family: Arial,Helvetica, sans-serif;
- font-size: 12px;
- line-height: 16px;
- font-weight: normal;
- margin: 10px 10px 5px 0px;
-}
-
-p.error
-{
- color: red;
-}
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/src/java/org/ow2/jonas/examples/ear/client/JMSApplicationClient.java b/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/src/java/org/ow2/jonas/examples/ear/client/JMSApplicationClient.java
deleted file mode 100644
index 8ed463dd152e650984f584bd26b5ccb9df106acf..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/src/java/org/ow2/jonas/examples/ear/client/JMSApplicationClient.java
+++ /dev/null
@@ -1,146 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2008 Bull S.A.S.
- * Contact: jonas-team@ow2.org
- *
- * This library 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 library 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 library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
- *
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-
-package org.ow2.jonas.examples.ear.client;
-
-import java.io.PrintStream;
-import java.util.Collection;
-import java.util.List;
-import java.text.MessageFormat;
-
-import javax.jms.*;
-import javax.ejb.EJB;
-import javax.annotation.Resource;
-
-import org.ow2.jonas.examples.ear.entity.Author;
-import org.ow2.jonas.examples.ear.entity.Book;
-import org.ow2.jonas.examples.ear.init.Initializer;
-import org.ow2.jonas.examples.ear.reader.RemoteReader;
-
-/**
- * This application-client shows usage of JMS destinations to
- * interact with the server-side application.
- * @author Guillaume Sauthier
- */
-public final class JMSApplicationClient {
-
- /**
- * Number of Books to be created.
- */
- private static final int ITERATION_NUMBER = 10;
-
- /**
- * Link to the initializer bean.
- */
- @EJB
- private static Initializer initializerBean;
-
- /**
- * JMS conectionFactoery
- */
- // Resource injection
- @Resource(mappedName="JQCF")
- private static ConnectionFactory factory;
-
- /**
- * JMS Queue SampleQueue
- */
- // Resource injection
- @Resource(mappedName="SampleQueue")
- private static Queue queue;
-
-
- /**
- * Link to the Remote Reader bean. Bean will be injected by JOnAS.
- */
- @EJB
- static private RemoteReader readerBean;
-
- /**
- * Empty default constructor for utility class.
- */
- private JMSApplicationClient() {
-
- }
-
- /**
- * @param args Command line arguments
- * @throws Exception InitialContext creation failure / JMS Exception
- */
- public static void main(final String[] args) throws Exception {
-
- PrintStream out = System.out;
-
- // Print Header
- out.println("- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -");
- out.println("OW2 JOnAS :: EAR Sample :: Messager Application Client ");
- out.println("- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -");
-
-
-
-
- // Init. data if needed
- out.print("Initialization ... ");
-
- initializerBean.initializeEntities();
- out.println("Done.");
-
- // Send Book creation Messages
- Connection connection = factory.createConnection();
- Session session = connection.createSession(false, Session.AUTO_ACKNOWLEDGE);
- MessageProducer messageProducer= session.createProducer(queue);
-
- for (int i = 0; i < ITERATION_NUMBER; i++) {
- String title = "Encyclopedia Universalis Vol." + i;
- Message message = session.createTextMessage(title);
- messageProducer.send(message);
- out.println("Sended creation order for '" + title + "'");
- }
-
- // Close JMS objects
- messageProducer.close();
- session.close();
- connection.close();
-
- // Wait for some time ...
- // Remember JMS is for asynchronous messages :)
- final long period = 2500;
- out.println(MessageFormat.format("Wait for {0} ms...", period));
- Thread.sleep(period);
-
- out.println(MessageFormat.format("The RemoteReader Bean reference is: {0}", readerBean));
- // List Authors and Books
- List authors = readerBean.listAllAuthors();
- for (Author author : authors) {
- out.println(MessageFormat.format(" * {0}", author.getName()));
- Collection books = author.getBooks();
- for (Book book : books) {
- out.println(MessageFormat.format(" -> {0} [id: {1}]", book.getTitle(), book.getId()));
- }
- }
-
- out.println("Success.");
-
- }
-}
diff --git a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/src/java/org/ow2/jonas/examples/ear/client/NotSecuredApplicationClient.java b/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/src/java/org/ow2/jonas/examples/ear/client/NotSecuredApplicationClient.java
deleted file mode 100644
index 9696b19638f0303b2c4da27f09ab39bc31c50494..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/src/java/org/ow2/jonas/examples/ear/client/NotSecuredApplicationClient.java
+++ /dev/null
@@ -1,133 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2008 Bull S.A.S.
- * Contact: jonas-team@ow2.org
- *
- * This library 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 library 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 library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
- *
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-
-package org.ow2.jonas.examples.ear.client;
-
-import java.io.PrintStream;
-import java.util.Collection;
-import java.util.List;
-
-import javax.naming.Context;
-import javax.naming.InitialContext;
-import javax.naming.NamingException;
-
-import javax.ejb.EJB;
-
-import org.ow2.jonas.examples.ear.entity.Author;
-import org.ow2.jonas.examples.ear.entity.Book;
-import org.ow2.jonas.examples.ear.init.Initializer;
-import org.ow2.jonas.examples.ear.mail.Mailer;
-import org.ow2.jonas.examples.ear.reader.RemoteReader;
-
-/**
- * Simple Application Client.
- * @author Guillaume Sauthier
- */
-public final class NotSecuredApplicationClient {
-
- /**
- * Empty default constructor for utility class.
- */
- private NotSecuredApplicationClient() {
-
- }
-
- /**
- * Link to the initializer bean.
- */
- @EJB
- static private Initializer initializerBean;
-
- /**
- * Link to the Remote Reader bean. Bean will be injected by JOnAS.
- */
- @EJB
- static private RemoteReader readerBean;
-
- /**
- * Link to the Mailer bean. Bean will be injected by JOnAS.
- */
- @EJB
- static private Mailer mailerBean;
-
-
- /**
- * @param args Command line arguments
- * @throws NamingException InitialContext creation failure
- */
- public static void main(final String[] args) throws NamingException {
-
- PrintStream out = System.out;
-
- // Print Header
- out.println("- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -");
- out.println("OW2 JOnAS :: EAR Sample :: Not Secured Application Client ");
- out.println("- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -");
-
- // Init datas if needed
- out.print("Initialization ... ");
- initializerBean.initializeEntities();
- out.println("Done.");
-
-
- out.println("The RemoteReader Bean reference is : " + readerBean);
-
- // List registered authors and their books
- out.println("List of authors, and their books:");
- // retrieve again the authors list (now it has been initialized)
- List authors = readerBean.listAllAuthors();
- for (Author author : authors) {
- out.println(" * " + author.getName());
- Collection books = author.getBooks();
- for (Book book : books) {
- out.println(" -> " + book.getTitle() + " [id: " + book.getId() + "]");
- }
- }
-
- // Only list registered books
- List books = readerBean.listAllBooks();
- out.println("List of books:");
- for(Book book : books) {
- out.println(" * " + book.getTitle() + " [" + book.getAuthor().getName() + "]");
- }
-
- // Use the Mailer bean to send
- // Use the first command line argument as a mail address.
- // Fall back to a reasonable default ${user.name}@localhost
- String address = System.getProperty("user.name") + "@localhost";
- if (args.length > 0) {
- // Got an argument, use it ...
- address = args[0];
- }
-
- out.println("The Mailer Bean reference is : " + mailerBean);
-
- // Call the Mailer bean to send the expected e-mail.
- mailerBean.sendStatusMail(address);
-
- // OK, we're done
- out.println("Success.");
-
- }
-}
diff --git a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/src/java/org/ow2/jonas/examples/ear/client/SecuredApplicationClient.java b/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/src/java/org/ow2/jonas/examples/ear/client/SecuredApplicationClient.java
deleted file mode 100644
index 70a6e7b7d6f90c9880cb32be4ec924e4f2b5f3de..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/src/java/org/ow2/jonas/examples/ear/client/SecuredApplicationClient.java
+++ /dev/null
@@ -1,141 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2008 Bull S.A.S.
- * Contact: jonas-team@ow2.org
- *
- * This library 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 library 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 library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
- *
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-
-package org.ow2.jonas.examples.ear.client;
-
-import java.io.PrintStream;
-import java.util.Collection;
-import java.util.List;
-import java.text.MessageFormat;
-
-import javax.naming.Context;
-import javax.naming.InitialContext;
-import javax.naming.NamingException;
-import javax.ejb.EJB;
-
-import org.ow2.jonas.examples.ear.entity.Author;
-import org.ow2.jonas.examples.ear.entity.Book;
-import org.ow2.jonas.examples.ear.init.Initializer;
-import org.ow2.jonas.examples.ear.reader.RemoteReader;
-import org.ow2.jonas.examples.ear.writer.RemoteWriter;
-
-/**
- * Simple Application Client.
- * @author Guillaume Sauthier
- */
-public final class SecuredApplicationClient {
-
- /**
- * Empty default constructor for utility class.
- */
- private SecuredApplicationClient() {
-
- }
-
- /**
- * Link to the initializer bean.
- */
- @EJB
- static private Initializer initializerBean;
-
- /**
- * Link to the Remote Reader bean. Bean will be injected by JOnAS.
- */
- @EJB
- static private RemoteReader readerBean;
-
- /**
- * Link to the Remote Writer bean. Bean will be injected by JOnAS.
- */
- @EJB
- static private RemoteWriter writerBean;
-
- /**
- * @param args Command line arguments
- * @throws NamingException InitialContext creation failure
- */
- public static void main(final String[] args) throws NamingException {
-
- PrintStream out = System.out;
-
- // Print Header
- out.println("- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -");
- out.println("OW2 JOnAS :: EAR Sample :: Secured Application Client ");
- out.println("- - - - - - - - - - - - - - - - - - - - - - - - - - - - - -");
- // Init. data if needed
- out.print("Initialization ... ");
- initializerBean.initializeEntities();
- out.println("Done.");
-
- out.println("The RemoteReader Bean reference is: " + readerBean);
-
- // List registered authors and their books
- out.println("List of authors, and their books:");
- // retrieve again the authors list (now it has been initialized)
- List authors = readerBean.listAllAuthors();
- for (Author author : authors) {
- out.println(" * " + author.getName());
- Collection books = author.getBooks();
- for (Book book : books) {
- out.println(MessageFormat.format(" -> {0} [id: {1}]", book.getTitle(), book.getId()));
- }
- }
-
- // Use the secured Bean (RemoteWriter)
- // ======================================
- out.println("Get the RemoteWriter Bean reference: " + writerBean);
-
- // Add another author, and some books
- Author zola = new Author("Emile Zola");
- Book germinal = new Book("Germinal", zola);
- Book beteHumaine = new Book("La Bete Humaine", zola);
- zola.getBooks().add(germinal);
- zola.getBooks().add(beteHumaine);
-
- // Display Author before storage
- out.println("Created a new Author: ");
- out.println(zola.toString());
-
- // Persists
- writerBean.addAuthor(zola);
-
- // See the new content
- out.println("Updated authors' list:");
- authors = readerBean.listAllAuthors();
- for (Author author : authors) {
- out.println(" * " + author.getName());
- Collection books = author.getBooks();
- for (Book book : books) {
- out.println(MessageFormat.format(" -> {0} [id: {1}]", book.getTitle(), book.getId()));
- }
- }
-
- // Remove Zola (and its books), so that next time the client
- // is executed, we can add them again.
- writerBean.removeAuthor(zola);
- out.println("Cleaned added Author.");
- out.println("Success.");
-
- }
-}
diff --git a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/src/java/org/ow2/jonas/examples/ear/client/package.html b/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/src/java/org/ow2/jonas/examples/ear/client/package.html
deleted file mode 100644
index ebf29edebc591d3821a7a22226ecba37602dacf0..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/src/java/org/ow2/jonas/examples/ear/client/package.html
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
-
-
-
- Java EE 5.0 EAR Sample
-
-
-
-
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/src/java/org/ow2/jonas/examples/ear/entity/Author.java b/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/src/java/org/ow2/jonas/examples/ear/entity/Author.java
deleted file mode 100644
index 6d30057bb6bb6501f41fda1ad3256bfd2b646f63..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/src/java/org/ow2/jonas/examples/ear/entity/Author.java
+++ /dev/null
@@ -1,177 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2007 Bull S.A.S.
- * Contact: jonas-team@ow2.org
- *
- * This library 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 library 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 library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
- *
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-
-package org.ow2.jonas.examples.ear.entity;
-
-import static org.ow2.jonas.examples.ear.entity.Author.QN.ALL_AUTHORS;
-import static org.ow2.jonas.examples.ear.entity.Author.QN.FIND_AUTHOR;
-
-import java.io.Serializable;
-import java.util.ArrayList;
-import java.util.Collection;
-
-import javax.persistence.CascadeType;
-import javax.persistence.Entity;
-import javax.persistence.FetchType;
-import javax.persistence.GeneratedValue;
-import javax.persistence.GenerationType;
-import javax.persistence.Id;
-import javax.persistence.NamedQueries;
-import javax.persistence.NamedQuery;
-import javax.persistence.OneToMany;
-
-/**
- * Author of a book.
- * @author Florent Benoit
- */
-@Entity
-@NamedQueries({@NamedQuery(name=ALL_AUTHORS, query="select o FROM Author o"),
- @NamedQuery(name=FIND_AUTHOR, query="select o FROM Author o WHERE o.name = :MYNAME")})
-public class Author implements Serializable {
- /**
- * Store Query names.
- */
- public static interface QN {
- /**
- * Search all authors.
- */
- String ALL_AUTHORS = "Author.allAuthors";
-
- /**
- * Search a named author.
- */
- String FIND_AUTHOR = "Author.findAuthor";
- }
-
- /**
- * Serial Version UID.
- */
- private static final long serialVersionUID = 0L;
-
- /**
- * Primary key (will be auto generated).
- */
- private long id;
-
- /**
- * Name of the author.
- */
- private String name = null;
-
- /**
- * List of books written by the author.
- */
- private Collection books;
-
- /**
- * Default constructor.
- */
- public Author() {
- books = new ArrayList();
- }
-
- /**
- * Constructor with a given author name.
- * @param name - the name of the author
- */
- public Author(final String name) {
- this();
- setName(name);
- }
-
- /**
- * Relation ship (do not using lazy mode).
- * @return books written by this author
- */
- @OneToMany(mappedBy="author", fetch=FetchType.EAGER, cascade=CascadeType.ALL)
- public Collection getBooks() {
- return books;
- }
-
- /**
- * Add a book with a given title.
- * @param title - the title of the book
- */
- public void addBook(final String title) {
- Book livre = new Book();
- livre.setTitle(title);
- livre.setAuthor(this);
- getBooks().add(livre);
- }
-
- /**
- * Sets the collection of books written by this author.
- * @param books the list of the books
- */
- public void setBooks(final Collection books) {
- this.books = books;
- }
-
- /**
- * @return name of the author
- */
- public String getName() {
- return name;
- }
-
- /**
- * Sets the name of the author.
- * @param name - the name of this author
- */
- public void setName(final String name) {
- this.name = name;
- }
-
- /**
- * @return an id for this object (incremented automatically)
- */
- @Id
- @GeneratedValue(strategy=GenerationType.AUTO)
- public long getId() {
- return this.id;
- }
-
- /**
- * Sets the id of this author object.
- * @param id the given id of this author
- */
- public void setId(final long id) {
- this.id = id;
- }
-
-
- /**
- * @return String representation of this entity object.
- */
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder(this.getClass().getName());
- sb.append("[id=");
- sb.append(getId());
- sb.append(", name=");
- sb.append(getName());
- sb.append("]");
- return sb.toString();
- }
-}
diff --git a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/src/java/org/ow2/jonas/examples/ear/entity/Book.java b/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/src/java/org/ow2/jonas/examples/ear/entity/Book.java
deleted file mode 100644
index 66e409da96d5b3ec4d36b8c8335bc6e1a2769307..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/src/java/org/ow2/jonas/examples/ear/entity/Book.java
+++ /dev/null
@@ -1,163 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2007 Bull S.A.S.
- * Contact: jonas-team@ow2.org
- *
- * This library 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 library 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 library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
- *
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-
-package org.ow2.jonas.examples.ear.entity;
-
-import java.io.Serializable;
-
-import javax.persistence.Entity;
-import javax.persistence.GeneratedValue;
-import javax.persistence.GenerationType;
-import javax.persistence.Id;
-import javax.persistence.JoinColumn;
-import javax.persistence.ManyToOne;
-import javax.persistence.NamedQueries;
-import javax.persistence.NamedQuery;
-
-/**
- * Define a book.
- * @author Florent Benoit
- */
-@Entity
-@NamedQueries({@NamedQuery(name=Book.QN.ALL_BOOKS, query="select o FROM Book o"),
- @NamedQuery(name=Book.QN.FIND_BOOK, query="select o FROM Book o WHERE o.title = :MYTITLE")
-})
-public class Book implements Serializable {
-
- /**
- * Defines Query names.
- */
- public static interface QN {
- /**
- * Search all books.
- */
- String ALL_BOOKS = "Book.allBooks";
-
- /**
- * Search a book.
- */
- String FIND_BOOK = "Book.findBook";
- }
-
- /**
- * Serial Version UID.
- */
- private static final long serialVersionUID = 0L;
-
- /**
- * Primary key.
- */
- private long id;
-
- /**
- * Author's book.
- */
- private Author author;
-
- /**
- * title of the book.
- */
- private String title;
-
- /**
- * Default constructor.
- */
- public Book() {
-
- }
-
- /**
- * Constructor. Build a new Book with the given title and written by the
- * given author.
- * @param title the given title
- * @param author the given author.
- */
- public Book(final String title, final Author author) {
- setTitle(title);
- setAuthor(author);
- }
-
- /**
- * @return the Author of this Book.
- */
- @ManyToOne
- @JoinColumn(name="Author_id")
- public Author getAuthor() {
- return author;
- }
-
- /**
- * Sets the author of this book.
- * @param author the given author.
- */
- public void setAuthor(final Author author) {
- this.author = author;
- }
-
- /**
- * @return the title of this book.
- */
- public String getTitle() {
- return title;
- }
-
- /**
- * Set the title of the book.
- * @param title - the title of the book
- */
- public void setTitle(final String title) {
- this.title = title;
- }
-
- /**
- * @return an id for this object (incremented automatically)
- */
- @Id
- @GeneratedValue(strategy=GenerationType.AUTO)
- public long getId() {
- return this.id;
- }
-
- /**
- * Sets the id of this author object.
- * @param id the given id of this author
- */
- public void setId(final long id) {
- this.id = id;
- }
-
- /**
- * @return String representation of this entity object.
- */
- @Override
- public String toString() {
- StringBuilder sb = new StringBuilder(this.getClass().getName());
- sb.append("[id=");
- sb.append(getId());
- sb.append(", title=");
- sb.append(getTitle());
- sb.append("]");
- return sb.toString();
- }
-}
diff --git a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/src/java/org/ow2/jonas/examples/ear/entity/package.html b/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/src/java/org/ow2/jonas/examples/ear/entity/package.html
deleted file mode 100644
index b8e550a90da86a1f2c25b4e5a57c1f89d3d119d6..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/src/java/org/ow2/jonas/examples/ear/entity/package.html
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
-
-
-
- Java EE 5.0 EAR Sample
-
-
-
-
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/src/java/org/ow2/jonas/examples/ear/mail/Mailer.java b/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/src/java/org/ow2/jonas/examples/ear/mail/Mailer.java
deleted file mode 100644
index 7b3a3e1878e147a96fdef6840916b6ef8ef95ff5..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/src/java/org/ow2/jonas/examples/ear/mail/Mailer.java
+++ /dev/null
@@ -1,41 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2008 Bull S.A.S.
- * Contact: jonas-team@ow2.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-
-package org.ow2.jonas.examples.ear.mail;
-
-/**
- * The {@link Mailer} business interface is used to send a status
- * mail, with all the {@link org.ow2.jonas.examples.ear.entity.Author}s
- * and {@link org.ow2.jonas.examples.ear.entity.Book}s in the library.
- * @author Guillaume Sauthier
- */
-public interface Mailer {
-
- /**
- * Send a mail to the given mail address.
- * @param address target mail address (must be of the form: xyz@abc.z)
- */
- void sendStatusMail(final String address);
-}
diff --git a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/src/java/org/ow2/jonas/examples/ear/mail/MailerBean.java b/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/src/java/org/ow2/jonas/examples/ear/mail/MailerBean.java
deleted file mode 100644
index cbb50e7603d085b8a24873c6fbe656e7f8414522..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/src/java/org/ow2/jonas/examples/ear/mail/MailerBean.java
+++ /dev/null
@@ -1,166 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2008 Bull S.A.S.
- * Contact: jonas-team@ow2.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-
-package org.ow2.jonas.examples.ear.mail;
-
-import java.util.Collection;
-import java.util.Date;
-import java.util.List;
-
-import javax.annotation.Resource;
-import javax.ejb.EJB;
-import javax.ejb.Remote;
-import javax.ejb.Stateless;
-import javax.mail.Address;
-import javax.mail.Message;
-import javax.mail.MessageContext;
-import javax.mail.MessagingException;
-import javax.mail.NoSuchProviderException;
-import javax.mail.Session;
-import javax.mail.Transport;
-import javax.mail.internet.AddressException;
-import javax.mail.internet.InternetAddress;
-import javax.mail.internet.MimePartDataSource;
-
-import org.ow2.jonas.examples.ear.entity.Author;
-import org.ow2.jonas.examples.ear.entity.Book;
-import org.ow2.jonas.examples.ear.reader.LocalReader;
-
-/**
- * @author Guillaume Sauthier
- */
-@Stateless(mappedName="myMailerBean")
-@Remote(Mailer.class)
-public class MailerBean implements Mailer {
-
- /**
- * Mail Session used to send the Mail.
- */
- @Resource(mappedName="mailSession_1")
- private Session mailSession;
-
- /**
- * Template for the message's content.
- */
- @Resource(mappedName="mailMimePartDS_1")
- private MimePartDataSource mimePartDatasource;
-
- /**
- * {@link LocalReader} EJB (Local interface).
- */
- @EJB
- private LocalReader reader;
-
- /**
- * Send a mail to the given mail address.
- * @param address target mail address (must be of the form: xyz@abc.z)
- * @see org.ow2.jonas.examples.ear.mail.Mailer#sendStatusMail(java.lang.String)
- */
- public void sendStatusMail(final String address) {
-
- Address mailAddress = null;
- try {
- mailAddress = new InternetAddress(address);
- } catch (AddressException e) {
- System.err.println("Invalid mail address: " + e.getMessage());
- e.printStackTrace();
- return;
- }
-
- MessageContext context = mimePartDatasource.getMessageContext();
- Message message = context.getMessage();
- try {
- message.setContent(getContent(), "text/plain");
- } catch (MessagingException e) {
- System.err.println("Cannot set message content:" + e.getMessage());
- e.printStackTrace(System.err);
- return;
- }
-
- Transport transport = null;
- try {
- transport = mailSession.getTransport(mailAddress);
- } catch (NoSuchProviderException e) {
- System.err.println("No provider found for @:" + address);
- e.printStackTrace(System.err);
- return;
- }
- try {
- transport.connect();
- transport.sendMessage(message, new Address[] {mailAddress});
- transport.close();
- } catch (MessagingException e) {
- System.err.println("Cannot send message:" + e.getMessage());
- e.printStackTrace(System.err);
- return;
- }
-
- System.out.println("Mail successfully sent to: " + address);
- }
-
- /**
- * Generate the mail's content.
- * @return the mail message content.
- */
- private String getContent() {
-
- StringBuilder sb = new StringBuilder();
-
- // Print Header
- sb.append("---------------------------------------------------\n");
- sb.append(" OW2 JOnAS EAR Sample Mailer Bean.\n");
- sb.append("---------------------------------------------------\n");
- sb.append("Generated the " + new Date() + "\n");
- sb.append("\n");
-
- // Print the Authors
- List authors = reader.listAllAuthors();
- sb.append("List of all registered Authors (" + authors.size() + ") and their Books:\n");
- for (Author author : authors) {
- sb.append(" * " + author.getName() + " [" + author.getId() + "]\n");
- Collection books = author.getBooks();
- for (Book book : books) {
- sb.append(" - " + book.getTitle() + "[" + book.getId() + "]\n");
- }
- }
-
- // Print the Books
- sb.append("\n");
- sb.append("List of all registered Books:\n");
- List books = reader.listAllBooks();
- for (Book book : books) {
- sb.append(" * " + book.getTitle() + "[" + book.getAuthor().getName() + "]\n");
- }
-
- // Print the footer
- sb.append("\n");
- sb.append("Enjoy your new JOnAS !\n");
- sb.append("\n");
- sb.append(" -- JOnAS Team\n");
-
- return sb.toString();
- }
-
-}
diff --git a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/src/java/org/ow2/jonas/examples/ear/mail/package.html b/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/src/java/org/ow2/jonas/examples/ear/mail/package.html
deleted file mode 100644
index 43ff24fdaa61f718f4b802f64701e5ccfc2f16d7..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/src/java/org/ow2/jonas/examples/ear/mail/package.html
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
-
-
-
- Java EE 5.0 EAR Sample
-
-
-
-
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/src/java/org/ow2/jonas/examples/ear/mdb/JMSMessageBean.java b/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/src/java/org/ow2/jonas/examples/ear/mdb/JMSMessageBean.java
deleted file mode 100644
index 5e87a4d8940c4e9caa3d02437aa64a53b7ff6afd..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/src/java/org/ow2/jonas/examples/ear/mdb/JMSMessageBean.java
+++ /dev/null
@@ -1,112 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2008 Bull S.A.S.
- * Contact: jonas-team@ow2.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-
-package org.ow2.jonas.examples.ear.mdb;
-
-import javax.annotation.security.RunAs;
-import javax.ejb.ActivationConfigProperty;
-import javax.ejb.EJB;
-import javax.ejb.MessageDriven;
-import javax.jms.JMSException;
-import javax.jms.Message;
-import javax.jms.MessageListener;
-import javax.jms.TextMessage;
-
-import org.ow2.jonas.examples.ear.entity.Author;
-import org.ow2.jonas.examples.ear.entity.Book;
-import org.ow2.jonas.examples.ear.reader.LocalReader;
-import org.ow2.jonas.examples.ear.writer.LocalWriter;
-
-/**
- * The {@link JMSMessageBean} is a message driven bean activated when a JMS
- * {@link Message} comes to a given Destination.
- * For each new {@link Message}, this bean will create and persists a new
- * {@link Book} instance.
- * This MDB is annotated with {@link RunAs} because it uses a secured
- * business interface.
- * @author Guillaume Sauthier
- */
-@MessageDriven(activationConfig={
- @ActivationConfigProperty(propertyName="destination",
- propertyValue="SampleQueue"),
- @ActivationConfigProperty(propertyName="destinationType",
- propertyValue="javax.jms.Queue")
- })
-@RunAs("earsample")
-public class JMSMessageBean implements MessageListener {
-
- /**
- * Secured business interface.
- */
- @EJB
- private LocalWriter writer;
-
- /**
- * Unsecured {@link LocalReader} business interface.
- */
- @EJB
- private LocalReader reader;
-
- /**
- * Called when a new JMS {@link Message} is received on the destination.
- * This method will use the {@link LocalWriter} Bean interface to add
- * Books to a given Author.
- * @param message {@link Message} containing {@link Book} title.
- * @see javax.jms.MessageListener#onMessage(javax.jms.Message)
- */
- public void onMessage(final Message message) {
-
- // TODO to be removed
- System.out.println("Received JMS Message: " + message);
-
- // Extract Message's text value
- String text = null;
- if (message instanceof TextMessage) {
- TextMessage textMessage = (TextMessage) message;
- try {
- text = textMessage.getText();
- } catch (JMSException e) {
- System.err.println("Unexpected Exception: " + e.getMessage());
- e.printStackTrace(System.err);
- return;
- }
- } else {
- // not a TextMessage, I don't know what to do with it
- return;
- }
-
- Author edition = reader.findAuthor("Editions XY");
- if (edition == null) {
- edition = new Author("Editions XY");
- writer.addAuthor(edition);
- }
-
- // Persists a new Book
- Book book = new Book(text, edition);
- writer.addBook(book);
-
- }
-
-}
diff --git a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/src/java/org/ow2/jonas/examples/ear/mdb/package.html b/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/src/java/org/ow2/jonas/examples/ear/mdb/package.html
deleted file mode 100644
index a381f34e332673e691112cf91cecb2917c944a93..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/src/java/org/ow2/jonas/examples/ear/mdb/package.html
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
-
-
-
- Java EE 5.0 EAR Sample
-
-
-
-
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/src/java/org/ow2/jonas/examples/ear/reader/LocalReader.java b/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/src/java/org/ow2/jonas/examples/ear/reader/LocalReader.java
deleted file mode 100644
index a9b9de6fb36509bd65fb4ff381799053a49a1542..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/src/java/org/ow2/jonas/examples/ear/reader/LocalReader.java
+++ /dev/null
@@ -1,34 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2008 Bull S.A.S.
- * Contact: jonas-team@ow2.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-
-package org.ow2.jonas.examples.ear.reader;
-
-/**
- * {@link javax.ejb.Local} interface.
- * @author Guillaume Sauthier
- */
-public interface LocalReader extends Reader {
-
-}
diff --git a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/src/java/org/ow2/jonas/examples/ear/reader/Reader.java b/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/src/java/org/ow2/jonas/examples/ear/reader/Reader.java
deleted file mode 100644
index a00d93c3291d50dfc2596c32a3ba246b29e6401b..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/src/java/org/ow2/jonas/examples/ear/reader/Reader.java
+++ /dev/null
@@ -1,63 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2008 Bull S.A.S.
- * Contact: jonas-team@ow2.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-
-package org.ow2.jonas.examples.ear.reader;
-
-import java.util.List;
-
-import org.ow2.jonas.examples.ear.entity.Author;
-import org.ow2.jonas.examples.ear.entity.Book;
-
-/**
- * The {@link Reader} business interface is an un-restricted
- * read only view on the entities.
- * @author Guillaume Sauthier
- */
-public interface Reader {
-
- /**
- * @return the list of all the persisted {@link Author}s.
- */
- List listAllAuthors();
-
- /**
- * @return the list of all the persisted {@link Book}s.
- */
- List listAllBooks();
-
- /**
- * Find a given {@link Author} using it's name as a key.
- * @param name {@link Author}'s name.
- * @return the first {@link Author} that matches the given name.
- */
- Author findAuthor(final String name);
-
- /**
- * Find a given {@link Book} using it's name as a key.
- * @param name {@link Book}'s name.
- * @return the first {@link Book} that matches the given name.
- */
- Book findBook(final String name);
-}
diff --git a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/src/java/org/ow2/jonas/examples/ear/reader/ReaderBean.java b/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/src/java/org/ow2/jonas/examples/ear/reader/ReaderBean.java
deleted file mode 100644
index 543c54d791b113c76930f0acadad732a208976cf..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/src/java/org/ow2/jonas/examples/ear/reader/ReaderBean.java
+++ /dev/null
@@ -1,108 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2008 Bull S.A.S.
- * Contact: jonas-team@ow2.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-
-package org.ow2.jonas.examples.ear.reader;
-
-import static org.ow2.jonas.examples.ear.entity.Author.QN.ALL_AUTHORS;
-import static org.ow2.jonas.examples.ear.entity.Author.QN.FIND_AUTHOR;
-import static org.ow2.jonas.examples.ear.entity.Book.QN.ALL_BOOKS;
-import static org.ow2.jonas.examples.ear.entity.Book.QN.FIND_BOOK;
-
-import java.util.List;
-
-import javax.ejb.Local;
-import javax.ejb.Remote;
-import javax.ejb.Stateless;
-import javax.persistence.EntityManager;
-import javax.persistence.PersistenceContext;
-import javax.persistence.Query;
-
-import org.ow2.jonas.examples.ear.entity.Author;
-import org.ow2.jonas.examples.ear.entity.Book;
-
-/**
- *The {@link ReaderBean} EJB is an unrestricted, read-only, Stateless Bean.
- * @author Guillaume Sauthier
- */
-@Stateless
-@Local(LocalReader.class)
-@Remote(RemoteReader.class)
-public class ReaderBean implements LocalReader, RemoteReader {
-
- /**
- * Entity manager used by this bean.
- */
- @PersistenceContext
- private EntityManager entityManager = null;
-
- /**
- * Find a given {@link Author} using it's name as a key.
- * @param name {@link Author}'s name.
- * @return the first {@link Author} that matches the given name.
- */
- @SuppressWarnings("unchecked")
- public Author findAuthor(final String name) {
- Query query = entityManager.createNamedQuery(FIND_AUTHOR);
- query.setParameter("MYNAME", name);
- List authors = query.getResultList();
- if (authors != null && authors.size() > 0) {
- return authors.get(0);
- }
- return null;
- }
-
- /**
- * Find a given {@link Book} using it's name as a key.
- * @param name {@link Book}'s name.
- * @return the first {@link Book} that matches the given name.
- */
- @SuppressWarnings("unchecked")
- public Book findBook(final String title) {
- Query query = entityManager.createNamedQuery(FIND_BOOK);
- query.setParameter("MYTITLE", title);
- List books = query.getResultList();
- if (books != null && books.size() > 0) {
- return books.get(0);
- }
- return null;
- }
-
- /**
- * @return the list of all the persisted {@link Author}s.
- */
- @SuppressWarnings("unchecked")
- public List listAllAuthors() {
- return entityManager.createNamedQuery(ALL_AUTHORS).getResultList();
- }
-
- /**
- * @return the list of all the persisted {@link Book}s.
- */
- @SuppressWarnings("unchecked")
- public List listAllBooks() {
- return entityManager.createNamedQuery(ALL_BOOKS).getResultList();
- }
-
-}
diff --git a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/src/java/org/ow2/jonas/examples/ear/reader/RemoteReader.java b/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/src/java/org/ow2/jonas/examples/ear/reader/RemoteReader.java
deleted file mode 100644
index 634c83d9c4248e7aee1482f58ee533c2dc334fb1..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/src/java/org/ow2/jonas/examples/ear/reader/RemoteReader.java
+++ /dev/null
@@ -1,34 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2008 Bull S.A.S.
- * Contact: jonas-team@ow2.org
- *
- * This library 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 any later version.
- *
- * This library 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 library; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307
- * USA
- *
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-
-package org.ow2.jonas.examples.ear.reader;
-
-/**
- * {@link javax.ejb.Remote} interface.
- * @author Guillaume Sauthier
- */
-public interface RemoteReader extends Reader {
-
-}
diff --git a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/src/java/org/ow2/jonas/examples/ear/reader/package.html b/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/src/java/org/ow2/jonas/examples/ear/reader/package.html
deleted file mode 100644
index 81c64c7e71d0aff3ce66369800ad4c01bd323868..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/src/java/org/ow2/jonas/examples/ear/reader/package.html
+++ /dev/null
@@ -1,36 +0,0 @@
-
-
-
-
-
- Java EE 5.0 EAR Sample
-
-
-
Java Enterprise Edition 5.0: EAR Sample
-
-
diff --git a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/src/java/org/ow2/jonas/examples/ear/web/AdminServlet.java b/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/src/java/org/ow2/jonas/examples/ear/web/AdminServlet.java
deleted file mode 100644
index 001f63aeea6fabc79dc27efb258a04f032b7ef54..0000000000000000000000000000000000000000
--- a/jonas/assemblies/examples/src/main/resources/examples/javaee5-earsample/src/java/org/ow2/jonas/examples/ear/web/AdminServlet.java
+++ /dev/null
@@ -1,277 +0,0 @@
-/**
- * JOnAS: Java(TM) Open Application Server
- * Copyright (C) 2007-2008 Bull S.A.S.
- * Contact: jonas-team@ow2.org
- *
- * This library 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 library 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 library; if not, write to the Free Software
- * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA
- *
- * --------------------------------------------------------------------------
- * $Id$
- * --------------------------------------------------------------------------
- */
-
-package org.ow2.jonas.examples.ear.web;
-
-import java.io.IOException;
-import java.io.PrintWriter;
-import java.util.Collection;
-import java.util.List;
-
-import javax.ejb.EJB;
-import javax.servlet.ServletException;
-import javax.servlet.http.HttpServlet;
-import javax.servlet.http.HttpServletRequest;
-import javax.servlet.http.HttpServletResponse;
-
-import org.ow2.jonas.examples.ear.entity.Author;
-import org.ow2.jonas.examples.ear.entity.Book;
-import org.ow2.jonas.examples.ear.init.Initializer;
-import org.ow2.jonas.examples.ear.reader.LocalReader;
-import org.ow2.jonas.examples.ear.writer.LocalWriter;
-
-/**
- * Defines a servlet that is accessing the two entities through a local session
- * bean.
- * @author Florent Benoit
- * @author Guillaume Sauthier
- */
-public class AdminServlet extends HttpServlet {
-
- /**
- * Serializable class uid.
- */
- private static final long serialVersionUID = 7724116000656853982L;
-
- /**
- * Local writer bean.
- */
- @EJB
- private LocalWriter writerBean;
-
- /**
- * Local reader bean.
- */
- @EJB
- private LocalReader readerBean;
-
- /**
- * Initializer bean.
- */
- @EJB
- private Initializer initializerBean;
-
-
- /**
- * Called by the server (via the service method) to allow a servlet to
- * handle a GET request.
- * @param request an HttpServletRequest object that contains the request the
- * client has made of the servlet
- * @param response an HttpServletResponse object that contains the response
- * the servlet sends to the client
- * @throws IOException if an input or output error is detected when the
- * servlet handles the GET request
- * @throws ServletException if the request for the GET could not be handled
- */
- @Override
- public void doGet(final HttpServletRequest request, final HttpServletResponse response) throws IOException, ServletException {
-
- response.setContentType("text/html");
- PrintWriter out = response.getWriter();
- String title = "Ear Sample of Servlet accessing an EJB";
-
- printHTMLHeader(out, title);
-
- out.println("
");
- out.println("
");
- out.println("
");
- out.println("
");
-
- // Try to init the DB if this is the very first call to this application
- initAuthorBooks(out);
-
- out.println(" ");
-
- // Print the add-author Form
- printAddAuthorForm(out);
-
- out.println("
");
- out.println("
");
-
- // Try to add the new author
- addAuthor(out, request.getParameter("author"));
-
- // Display updated list of authors
- printAuthors(out);
-
- out.println("