r2corba 1.5.1-universal-java → 1.5.5-universal-java
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/LICENSE +5 -5
- data/README.rdoc +62 -0
- data/THANKS +4 -4
- data/lib/corba.rb +0 -1
- data/lib/corba/cbase/IORMap.rb +0 -1
- data/lib/corba/cbase/ORB.rb +7 -8
- data/lib/corba/cbase/Request.rb +1 -2
- data/lib/corba/cbase/Streams.rb +2 -3
- data/lib/corba/cbase/Stub.rb +0 -1
- data/lib/corba/cbase/Typecode.rb +6 -7
- data/lib/corba/cbase/Values.rb +0 -1
- data/lib/corba/cbase/exception.rb +2 -3
- data/lib/corba/cbase/poa.rb +0 -1
- data/lib/corba/cbase/policies.rb +2 -3
- data/lib/corba/cbase/post_require.rb +1 -2
- data/lib/corba/cbase/require.rb +2 -1
- data/lib/corba/cmds/base.rb +1 -2
- data/lib/corba/cmds/test.rb +0 -1
- data/lib/corba/common/Any.rb +1 -2
- data/lib/corba/common/IDL.rb +5 -9
- data/lib/corba/common/ORB.rb +1 -2
- data/lib/corba/common/Object.rb +4 -2
- data/lib/corba/common/Request.rb +1 -2
- data/lib/corba/common/Servant.rb +0 -1
- data/lib/corba/common/Struct.rb +1 -2
- data/lib/corba/common/Stub.rb +1 -2
- data/lib/corba/common/Typecode.rb +56 -57
- data/lib/corba/common/Union.rb +1 -2
- data/lib/corba/common/Values.rb +1 -2
- data/lib/corba/common/const.rb +2 -3
- data/lib/corba/common/exception.rb +0 -1
- data/lib/corba/common/require.rb +8 -1
- data/lib/corba/common/version.rb +3 -4
- data/lib/corba/idl/BiDirPolicyC.rb +2 -3
- data/lib/corba/idl/CosNamingC.rb +4 -5
- data/lib/corba/idl/CosNamingS.rb +2 -3
- data/lib/corba/idl/IDL.rb +0 -1
- data/lib/corba/idl/IORTable.pidl +0 -1
- data/lib/corba/idl/MessagingC.rb +2 -3
- data/lib/corba/idl/POAC.rb +10 -11
- data/lib/corba/idl/TAO_Ext.pidl +0 -1
- data/lib/corba/idl/r2c_orb.rb +5 -6
- data/lib/corba/idl/require.rb +0 -1
- data/lib/corba/jbase/Any.rb +24 -25
- data/lib/corba/jbase/IORMap.rb +1 -2
- data/lib/corba/jbase/ORB.rb +3 -4
- data/lib/corba/jbase/Object.rb +0 -1
- data/lib/corba/jbase/Request.rb +6 -7
- data/lib/corba/jbase/Servant.rb +11 -12
- data/lib/corba/jbase/ServerRequest.rb +8 -9
- data/lib/corba/jbase/Streams.rb +4 -5
- data/lib/corba/jbase/Stub.rb +0 -1
- data/lib/corba/jbase/Typecode.rb +14 -15
- data/lib/corba/jbase/Values.rb +0 -1
- data/lib/corba/jbase/exception.rb +1 -2
- data/lib/corba/jbase/poa.rb +3 -4
- data/lib/corba/jbase/policies.rb +4 -5
- data/lib/corba/jbase/post_require.rb +0 -1
- data/lib/corba/jbase/require.rb +1 -2
- data/lib/corba/naming.rb +0 -1
- data/lib/corba/naming_service.rb +0 -1
- data/lib/corba/poa.rb +1 -2
- data/lib/corba/policies.rb +1 -2
- data/lib/corba/require.rb +2 -3
- data/lib/corba/svcs/ins/cos_naming.rb +64 -67
- data/lib/corba/svcs/ins/ins.rb +24 -25
- data/lib/corba/svcs/ins/naming_service.rb +3 -4
- data/lib/ridlbe/ruby/config.rb +49 -52
- data/lib/ridlbe/ruby/orb.pidlc +0 -0
- data/lib/ridlbe/ruby/require.rb +0 -1
- data/lib/ridlbe/ruby/walker.rb +38 -38
- data/mkrf_conf_bingem.rb +0 -2
- data/rakelib/bin.rake +2 -3
- data/rakelib/bin.rb +4 -5
- data/rakelib/build.rake +21 -21
- data/rakelib/config.rake +1 -2
- data/rakelib/config.rb +23 -25
- data/rakelib/gem.rake +53 -38
- data/rakelib/gem.rb +8 -9
- data/rakelib/package.rake +1 -2
- data/rakelib/test.rake +0 -1
- data/test/BiDirectional/Test.idl +0 -1
- data/test/BiDirectional/client.rb +4 -5
- data/test/BiDirectional/run_test.rb +1 -2
- data/test/BiDirectional/server.rb +4 -6
- data/test/CORBA_Services/Naming/BindingIterator/Test.idl +0 -1
- data/test/CORBA_Services/Naming/BindingIterator/client.rb +5 -6
- data/test/CORBA_Services/Naming/BindingIterator/run_test.rb +1 -2
- data/test/CORBA_Services/Naming/BindingIterator/server.rb +4 -5
- data/test/CORBA_Services/Naming/Corbaname/Test.idl +0 -1
- data/test/CORBA_Services/Naming/Corbaname/client.rb +3 -4
- data/test/CORBA_Services/Naming/Corbaname/run_test.rb +1 -2
- data/test/CORBA_Services/Naming/Corbaname/server.rb +10 -11
- data/test/CORBA_Services/Naming/Simple/Test.idl +0 -1
- data/test/CORBA_Services/Naming/Simple/client.rb +4 -5
- data/test/CORBA_Services/Naming/Simple/run_test.rb +1 -2
- data/test/CORBA_Services/Naming/Simple/server.rb +4 -5
- data/test/Collocation/Diamond.idl +0 -1
- data/test/Collocation/run_test.rb +0 -1
- data/test/Collocation/test.rb +2 -3
- data/test/Connect_Timeout/Test.idl +0 -1
- data/test/Connect_Timeout/client.rb +3 -5
- data/test/Connect_Timeout/run_test.rb +0 -1
- data/test/DII/Test.idl +0 -1
- data/test/DII/client.rb +5 -6
- data/test/DII/run_test.rb +1 -2
- data/test/DII/server.rb +3 -4
- data/test/DSI/Test.idl +0 -1
- data/test/DSI/client.rb +3 -4
- data/test/DSI/run_test.rb +1 -2
- data/test/DSI/server.rb +3 -4
- data/test/Exceptions/Test.idl +0 -1
- data/test/Exceptions/client.rb +5 -6
- data/test/Exceptions/run_test.rb +1 -2
- data/test/Exceptions/server.rb +3 -4
- data/test/Hello/Test.idl +0 -1
- data/test/Hello/client.rb +3 -4
- data/test/Hello/run_test.rb +1 -2
- data/test/Hello/server.rb +3 -4
- data/test/IDL_Test/Test.idl +4 -1
- data/test/IDL_Test/client.rb +6 -5
- data/test/IDL_Test/run_test.rb +1 -2
- data/test/IDL_Test/server.rb +8 -4
- data/test/IORMap/Test.idl +0 -1
- data/test/IORMap/client.rb +3 -4
- data/test/IORMap/run_test.rb +1 -2
- data/test/IORMap/server.rb +4 -5
- data/test/IORTable/Test.idl +0 -1
- data/test/IORTable/client.rb +3 -4
- data/test/IORTable/run_test.rb +1 -2
- data/test/IORTable/server.rb +4 -5
- data/test/Implicit_Conversion/Test.idl +0 -1
- data/test/Implicit_Conversion/client.rb +4 -5
- data/test/Implicit_Conversion/run_test.rb +1 -2
- data/test/Implicit_Conversion/server.rb +3 -4
- data/test/Multi_Threading/Multiple_ORB/Test.idl +0 -1
- data/test/Multi_Threading/Multiple_ORB/client.rb +3 -4
- data/test/Multi_Threading/Multiple_ORB/run_test.rb +2 -3
- data/test/Multi_Threading/Multiple_ORB/server.rb +3 -4
- data/test/Multi_Threading/Simple/Test.idl +0 -1
- data/test/Multi_Threading/Simple/client.rb +4 -5
- data/test/Multi_Threading/Simple/run_test.rb +1 -2
- data/test/Multi_Threading/Simple/server.rb +4 -5
- data/test/Multi_Threading/Threads/Test.idl +0 -4
- data/test/Multi_Threading/Threads/client.rb +10 -13
- data/test/Multi_Threading/Threads/run_test.rb +1 -2
- data/test/Multi_Threading/Threads/server.rb +4 -7
- data/test/Multi_Threading/Threads/watchdog.rb +3 -3
- data/test/Multiple_Servant_Interfaces/Test.idl +0 -1
- data/test/Multiple_Servant_Interfaces/client.rb +3 -4
- data/test/Multiple_Servant_Interfaces/run_test.rb +1 -2
- data/test/Multiple_Servant_Interfaces/server.rb +3 -4
- data/test/Nil/Test.idl +0 -1
- data/test/Nil/run_test.rb +0 -1
- data/test/Nil/test.rb +11 -9
- data/test/OBV/AbstractInterface/client.rb +3 -4
- data/test/OBV/AbstractInterface/run_test.rb +1 -2
- data/test/OBV/AbstractInterface/server.rb +3 -4
- data/test/OBV/AbstractInterface/test.idl +0 -1
- data/test/OBV/Custom/OBV_impl.rb +0 -1
- data/test/OBV/Custom/client.rb +3 -4
- data/test/OBV/Custom/run_test.rb +1 -2
- data/test/OBV/Custom/server.rb +3 -4
- data/test/OBV/Simple/OBV_impl.rb +0 -1
- data/test/OBV/Simple/client.rb +3 -4
- data/test/OBV/Simple/run_test.rb +1 -2
- data/test/OBV/Simple/server.rb +3 -4
- data/test/OBV/Simple_Event/Event_impl.rb +0 -1
- data/test/OBV/Simple_Event/client.rb +3 -4
- data/test/OBV/Simple_Event/run_test.rb +1 -2
- data/test/OBV/Simple_Event/server.rb +3 -4
- data/test/OBV/Supports/client.rb +3 -4
- data/test/OBV/Supports/run_test.rb +1 -2
- data/test/OBV/Supports/server.rb +3 -4
- data/test/OBV/Supports/supports.idl +0 -1
- data/test/OBV/Supports/supports_impl.rb +0 -1
- data/test/OBV/Tree/client.rb +3 -4
- data/test/OBV/Tree/run_test.rb +1 -2
- data/test/OBV/Tree/server.rb +3 -4
- data/test/OBV/Tree/test.idl +0 -1
- data/test/OBV/Truncatable/Extra.idl +0 -1
- data/test/OBV/Truncatable/Truncatable_impl.rb +1 -2
- data/test/OBV/Truncatable/client.rb +4 -5
- data/test/OBV/Truncatable/run_test.rb +1 -2
- data/test/OBV/Truncatable/server.rb +3 -4
- data/test/OBV/ValueBox/client.rb +44 -45
- data/test/OBV/ValueBox/run_test.rb +1 -2
- data/test/OBV/ValueBox/server.rb +29 -29
- data/test/Object/Test.idl +0 -1
- data/test/Object/client.rb +4 -5
- data/test/Object/run_test.rb +1 -2
- data/test/Object/server.rb +3 -4
- data/test/POA/run_test.rb +0 -1
- data/test/POA/test.rb +4 -5
- data/test/Param_Test/client.rb +8 -9
- data/test/Param_Test/run_test.rb +1 -2
- data/test/Param_Test/server.rb +7 -8
- data/test/Performance/Simple/Test.idl +0 -1
- data/test/Performance/Simple/client.rb +3 -4
- data/test/Performance/Simple/run_test.rb +1 -2
- data/test/Performance/Simple/server.rb +3 -4
- data/test/Policies/Test.idl +0 -1
- data/test/Policies/run_test.rb +0 -1
- data/test/Policies/test.rb +2 -4
- data/test/Timeout/client.rb +6 -7
- data/test/Timeout/run_test.rb +1 -2
- data/test/Timeout/server.rb +4 -5
- data/test/Timeout/test.idl +0 -1
- data/test/lib/assert.rb +0 -2
- data/test/lib/test.rb +15 -17
- data/test/test_runner.rb +6 -8
- metadata +29 -66
- data/README +0 -62
- data/jacorb/lib/antlr-2.7.2.jar +0 -0
- data/jacorb/lib/jacorb-3.5.jar +0 -0
- data/jacorb/lib/jacorb-omgapi-3.5.jar +0 -0
- data/jacorb/lib/jacorb-services-3.5.jar +0 -0
- data/jacorb/lib/slf4j-api-1.7.6.jar +0 -0
- data/jacorb/lib/slf4j-jdk14-1.7.6.jar +0 -0
- data/test/BiDirectional/server.ior +0 -1
- data/test/CORBA_Services/Naming/BindingIterator/ins.ior +0 -1
- data/test/CORBA_Services/Naming/Corbaname/corbaname.ior +0 -1
- data/test/CORBA_Services/Naming/Corbaname/ins.ior +0 -1
- data/test/CORBA_Services/Naming/Simple/ins.ior +0 -1
- data/test/DII/server.ior +0 -1
- data/test/DSI/server.ior +0 -1
- data/test/Exceptions/server.ior +0 -1
- data/test/Hello/gateway.ior +0 -1
- data/test/IDL_Test/server.ior +0 -1
- data/test/IORMap/server.ior +0 -1
- data/test/IORTable/server.ior +0 -0
- data/test/Implicit_Conversion/server.ior +0 -1
- data/test/Multi_Threading/Multiple_ORB/server0.ior +0 -1
- data/test/Multi_Threading/Multiple_ORB/server1.ior +0 -1
- data/test/Multi_Threading/Simple/server.ior +0 -1
- data/test/Multi_Threading/Threads/server.ior +0 -1
- data/test/Multi_Threading/Threads/watchdog.ior +0 -1
- data/test/Multiple_Servant_Interfaces/server.ior +0 -1
- data/test/OBV/AbstractInterface/server.ior +0 -1
- data/test/OBV/Custom/server.ior +0 -1
- data/test/OBV/Simple/server.ior +0 -1
- data/test/OBV/Simple_Event/server.ior +0 -1
- data/test/OBV/Supports/server.ior +0 -1
- data/test/OBV/Tree/server.ior +0 -1
- data/test/OBV/Truncatable/server.ior +0 -1
- data/test/OBV/ValueBox/server.ior +0 -1
- data/test/Object/server.ior +0 -1
- data/test/Param_Test/server.ior +0 -1
- data/test/Performance/Simple/server.ior +0 -1
- data/test/Timeout/server.ior +0 -1
- data/test/test.log +0 -20
- data/test/test2.log +0 -5000
data/rakelib/gem.rb
CHANGED
@@ -8,7 +8,6 @@
|
|
8
8
|
# included with this program.
|
9
9
|
#
|
10
10
|
# Copyright (c) Remedy IT Expertise BV
|
11
|
-
# Chamber of commerce Rotterdam nr.276339, The Netherlands
|
12
11
|
#--------------------------------------------------------------------
|
13
12
|
|
14
13
|
require 'rubygems'
|
@@ -66,7 +65,7 @@ module R2CORBA
|
|
66
65
|
manifest.concat Dir['lib/ridlbe/**/*']
|
67
66
|
manifest << 'lib/corba.rb'
|
68
67
|
manifest.concat Dir['test/**/*']
|
69
|
-
manifest.concat %w{LICENSE README THANKS CHANGES mkrf_conf_bingem.rb}
|
68
|
+
manifest.concat %w{LICENSE README.rdoc THANKS CHANGES mkrf_conf_bingem.rb}
|
70
69
|
manifest << 'LICENSE.jacorb' if defined?(JRUBY_VERSION)
|
71
70
|
elsif gemtype == :extbin
|
72
71
|
unless defined?(JRUBY_VERSION)
|
@@ -80,7 +79,7 @@ module R2CORBA
|
|
80
79
|
manifest.concat Dir['lib/ridlbe/**/*.[^p]*']
|
81
80
|
manifest << 'lib/corba.rb'
|
82
81
|
manifest.concat Dir['test/**/*']
|
83
|
-
manifest.concat %w{LICENSE README THANKS CHANGES mkrf_conf_srcgem.rb}
|
82
|
+
manifest.concat %w{LICENSE README.rdoc THANKS CHANGES mkrf_conf_srcgem.rb}
|
84
83
|
end
|
85
84
|
unless gemtype == :extbin
|
86
85
|
if defined?(JRUBY_VERSION)
|
@@ -93,9 +92,9 @@ module R2CORBA
|
|
93
92
|
end
|
94
93
|
|
95
94
|
def self.define_spec(name, version, gemtype = :src, &block)
|
96
|
-
name += '_ext' if gemtype == :extbin &&
|
97
|
-
name = "#{name}#{R2CORBA::Config.rb_ver_major}#{R2CORBA::Config.rb_ver_minor}" if (gemtype == :extbin || (gemtype == :bin && ENV['FULL_BINGEM'])) &&
|
98
|
-
gemspec = ::Gem::Specification.new(name,version.dup)
|
95
|
+
name += '_ext' if gemtype == :extbin && !defined?(JRUBY_VERSION)
|
96
|
+
name = "#{name}#{R2CORBA::Config.rb_ver_major}#{R2CORBA::Config.rb_ver_minor}" if (gemtype == :extbin || (gemtype == :bin && ENV['FULL_BINGEM'])) && !defined?(JRUBY_VERSION)
|
97
|
+
gemspec = ::Gem::Specification.new(name, version.dup)
|
99
98
|
if gemtype == :bin || gemtype == :extbin
|
100
99
|
gemspec.platform = defined?(JRUBY_VERSION) ? ::Gem::Platform.new('universal-java') : ::Gem::Platform::CURRENT
|
101
100
|
end
|
@@ -106,8 +105,8 @@ module R2CORBA
|
|
106
105
|
|
107
106
|
def self.gem_name(name, version, gemtype = :src)
|
108
107
|
name += '_ext' if gemtype == :extbin && !defined?(JRUBY_VERSION)
|
109
|
-
name = "#{name}#{R2CORBA::Config.rb_ver_major}#{R2CORBA::Config.rb_ver_minor}" if (gemtype == :extbin || (gemtype == :bin && ENV['FULL_BINGEM'])) &&
|
110
|
-
gemspec = ::Gem::Specification.new(name,version.dup)
|
108
|
+
name = "#{name}#{R2CORBA::Config.rb_ver_major}#{R2CORBA::Config.rb_ver_minor}" if (gemtype == :extbin || (gemtype == :bin && ENV['FULL_BINGEM'])) && !defined?(JRUBY_VERSION)
|
109
|
+
gemspec = ::Gem::Specification.new(name, version.dup)
|
111
110
|
if gemtype == :bin || gemtype == :extbin
|
112
111
|
gemspec.platform = defined?(JRUBY_VERSION) ? ::Gem::Platform.new('universal-java') : ::Gem::Platform::CURRENT
|
113
112
|
end
|
@@ -143,4 +142,4 @@ module R2CORBA
|
|
143
142
|
|
144
143
|
end
|
145
144
|
|
146
|
-
end
|
145
|
+
end
|
data/rakelib/package.rake
CHANGED
@@ -8,7 +8,6 @@
|
|
8
8
|
# included with this program.
|
9
9
|
#
|
10
10
|
# Copyright (c) Remedy IT Expertise BV
|
11
|
-
# Chamber of commerce Rotterdam nr.276339, The Netherlands
|
12
11
|
#--------------------------------------------------------------------
|
13
12
|
|
14
13
|
require 'rake/packagetask'
|
@@ -21,6 +20,6 @@ Rake::PackageTask.new("r2corba", R2CORBA::R2CORBA_VERSION) do |p|
|
|
21
20
|
p.package_files.include(%w{ext/**/*.{mwc,cpp,c,h}})
|
22
21
|
p.package_files.include(%w{example/**/* lib/**/*[^C].* test/**/* rpmbuild/**/* rakelib/**/*})
|
23
22
|
p.package_files.exclude(/GNUmakefile/)
|
24
|
-
p.package_files.include(%w{CHANGES INSTALL* LICENSE* Gemfile Rakefile README
|
23
|
+
p.package_files.include(%w{CHANGES INSTALL* LICENSE* Gemfile Rakefile README.rdoc THANKS mkrf_conf*.rb})
|
25
24
|
p.package_files.include(%w{ridl/lib/**/*}) if ENV['R2CORBA_PKG_RIDL']
|
26
25
|
end
|
data/rakelib/test.rake
CHANGED
@@ -8,7 +8,6 @@
|
|
8
8
|
# included with this program.
|
9
9
|
#
|
10
10
|
# Copyright (c) Remedy IT Expertise BV
|
11
|
-
# Chamber of commerce Rotterdam nr.276339, The Netherlands
|
12
11
|
#--------------------------------------------------------------------
|
13
12
|
|
14
13
|
require File.join(File.dirname(__FILE__), 'config.rb')
|
data/test/BiDirectional/Test.idl
CHANGED
@@ -6,7 +6,6 @@
|
|
6
6
|
# included with this program.
|
7
7
|
#
|
8
8
|
# Copyright (c) Remedy IT Expertise BV
|
9
|
-
# Chamber of commerce Rotterdam nr.276339, The Netherlands
|
10
9
|
#--------------------------------------------------------------------
|
11
10
|
require 'optparse'
|
12
11
|
require 'lib/assert.rb'
|
@@ -26,13 +25,13 @@ ARGV.options do |opts|
|
|
26
25
|
|
27
26
|
opts.on("--k IORFILE",
|
28
27
|
"Set IOR.",
|
29
|
-
"Default: 'file://server.ior'") { |v| OPTIONS[:iorfile]=v }
|
28
|
+
"Default: 'file://server.ior'") { |v| OPTIONS[:iorfile] = v }
|
30
29
|
opts.on("--d LVL",
|
31
30
|
"Set ORBDebugLevel value.",
|
32
|
-
"Default: 0", Integer) { |v| OPTIONS[:orb_debuglevel]=v }
|
31
|
+
"Default: 0", Integer) { |v| OPTIONS[:orb_debuglevel] = v }
|
33
32
|
opts.on("--use-implement",
|
34
33
|
"Load IDL through CORBA.implement() instead of precompiled code.",
|
35
|
-
"Default: off") { |v| OPTIONS[:use_implement]=v }
|
34
|
+
"Default: off") { |v| OPTIONS[:use_implement] = v }
|
36
35
|
|
37
36
|
opts.separator ""
|
38
37
|
|
@@ -129,4 +128,4 @@ ensure
|
|
129
128
|
|
130
129
|
orb.destroy()
|
131
130
|
|
132
|
-
end
|
131
|
+
end
|
@@ -6,7 +6,6 @@
|
|
6
6
|
# included with this program.
|
7
7
|
#
|
8
8
|
# Copyright (c) Remedy IT Expertise BV
|
9
|
-
# Chamber of commerce Rotterdam nr.276339, The Netherlands
|
10
9
|
#--------------------------------------------------------------------
|
11
10
|
|
12
11
|
OPTIONS = {
|
@@ -59,7 +58,7 @@ end
|
|
59
58
|
|
60
59
|
exrc = clt.wait(400)
|
61
60
|
|
62
|
-
if exrc ==0
|
61
|
+
if exrc == 0
|
63
62
|
srv.wait(400)
|
64
63
|
else
|
65
64
|
srv.wait_term(400)
|
@@ -7,7 +7,6 @@
|
|
7
7
|
# included with this program.
|
8
8
|
#
|
9
9
|
# Copyright (c) Remedy IT Expertise BV
|
10
|
-
# Chamber of commerce Rotterdam nr.276339, The Netherlands
|
11
10
|
#--------------------------------------------------------------------
|
12
11
|
|
13
12
|
require 'optparse'
|
@@ -27,16 +26,16 @@ ARGV.options do |opts|
|
|
27
26
|
|
28
27
|
opts.on("--o IORFILE",
|
29
28
|
"Set IOR filename.",
|
30
|
-
"Default: 'server.ior'") { |v| OPTIONS[:iorfile]=v }
|
29
|
+
"Default: 'server.ior'") { |v| OPTIONS[:iorfile] = v }
|
31
30
|
opts.on("--d LVL",
|
32
31
|
"Set ORBDebugLevel value.",
|
33
|
-
"Default: 0") { |v| OPTIONS[:orb_debuglevel]=v }
|
32
|
+
"Default: 0") { |v| OPTIONS[:orb_debuglevel] = v }
|
34
33
|
opts.on("--use-implement",
|
35
34
|
"Load IDL through CORBA.implement() instead of precompiled code.",
|
36
|
-
"Default: off") { |v| OPTIONS[:use_implement]=v }
|
35
|
+
"Default: off") { |v| OPTIONS[:use_implement] = v }
|
37
36
|
opts.on("--i ITERATIONS",
|
38
37
|
"Set number of iterations.",
|
39
|
-
"Default: 10", Integer) { |v| OPTIONS[:iter_num]=v }
|
38
|
+
"Default: 10", Integer) { |v| OPTIONS[:iter_num] = v }
|
40
39
|
|
41
40
|
opts.separator ""
|
42
41
|
|
@@ -166,4 +165,3 @@ end
|
|
166
165
|
puts 'event loop finished'
|
167
166
|
|
168
167
|
root_poa.destroy(true, true)
|
169
|
-
|
@@ -6,7 +6,6 @@
|
|
6
6
|
* included with this program.
|
7
7
|
*
|
8
8
|
* Copyright (c) Remedy IT Expertise BV
|
9
|
-
* Chamber of commerce Rotterdam nr.276339, The Netherlands
|
10
9
|
*--------------------------------------------------------------------*/
|
11
10
|
|
12
11
|
/// Put the interfaces in a module, to avoid global namespace pollution
|
@@ -7,7 +7,6 @@
|
|
7
7
|
# included with this program.
|
8
8
|
#
|
9
9
|
# Copyright (c) Remedy IT Expertise BV
|
10
|
-
# Chamber of commerce Rotterdam nr.276339, The Netherlands
|
11
10
|
#--------------------------------------------------------------------
|
12
11
|
|
13
12
|
require 'optparse'
|
@@ -28,13 +27,13 @@ ARGV.options do |opts|
|
|
28
27
|
|
29
28
|
opts.on("--k IORFILE",
|
30
29
|
"Set IOR.",
|
31
|
-
"Default: 'file://ins.ior'") { |v| OPTIONS[:iorfile]=v }
|
30
|
+
"Default: 'file://ins.ior'") { |v| OPTIONS[:iorfile] = v }
|
32
31
|
opts.on("--d LVL",
|
33
32
|
"Set ORBDebugLevel value.",
|
34
|
-
"Default: 0") { |v| OPTIONS[:orb_debuglevel]=v }
|
33
|
+
"Default: 0") { |v| OPTIONS[:orb_debuglevel] = v }
|
35
34
|
opts.on("--use-implement",
|
36
35
|
"Load IDL through CORBA.implement() instead of precompiled code.",
|
37
|
-
"Default: off") { |v| OPTIONS[:use_implement]=v }
|
36
|
+
"Default: off") { |v| OPTIONS[:use_implement] = v }
|
38
37
|
|
39
38
|
opts.separator ""
|
40
39
|
|
@@ -66,7 +65,7 @@ begin
|
|
66
65
|
# list registered items in context
|
67
66
|
binding_list, binding_iterator = nc.list(1)
|
68
67
|
|
69
|
-
assert 'ERROR: INS list() does not function', (!CORBA::is_nil(binding_iterator) && binding_list.size==1) &&
|
68
|
+
assert 'ERROR: INS list() does not function', (!CORBA::is_nil(binding_iterator) && binding_list.size == 1) &&
|
70
69
|
binding_list.first.binding_type == CosNaming::Nobject
|
71
70
|
|
72
71
|
n = binding_list.first.binding_name.first
|
@@ -84,7 +83,7 @@ begin
|
|
84
83
|
has_list, binding_list = binding_iterator.next_n(3)
|
85
84
|
|
86
85
|
assert 'ERROR: INS BindingIterator#next_n() does not function',
|
87
|
-
(has_list && binding_list.size==3) &&
|
86
|
+
(has_list && binding_list.size == 3) &&
|
88
87
|
binding_list.first.binding_type == CosNaming::Nobject &&
|
89
88
|
binding_list.last.binding_type == CosNaming::Nobject
|
90
89
|
|
@@ -7,7 +7,6 @@
|
|
7
7
|
# included with this program.
|
8
8
|
#
|
9
9
|
# Copyright (c) Remedy IT Expertise BV
|
10
|
-
# Chamber of commerce Rotterdam nr.276339, The Netherlands
|
11
10
|
#--------------------------------------------------------------------
|
12
11
|
|
13
12
|
OPTIONS = {
|
@@ -73,7 +72,7 @@ end
|
|
73
72
|
|
74
73
|
exrc = clt.wait(400)
|
75
74
|
|
76
|
-
if exrc ==0
|
75
|
+
if exrc == 0
|
77
76
|
srv.wait(400)
|
78
77
|
else
|
79
78
|
srv.wait_term(400)
|
@@ -7,7 +7,6 @@
|
|
7
7
|
# included with this program.
|
8
8
|
#
|
9
9
|
# Copyright (c) Remedy IT Expertise BV
|
10
|
-
# Chamber of commerce Rotterdam nr.276339, The Netherlands
|
11
10
|
#--------------------------------------------------------------------
|
12
11
|
|
13
12
|
require 'optparse'
|
@@ -28,13 +27,13 @@ ARGV.options do |opts|
|
|
28
27
|
|
29
28
|
opts.on("--k IORFILE",
|
30
29
|
"Set INS IOR filename.",
|
31
|
-
"Default: 'file://ins.ior'") { |v| OPTIONS[:iorfile]=v }
|
30
|
+
"Default: 'file://ins.ior'") { |v| OPTIONS[:iorfile] = v }
|
32
31
|
opts.on("--d LVL",
|
33
32
|
"Set ORBDebugLevel value.",
|
34
|
-
"Default: 0") { |v| OPTIONS[:orb_debuglevel]=v }
|
33
|
+
"Default: 0") { |v| OPTIONS[:orb_debuglevel] = v }
|
35
34
|
opts.on("--use-implement",
|
36
35
|
"Load IDL through CORBA.implement() instead of precompiled code.",
|
37
|
-
"Default: off") { |v| OPTIONS[:use_implement]=v }
|
36
|
+
"Default: off") { |v| OPTIONS[:use_implement] = v }
|
38
37
|
|
39
38
|
opts.separator ""
|
40
39
|
|
@@ -92,7 +91,7 @@ hello_obj = hello_srv._this()
|
|
92
91
|
|
93
92
|
# register 5 object references with Naming service
|
94
93
|
5.times do |i|
|
95
|
-
nc.bind([CosNaming::NameComponent.new("Hello#{i}",'ior')], hello_obj)
|
94
|
+
nc.bind([CosNaming::NameComponent.new("Hello#{i}", 'ior')], hello_obj)
|
96
95
|
end
|
97
96
|
|
98
97
|
# initialize signal handling
|
@@ -6,7 +6,6 @@
|
|
6
6
|
* included with this program.
|
7
7
|
*
|
8
8
|
* Copyright (c) Remedy IT Expertise BV
|
9
|
-
* Chamber of commerce Rotterdam nr.276339, The Netherlands
|
10
9
|
*--------------------------------------------------------------------*/
|
11
10
|
|
12
11
|
/// Put the interfaces in a module, to avoid global namespace pollution
|
@@ -7,7 +7,6 @@
|
|
7
7
|
# included with this program.
|
8
8
|
#
|
9
9
|
# Copyright (c) Remedy IT Expertise BV
|
10
|
-
# Chamber of commerce Rotterdam nr.276339, The Netherlands
|
11
10
|
#--------------------------------------------------------------------
|
12
11
|
|
13
12
|
require 'optparse'
|
@@ -28,13 +27,13 @@ ARGV.options do |opts|
|
|
28
27
|
|
29
28
|
opts.on("--k IORFILE",
|
30
29
|
"Set IOR file.",
|
31
|
-
"Default: 'corbaname.ior'") { |v| OPTIONS[:iorfile]=v }
|
30
|
+
"Default: 'corbaname.ior'") { |v| OPTIONS[:iorfile] = v }
|
32
31
|
opts.on("--d LVL",
|
33
32
|
"Set ORBDebugLevel value.",
|
34
|
-
"Default: 0") { |v| OPTIONS[:orb_debuglevel]=v }
|
33
|
+
"Default: 0") { |v| OPTIONS[:orb_debuglevel] = v }
|
35
34
|
opts.on("--use-implement",
|
36
35
|
"Load IDL through CORBA.implement() instead of precompiled code.",
|
37
|
-
"Default: off") { |v| OPTIONS[:use_implement]=v }
|
36
|
+
"Default: off") { |v| OPTIONS[:use_implement] = v }
|
38
37
|
|
39
38
|
opts.separator ""
|
40
39
|
|
@@ -7,7 +7,6 @@
|
|
7
7
|
# included with this program.
|
8
8
|
#
|
9
9
|
# Copyright (c) Remedy IT Expertise BV
|
10
|
-
# Chamber of commerce Rotterdam nr.276339, The Netherlands
|
11
10
|
#--------------------------------------------------------------------
|
12
11
|
|
13
12
|
OPTIONS = {
|
@@ -79,7 +78,7 @@ end
|
|
79
78
|
|
80
79
|
exrc = clt.wait(400)
|
81
80
|
|
82
|
-
if exrc ==0
|
81
|
+
if exrc == 0
|
83
82
|
srv.wait(400)
|
84
83
|
else
|
85
84
|
srv.wait_term(400)
|
@@ -7,7 +7,6 @@
|
|
7
7
|
# included with this program.
|
8
8
|
#
|
9
9
|
# Copyright (c) Remedy IT Expertise BV
|
10
|
-
# Chamber of commerce Rotterdam nr.276339, The Netherlands
|
11
10
|
#--------------------------------------------------------------------
|
12
11
|
|
13
12
|
require 'optparse'
|
@@ -29,16 +28,16 @@ ARGV.options do |opts|
|
|
29
28
|
|
30
29
|
opts.on("--o FILENAME",
|
31
30
|
"Set corbaname IOR filename.",
|
32
|
-
"Default: 'corbaname.ior'") { |v| OPTIONS[:iorfile]=v }
|
31
|
+
"Default: 'corbaname.ior'") { |v| OPTIONS[:iorfile] = v }
|
33
32
|
opts.on("--d LVL",
|
34
33
|
"Set ORBDebugLevel value.",
|
35
|
-
"Default: 0") { |v| OPTIONS[:orb_debuglevel]=v }
|
34
|
+
"Default: 0") { |v| OPTIONS[:orb_debuglevel] = v }
|
36
35
|
opts.on("--p PORT", Integer,
|
37
36
|
"INS port number.",
|
38
|
-
"Default: 2345") { |v| OPTIONS[:ins_port]=v }
|
37
|
+
"Default: 2345") { |v| OPTIONS[:ins_port] = v }
|
39
38
|
opts.on("--use-implement",
|
40
39
|
"Load IDL through CORBA.implement() instead of precompiled code.",
|
41
|
-
"Default: off") { |v| OPTIONS[:use_implement]=v }
|
40
|
+
"Default: off") { |v| OPTIONS[:use_implement] = v }
|
42
41
|
|
43
42
|
opts.separator ""
|
44
43
|
|
@@ -79,17 +78,17 @@ ins_url = "iiop:localhost:#{OPTIONS[:ins_port]}/NamingService"
|
|
79
78
|
puts "server: resolving [corbaloc:#{ins_url}]"
|
80
79
|
|
81
80
|
# resolve NamingContext
|
82
|
-
obj = orb.string_to_object('corbaloc:'+ins_url)
|
81
|
+
obj = orb.string_to_object('corbaloc:' + ins_url)
|
83
82
|
|
84
83
|
nc = CosNaming::NamingContextExt._narrow(obj)
|
85
84
|
|
86
85
|
# create context tree for registration
|
87
|
-
full_name = [CosNaming::NameComponent.new('','root'),
|
88
|
-
CosNaming::NameComponent.new('base','dir'),
|
89
|
-
CosNaming::NameComponent.new('Hello','ior')]
|
86
|
+
full_name = [CosNaming::NameComponent.new('', 'root'),
|
87
|
+
CosNaming::NameComponent.new('base', 'dir'),
|
88
|
+
CosNaming::NameComponent.new('Hello', 'ior')]
|
90
89
|
|
91
|
-
nc_new = nc.bind_new_context(full_name[0,1])
|
92
|
-
nc_new = nc_new.bind_new_context(full_name[1,1])
|
90
|
+
nc_new = nc.bind_new_context(full_name[0, 1])
|
91
|
+
nc_new = nc_new.bind_new_context(full_name[1, 1])
|
93
92
|
|
94
93
|
assert_not "ERROR: INS IOR resolved to nil object!", CORBA::is_nil(nc)
|
95
94
|
|
@@ -6,7 +6,6 @@
|
|
6
6
|
* included with this program.
|
7
7
|
*
|
8
8
|
* Copyright (c) Remedy IT Expertise BV
|
9
|
-
* Chamber of commerce Rotterdam nr.276339, The Netherlands
|
10
9
|
*--------------------------------------------------------------------*/
|
11
10
|
|
12
11
|
/// Put the interfaces in a module, to avoid global namespace pollution
|
@@ -7,7 +7,6 @@
|
|
7
7
|
# included with this program.
|
8
8
|
#
|
9
9
|
# Copyright (c) Remedy IT Expertise BV
|
10
|
-
# Chamber of commerce Rotterdam nr.276339, The Netherlands
|
11
10
|
#--------------------------------------------------------------------
|
12
11
|
|
13
12
|
require 'optparse'
|
@@ -28,13 +27,13 @@ ARGV.options do |opts|
|
|
28
27
|
|
29
28
|
opts.on("--k IORFILE",
|
30
29
|
"Set IOR.",
|
31
|
-
"Default: 'file://ins.ior'") { |v| OPTIONS[:iorfile]=v }
|
30
|
+
"Default: 'file://ins.ior'") { |v| OPTIONS[:iorfile] = v }
|
32
31
|
opts.on("--d LVL",
|
33
32
|
"Set ORBDebugLevel value.",
|
34
|
-
"Default: 0") { |v| OPTIONS[:orb_debuglevel]=v }
|
33
|
+
"Default: 0") { |v| OPTIONS[:orb_debuglevel] = v }
|
35
34
|
opts.on("--use-implement",
|
36
35
|
"Load IDL through CORBA.implement() instead of precompiled code.",
|
37
|
-
"Default: off") { |v| OPTIONS[:use_implement]=v }
|
36
|
+
"Default: off") { |v| OPTIONS[:use_implement] = v }
|
38
37
|
|
39
38
|
opts.separator ""
|
40
39
|
|
@@ -64,7 +63,7 @@ begin
|
|
64
63
|
assert_not "ERROR: INS IOR resolved to nil object!", CORBA::is_nil(nc)
|
65
64
|
|
66
65
|
# retrieve object reference for servant from Naming service
|
67
|
-
name = [CosNaming::NameComponent.new('Hello','ior')]
|
66
|
+
name = [CosNaming::NameComponent.new('Hello', 'ior')]
|
68
67
|
|
69
68
|
obj = nc.resolve(name)
|
70
69
|
|
@@ -7,7 +7,6 @@
|
|
7
7
|
# included with this program.
|
8
8
|
#
|
9
9
|
# Copyright (c) Remedy IT Expertise BV
|
10
|
-
# Chamber of commerce Rotterdam nr.276339, The Netherlands
|
11
10
|
#--------------------------------------------------------------------
|
12
11
|
|
13
12
|
OPTIONS = {
|
@@ -73,7 +72,7 @@ end
|
|
73
72
|
|
74
73
|
exrc = clt.wait(400)
|
75
74
|
|
76
|
-
if exrc ==0
|
75
|
+
if exrc == 0
|
77
76
|
srv.wait(400)
|
78
77
|
else
|
79
78
|
srv.wait_term(400)
|
@@ -7,7 +7,6 @@
|
|
7
7
|
# included with this program.
|
8
8
|
#
|
9
9
|
# Copyright (c) Remedy IT Expertise BV
|
10
|
-
# Chamber of commerce Rotterdam nr.276339, The Netherlands
|
11
10
|
#--------------------------------------------------------------------
|
12
11
|
|
13
12
|
require 'optparse'
|
@@ -28,13 +27,13 @@ ARGV.options do |opts|
|
|
28
27
|
|
29
28
|
opts.on("--k IORFILE",
|
30
29
|
"Set INS IOR filename.",
|
31
|
-
"Default: 'file://ins.ior'") { |v| OPTIONS[:iorfile]=v }
|
30
|
+
"Default: 'file://ins.ior'") { |v| OPTIONS[:iorfile] = v }
|
32
31
|
opts.on("--d LVL",
|
33
32
|
"Set ORBDebugLevel value.",
|
34
|
-
"Default: 0") { |v| OPTIONS[:orb_debuglevel]=v }
|
33
|
+
"Default: 0") { |v| OPTIONS[:orb_debuglevel] = v }
|
35
34
|
opts.on("--use-implement",
|
36
35
|
"Load IDL through CORBA.implement() instead of precompiled code.",
|
37
|
-
"Default: off") { |v| OPTIONS[:use_implement]=v }
|
36
|
+
"Default: off") { |v| OPTIONS[:use_implement] = v }
|
38
37
|
|
39
38
|
opts.separator ""
|
40
39
|
|
@@ -91,7 +90,7 @@ hello_srv = MyHello.new(orb)
|
|
91
90
|
hello_obj = hello_srv._this()
|
92
91
|
|
93
92
|
# register object reference with Naming service
|
94
|
-
name = [CosNaming::NameComponent.new('Hello','ior')]
|
93
|
+
name = [CosNaming::NameComponent.new('Hello', 'ior')]
|
95
94
|
|
96
95
|
nc.bind(name, hello_obj)
|
97
96
|
|