1.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
1.2 +++ b/corba/tojar/org/netbeans/modules/corba/resources/impls.jar/CORBA/jacorb.properties Tue Apr 25 10:01:37 2000 +0000
1.3 @@ -0,0 +1,107 @@
1.4 +# Sun Public License Notice
1.5 +#
1.6 +# The contents of this file are subject to the Sun Public License
1.7 +# Version 1.0 (the "License"). You may not use this file except in
1.8 +# compliance with the License. A copy of the License is available at
1.9 +# http://www.sun.com/
1.10 +#
1.11 +# The Original Code is NetBeans. The Initial Developer of the Original
1.12 +# Code is Sun Microsystems, Inc. Portions Copyright 1997-2001 Sun
1.13 +# Microsystems, Inc. All Rights Reserved.
1.14 +
1.15 +CTL_NAME=JacORB Beta 1.0
1.16 +
1.17 +IMPORT=\
1.18 +import org.omg.CORBA.*;\n\
1.19 +import org.omg.PortableServer.*;\n\
1.20 +import java.io.*;\n\
1.21 +import java.util.*;\n
1.22 +
1.23 +IMPORT_NS=\
1.24 +import org.omg.CORBA.*;\n\
1.25 +import org.omg.PortableServer.*;\n\
1.26 +import java.io.*;\n\
1.27 +import java.util.*;\n\
1.28 +import org.omg.CosNaming.*;\n\
1.29 +import org.omg.CosNaming.NamingContextPackage.*;\n
1.30 +
1.31 +SETTINGS_ORB_PROPERTIES=\
1.32 + // setting system properties is necessary to use this ORB in Java 1.2\n Properties props = System.getProperties ();\n props.put ("org.omg.CORBA.ORBClass", "jacorb.orb.ORB");\n props.put ("org.omg.CORBA.ORBSingletonClass", "jacorb.orb.ORB");\n System.setProperties (props);\n
1.33 +
1.34 +ORB_SERVER_INIT=\
1.35 + // create ORB and POA - yes, JacORB has POA of course :-)))\n ORB orb = null;\n POA poa = null;\n try {\n orb = ORB.init (args, props);\n poa = POAHelper.narrow (orb.resolve_initial_references ("RootPOA"));\n\n //\n // add code to instantiate object implementation here\n
1.36 +
1.37 +ORB_CLIENT_INIT=\
1.38 + // create ORB\n ORB orb = ORB.init (args, props);\n
1.39 +
1.40 +ORB_OBJECT_ACTIVATION=org.omg.CORBA.Object obj = poa.servant_to_reference (/* add your object implementation here */);
1.41 +
1.42 +ORB_SERVER_RUN=orb.run ();\n } catch (Exception ex) {\n ex.printStackTrace ();\n }
1.43 +
1.44 +#SERVER_NS=\
1.45 + //this server will use the Naming Service\n org.omg.CORBA.Object o1 = null;\n try {\n o1 = orb.resolve_initial_references("NameService");\n } catch (org.omg.CORBA.ORBPackage.InvalidName ex) {\n System.out.println ("Can't binding to NameService");\n System.exit (1);\n }\n NamingContext nc = NamingContextHelper.narrow(o1);\n\n if (nc == null) {\n System.out.println ("Naming Context is null!!!");\n System.exit (1);\n }\n\n try {\n //\n // Create and bind Naming Contexts\n //\n NameComponent[] nc1Name = new NameComponent[1];\n nc1Name[0] = new NameComponent();\n nc1Name[0].id = "<name of your context>";\n nc1Name[0].kind = "";\n NamingContext nc1 = nc.bind_new_context(nc1Name);\n //\n // Bind names with the Naming Service\n //\n NameComponent[] aName = new NameComponent[2];\n aName[0] = new NameComponent();\n aName[0].id = "<name of your context>";\n aName[0].kind = "";\n aName[1] = new NameComponent ();\n aName[1].id = "<name of your server>";\n aName[1].kind = "";\n nc.bind(aName, /* place your object implementation here */);\n } catch (Exception e) {\n e.printStackTrace ();\n }\n
1.46 +
1.47 +
1.48 +SERVER_NS=\
1.49 + //this server will use Naming Service\n org.omg.CORBA.Object o1 = null;\n try {\n o1 = orb.resolve_initial_references("NameService");\n } catch (org.omg.CORBA.ORBPackage.InvalidName ex) {\n System.out.println ("Can't binding to NameService");\n System.exit (1);\n }\n NamingContext nc = NamingContextHelper.narrow(o1);\n\n if (nc == null) {\n System.out.println ("Naming Context is null!!!");\n System.exit (1);\n }\n\n try {\n //\n // Create and bind Naming Contexts\n //\n // paste code retrieved using the Copy Server Code action (on a context node in the Naming Service Browser) here \n boolean already_bound = false;\n NameComponent[] nc1Name = new NameComponent[1];\n NamingContext nc1 = null;\n for (int i=0; i<hierarchy_of_contexts.length / 2; i++) {\n nc1Name[0] = new NameComponent();\n nc1Name[0].id = hierarchy_of_contexts[i*2];\n nc1Name[0].kind = hierarchy_of_contexts[i*2+1];\n try {\n nc1 = nc.bind_new_context (nc1Name);\n nc = nc1;\n } catch (org.omg.CosNaming.NamingContextPackage.AlreadyBound e) {\n already_bound = true;\n }\n if (already_bound) {\n try {\n org.omg.CORBA.Object o = nc.resolve (nc1Name);\n nc1 = NamingContextHelper.narrow (o);\n if (nc1 != null)\n nc = nc1;\n already_bound = false;\n } catch (Exception e) {\n e.printStackTrace ();\n }\n }\n }\n \n //\n // Bind names with the Naming Service\n //\n NameComponent[] aName = new NameComponent[1];\n aName[0] = new NameComponent ();\n aName[0].id = name_of_server[0];\n aName[0].kind = name_of_server[1];\n nc.bind(aName, /* place here name of servant variable */);\n } catch (Exception e) {\n e.printStackTrace ();\n }\n
1.50 +
1.51 +
1.52 +SERVER_IOR_TO_FILE=// IOR will be written to file <file_name>\n String ior = orb.object_to_string (obj);\n try {\n FileWriter file = new java.io.FileWriter("<file_name>");\n PrintWriter pfile=new java.io.PrintWriter(file);\n pfile.println (ior);\n pfile.flush();\n pfile.close();\n } catch (IOException ex) {\n System.out.println("file error");\n }\n
1.53 +
1.54 +SERVER_IOR_TO_OUTPUT= //IOR will be written to standard output\n System.out.println (orb.object_to_string (obj));\n
1.55 +
1.56 +#SERVER_BINDER= //JacORB proprietary binding\n jacorb.naming.NameServer.registerService (obj, "<name of your server>");\n
1.57 +
1.58 +
1.59 +#CLIENT_NS=\
1.60 + //client will use Naming Service\n org.omg.CORBA.Object o1 = null;\n try {\n o1 = orb.resolve_initial_references("NameService");\n } catch (org.omg.CORBA.ORBPackage.InvalidName ex) {\n System.err.println("Can't bind to Naming Service");\n System.exit(0);\n }\n if (o1 == null) {\n System.err.println("Naming Service is a nil object reference");\n System.exit(0);\n }\n NamingContext nc = NamingContextHelper.narrow (o1);\n if (nc == null) {\n System.err.println("Naming Service is not a NamingContext object reference");\n System.exit(0);\n }\n try {\n //\n // Resolve names with the Naming Service\n //\n NameComponent[] aName = new NameComponent[2];\n aName[0] = new NameComponent();\n aName[0].id = "<name of your context>";\n aName[0].kind = "";\n aName[1] = new NameComponent();\n aName[1].id = "<name of your server>";\n aName[1].kind = "";\n org.omg.CORBA.Object obj = nc.resolve(aName);\n // place narrowing of your object here\n // something like: <class> <name> = <class>Helper.narrow (obj);\n // if (<name> == null) throw new RuntimeException ();\n\n } catch (Exception e) {\n e.printStackTrace ();\n }\n
1.61 +
1.62 +
1.63 +CLIENT_NS=\
1.64 + //client will use Naming Service\n org.omg.CORBA.Object o1 = null;\n try {\n o1 = orb.resolve_initial_references("NameService");\n } catch (org.omg.CORBA.ORBPackage.InvalidName ex) {\n System.err.println("Can't bind to Naming Service");\n System.exit(0);\n }\n if (o1 == null) {\n System.err.println("Naming Service is a nil object reference");\n System.exit(0);\n }\n NamingContext nc = NamingContextHelper.narrow (o1);\n if (nc == null) {\n System.err.println("Naming Service is not a NamingContext object reference");\n System.exit(0);\n }\n org.omg.CORBA.Object obj = null;\n try {\n //\n // Resolve names with the Naming Service\n //\n // paste code retrieved using the Copy Client Code action (on an object node in the Naming Service Browser) here \n NameComponent[] aName = new NameComponent[client_name_hierarchy.length / 2];\n for (int i=0; i<(client_name_hierarchy.length / 2); i++) {\n aName[i] = new NameComponent();\n aName[i].id = client_name_hierarchy[i*2];\n aName[i].kind = client_name_hierarchy[i*2+1];\n }\n obj = nc.resolve (aName);\n } catch (Exception e) {\n e.printStackTrace ();\n }\n // place narrowing of your object here\n // something like: <class> <name> = <class>Helper.narrow (obj);\n // if (<name> == null) throw new RuntimeException ();\n\n
1.65 +
1.66 +
1.67 +
1.68 +CLIENT_IOR_FROM_FILE=\
1.69 + //IOR will be read from file <file_name>\n org.omg.CORBA.Object obj = null;\n try {\n BufferedReader input = new BufferedReader (new FileReader ("<file_name>"));\n String target = input.readLine();\n input.close();\n obj = orb.string_to_object(target);\n } catch (IOException ex) {\n System.out.println("file error");\n System.exit(0);\n }\n // add your code narrowing here\n // something like: <class> <name> = <class>Helper.narrow (obj);\n // if (<name> == null) throw new RuntimeException ();\n
1.70 +
1.71 +
1.72 +CLIENT_IOR_FROM_INPUT=\
1.73 + //IOR will be read from standard input\n String ior = null;\n try {\n BufferedReader in = new BufferedReader (new InputStreamReader (System.in));\n ior = in.readLine();\n } catch (IOException e) {\n System.out.println (e);\n }\n org.omg.CORBA.Object obj = orb.string_to_object (ior);\n if (obj == null)\n throw new RuntimeException ();\n // add your code here\n // something like: <class> <name> = <class>Helper.narrow (obj);\n // if (<name> == null) throw new RuntimeException ();\n
1.74 +
1.75 +
1.76 +
1.77 +#CLIENT_BINDER=//ORBacus for Java 3.1.x proprietary client binding\n // get server object from URL\n //\n String url = "iiop://<host where server run>:<port where server listening>/<name of your object implementation>";\n org.omg.CORBA.Object obj = orb.string_to_object (url);\n if (obj == null)\n throw new RuntimeException();\n // add your code here\n // something like: <class> <name> = <class>Helper.narrow (obj);\n // if (<name> == null) throw RuntimeException ();\n
1.78 +
1.79 +
1.80 +
1.81 +
1.82 +TIE_PARAM=
1.83 +DIR_PARAM=-d
1.84 +PACKAGE_PARAM=-p
1.85 +COMPILER=java -classpath {filesystems} jacorb.idl.parser {params} {dir_param} {package_root} {package_param} {package} {files}
1.86 +PACKAGE_DELIMITER=.
1.87 +ERROR_EXPRESSION=^([^ ]+), line: ([0-9]+)\\(([0-9]+)\\)(.*)
1.88 +FILE_POSITION=1
1.89 +LINE_POSITION=2
1.90 +COLUMN_POSITION=-1
1.91 +MESSAGE_POSITION=4
1.92 +
1.93 +# added for implementation generator
1.94 +
1.95 +# ImplBase approach
1.96 +IMPLBASE_IMPL_PREFIX=
1.97 +IMPLBASE_IMPL_POSTFIX=Impl
1.98 +EXT_CLASS_PREFIX=
1.99 +EXT_CLASS_POSTFIX=POA
1.100 +
1.101 +# Tie approach
1.102 +TIE_IMPL_PREFIX=
1.103 +TIE_IMPL_POSTFIX=ImplTIE
1.104 +IMPL_INT_PREFIX=
1.105 +IMPL_INT_POSTFIX=Operations
1.106 +
1.107 +
1.108 +
1.109 +
1.110 +
2.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
2.2 +++ b/corba/tojar/org/netbeans/modules/corba/resources/impls.jar/CORBA/javaorb.properties Tue Apr 25 10:01:37 2000 +0000
2.3 @@ -0,0 +1,140 @@
2.4 +# Sun Public License Notice
2.5 +#
2.6 +# The contents of this file are subject to the Sun Public License
2.7 +# Version 1.0 (the "License"). You may not use this file except in
2.8 +# compliance with the License. A copy of the License is available at
2.9 +# http://www.sun.com/
2.10 +#
2.11 +# The Original Code is NetBeans. The Initial Developer of the Original
2.12 +# Code is Sun Microsystems, Inc. Portions Copyright 1997-2001 Sun
2.13 +# Microsystems, Inc. All Rights Reserved.
2.14 +
2.15 +CTL_NAME=JavaORB 1.2.x
2.16 +
2.17 +IMPORT=\
2.18 +import org.omg.CORBA.*;\n\
2.19 +import java.io.*;\n\
2.20 +import java.util.*;\n
2.21 +
2.22 +IMPORT_NS=\
2.23 +import org.omg.CORBA.*;\n\
2.24 +import java.io.*;\n\
2.25 +import java.util.*;\n\
2.26 +import org.omg.CosNaming.*;\n\
2.27 +import org.omg.CosNaming.NamingContextPackage.*;\n
2.28 +
2.29 +SETTINGS_ORB_PROPERTIES=\
2.30 + // setting system properties is necessary in order to use JavaORB in Java 1.2\n Properties props = System.getProperties ();\n props.put ("org.omg.CORBA.ORBClass", "JavaORB.CORBA.ORBSingleton");\n props.put ("org.omg.CORBA.ORBSingletonClass", "JavaORB.CORBA.ORBSingleton");\n System.setProperties (props);\n
2.31 +
2.32 +ORB_SERVER_INIT=\
2.33 + // create ORB and BOA\n ORB orb = ORB.init (args, props);\n BOA boa = BOA.init (orb, args);\n\n //\n // add code to instantiate your object implementation here\n
2.34 +
2.35 +ORB_CLIENT_INIT=\
2.36 + // create ORB\n ORB orb = ORB.init (args, props);\n
2.37 +
2.38 +ORB_OBJECT_ACTIVATION=//JavaORB object activation\n boa.connect (/* add your object implementation here */);\n boa.obj_is_ready (/* add your object implementation here */);
2.39 +
2.40 +ORB_SERVER_RUN=\
2.41 + try {\n boa.impl_is_ready();\n } catch (java.lang.Exception e) {\n e.printStackTrace ();\n }\n
2.42 +
2.43 +SERVER_NS=\
2.44 + //this server will use Naming Service\n org.omg.CORBA.Object o1 = null;\n try {\n o1 = orb.resolve_initial_references("NameService");\n } catch (org.omg.CORBA.ORBPackage.InvalidName ex) {\n System.out.println ("Can't binding to NameService");\n System.exit (1);\n }\n NamingContext nc = NamingContextHelper.narrow(o1);\n\n if (nc == null) {\n System.out.println ("Naming Context is null!!!");\n System.exit (1);\n }\n\n try {\n //\n // Create and bind some Naming Contexts\n //\n // paste code retrieved using the Copy Server Code action (on a context node in the Naming Service Browser) here \n boolean already_bound = false;\n NameComponent[] nc1Name = new NameComponent[1];\n NamingContext nc1 = null;\n for (int i=0; i<hierarchy_of_contexts.length / 2; i++) {\n nc1Name[0] = new NameComponent();\n nc1Name[0].id = hierarchy_of_contexts[i*2];\n nc1Name[0].kind = hierarchy_of_contexts[i*2+1];\n try {\n nc1 = nc.bind_new_context (nc1Name);\n nc = nc1;\n } catch (org.omg.CosNaming.NamingContextPackage.AlreadyBound e) {\n already_bound = true;\n }\n if (already_bound) {\n try {\n org.omg.CORBA.Object o = nc.resolve (nc1Name);\n nc1 = NamingContextHelper.narrow (o);\n if (nc1 != null)\n nc = nc1;\n already_bound = false;\n } catch (Exception e) {\n e.printStackTrace ();\n }\n }\n }\n \n //\n // Bind names with the Naming Service\n //\n NameComponent[] aName = new NameComponent[1];\n aName[0] = new NameComponent ();\n aName[0].id = name_of_server[0];\n aName[0].kind = name_of_server[1];\n nc.bind(aName, /* place here name of servant variable */);\n } catch (Exception e) {\n e.printStackTrace ();\n }\n
2.45 +
2.46 +SERVER_IOR_TO_FILE=// IOR will be written to file <file_name>\n String ior = orb.object_to_string (/* add your object implementation here */);\n try {\n FileWriter file = new java.io.FileWriter("<file_name>");\n PrintWriter pfile=new java.io.PrintWriter(file);\n pfile.println (ior);\n pfile.flush();\n pfile.close();\n } catch (IOException ex) {\n System.out.println("file error");\n }\n
2.47 +
2.48 +SERVER_IOR_TO_OUTPUT=//IOR will be written to standard output\n System.out.println (orb.object_to_string (/* place here your object implementation */));\n
2.49 +
2.50 +#SERVER_NS=//JavaORB Server NS
2.51 +#SERVER_IOR_TO_FILE=\
2.52 + //JavaORB IOR to file\n\
2.53 + String ior = orb.object_to_string (\\ implementation);\n\
2.54 + try {\n\
2.55 + FileOutputStream file = new FileOutputStream ("<file_name>");\n\
2.56 + PrintStream out = new PrintStream (file);\n\
2.57 + out.println (ior);\n\
2.58 + } catch (IOException ex) {\n\
2.59 + System.out.println("File error");\n\
2.60 + }
2.61 +
2.62 +#SERVER_IOR_TO_OUTPUT=\
2.63 + System.out.println (orb.object_to_string (// place your implemenation here));\n\n\
2.64 + boa.impl_is_ready (null);\n
2.65 +
2.66 +#SERVER_BINDER=//JavaORB binder
2.67 +
2.68 +#CLIENT_NS=//JavaORB Client NS
2.69 +
2.70 +CLIENT_NS=\
2.71 + //client will use Naming Service\n org.omg.CORBA.Object o1 = null;\n try {\n o1 = orb.resolve_initial_references("NameService");\n } catch (org.omg.CORBA.ORBPackage.InvalidName ex) {\n System.err.println("Can't bind to Naming Service");\n System.exit(0);\n }\n if (o1 == null) {\n System.err.println("Naming Service is a nil object reference");\n System.exit(0);\n }\n NamingContext nc = NamingContextHelper.narrow (o1);\n if (nc == null) {\n System.err.println("Naming Service is not a NamingContext object reference");\n System.exit(0);\n }\n org.omg.CORBA.Object obj = null;\n try {\n //\n // Resolve names with the Naming Service\n //\n // paste code retrieved using the Copy Client Code action (on an object node in the Naming Service Browser) here \n NameComponent[] aName = new NameComponent[client_name_hierarchy.length / 2];\n for (int i=0; i<(client_name_hierarchy.length / 2); i++) {\n aName[i] = new NameComponent();\n aName[i].id = client_name_hierarchy[i*2];\n aName[i].kind = client_name_hierarchy[i*2+1];\n }\n obj = nc.resolve (aName);\n } catch (Exception e) {\n e.printStackTrace ();\n }\n // place narrowing of your object here\n // something like: <class> <name> = <class>Helper.narrow (obj);\n // if (<name> == null) throw new RuntimeException ();\n\n
2.72 +
2.73 +
2.74 +CLIENT_IOR_FROM_FILE=\
2.75 + //IOR will be read from file <file_name>\n org.omg.CORBA.Object obj = null;\n try {\n FileReader file = new java.io.FileReader("<file_name>");\n BufferedReader input = new java.io.BufferedReader(file);\n String target = input.readLine();\n input.close();\n obj = orb.string_to_object(target);\n } catch (IOException ex) {\n System.out.println("file error");\n System.exit(0);\n }\n // add your code narrowing here\n // something like: <class> <name> = <class>Helper.narrow (obj);\n // if (<name> == null) throw new RuntimeException ();\n
2.76 +
2.77 +
2.78 +CLIENT_IOR_FROM_INPUT=\
2.79 + //IOR will be read from standard input\n String ior = null;\n try {\n InputStreamReader dataIn = new InputStreamReader(System.in);\n BufferedReader in = new BufferedReader(dataIn);\n ior = in.readLine();\n } catch (IOException e) {\n System.out.println (e);\n }\n org.omg.CORBA.Object obj = orb.string_to_object (ior);\n if (obj == null)\n throw new RuntimeException ();\n // add your code here\n // something like: <class> <name> = <class>Helper.narrow (obj);\n // if (<name> == null) throw new RuntimeException ();\n
2.80 +
2.81 +##CLIENT_IOR_FROM_FILE=\
2.82 + //JavaORB IOR from file\n\
2.83 + org.omg.CORBA.Object obj = null;\n\
2.84 + try {\n\
2.85 + FileInputStream file = new FileInputStream("<file_name>");\n\
2.86 + DataInputStream in = new DataInputStream(file);\n\
2.87 + String ior = in.readLine();\n\
2.88 + obj = orb.string_to_object(ior);\n\
2.89 + } catch (java.io.IOException ex) {\n\
2.90 + System.out.println("File error");\n\
2.91 + System.exit(0);\n\
2.92 + }\n\
2.93 + // now you must narrow from obj to your object\n
2.94 +
2.95 +##CLIENT_IOR_FROM_INPUT=\
2.96 + //JavaORB IOR from input\n\
2.97 + String ior = null;\n\
2.98 + try {\n\
2.99 + DataInputStream dataIn = new DataInputStream(System.in);\n\
2.100 + BufferedReader in = new BufferedReader(new InputStreamReader(dataIn));\n\
2.101 + ior = in.readLine();\n\
2.102 + } catch (IOException e) {\n\
2.103 + System.out.println (e);\n\
2.104 + }\n\
2.105 + org.omg.CORBA.Object obj = orb.string_to_object (ior);\n\
2.106 + if (obj == null)\n\
2.107 + throw new RuntimeException ();\n\
2.108 + // now you must narrow from obj to your object\n
2.109 +
2.110 +##CLIENT_BINDER=//JavaORB Client binder
2.111 +
2.112 +TIE_PARAM=-tie
2.113 +
2.114 +DIR_PARAM=-outdir:
2.115 +PACKAGE_PARAM=-package:
2.116 +COMPILER=java -classpath {repository} JavaORB.compiler.IdlCompiler {dir_param}{package_root} {package_param}{package} {files} {params}
2.117 +PACKAGE_DELIMITER=.
2.118 +ERROR_EXPRESSION=^([^ ]+), Line ([0-9]+) : (.*)
2.119 +FILE_POSITION=1
2.120 +LINE_POSITION=2
2.121 +COLUMN_POSITION=-1
2.122 +MESSAGE_POSITION=3
2.123 +
2.124 +
2.125 +# added for implementation generator
2.126 +
2.127 +#ImplBase aproach
2.128 +
2.129 +IMPLBASE_IMPL_PREFIX=
2.130 +IMPLBASE_IMPL_POSTFIX=Impl
2.131 +EXT_CLASS_PREFIX=_
2.132 +EXT_CLASS_POSTFIX=ImplBase
2.133 +
2.134 +#TIE aproach
2.135 +TIE_IMPL_PREFIX=
2.136 +TIE_IMPL_POSTFIX=ImplTIE
2.137 +IMPL_INT_PREFIX=
2.138 +IMPL_INT_POSTFIX=Operations
2.139 +
2.140 +
2.141 +
2.142 +
2.143 +
3.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
3.2 +++ b/corba/tojar/org/netbeans/modules/corba/resources/impls.jar/CORBA/jdk1.2-orb.properties Tue Apr 25 10:01:37 2000 +0000
3.3 @@ -0,0 +1,98 @@
3.4 +# Sun Public License Notice
3.5 +#
3.6 +# The contents of this file are subject to the Sun Public License
3.7 +# Version 1.0 (the "License"). You may not use this file except in
3.8 +# compliance with the License. A copy of the License is available at
3.9 +# http://www.sun.com/
3.10 +#
3.11 +# The Original Code is NetBeans. The Initial Developer of the Original
3.12 +# Code is Sun Microsystems, Inc. Portions Copyright 1997-2001 Sun
3.13 +# Microsystems, Inc. All Rights Reserved.
3.14 +
3.15 +CTL_NAME=JDK 1.2 ORB
3.16 +
3.17 +IMPORT=\
3.18 +import org.omg.CORBA.*;\n\
3.19 +import java.io.*;\n\
3.20 +import java.util.*;\n
3.21 +
3.22 +IMPORT_NS=\
3.23 +import org.omg.CORBA.*;\n\
3.24 +import java.io.*;\n\
3.25 +import java.util.*;\n\
3.26 +import org.omg.CosNaming.*;\n\
3.27 +import org.omg.CosNaming.NamingContextPackage.*;\n
3.28 +
3.29 +SETTINGS_ORB_PROPERTIES=
3.30 +
3.31 +ORB_SERVER_INIT=\
3.32 + // create ORB\n ORB orb = null;\n try {\n orb = ORB.init (args, null);\n // add code to instantiate your object implementation here\n
3.33 +
3.34 +ORB_CLIENT_INIT=\
3.35 + // create ORB\n ORB orb = ORB.init (args, null);\n
3.36 +
3.37 +ORB_OBJECT_ACTIVATION=orb.connect (/* add your object implementation here */);
3.38 +
3.39 +ORB_SERVER_RUN=java.lang.Object sync = new java.lang.Object ();\n synchronized (sync) {\n sync.wait ();\n }\n } catch (Exception ex) {\n ex.printStackTrace ();\n }
3.40 +
3.41 +#SERVER_NS=\
3.42 + //this server will use Naming Service\n org.omg.CORBA.Object o1 = null;\n try {\n o1 = orb.resolve_initial_references("NameService");\n } catch (org.omg.CORBA.ORBPackage.InvalidName ex) {\n System.out.println ("Can't binding to NameService");\n System.exit (1);\n }\n NamingContext nc = NamingContextHelper.narrow(o1);\n\n if (nc == null) {\n System.out.println ("Naming Context is null!!!");\n System.exit (1);\n }\n\n try {\n //\n // Create and bind Naming Contexts\n //\n NameComponent[] nc1Name = new NameComponent[1];\n nc1Name[0] = new NameComponent();\n nc1Name[0].id = "<name of your context>";\n nc1Name[0].kind = "";\n NamingContext nc1 = nc.bind_new_context(nc1Name);\n //\n // Bind names with the Naming Service\n //\n NameComponent[] aName = new NameComponent[2];\n aName[0] = new NameComponent();\n aName[0].id = "<name of your context>";\n aName[0].kind = "";\n aName[1] = new NameComponent ();\n aName[1].id = "<name of your server>";\n aName[1].kind = "";\n nc.bind(aName, /* place your object implementation here */);\n } catch (Exception e) {\n e.printStackTrace ();\n }\n
3.43 +
3.44 +SERVER_NS=\
3.45 + //this server will use Naming Service\n org.omg.CORBA.Object o1 = null;\n try {\n o1 = orb.resolve_initial_references("NameService");\n } catch (org.omg.CORBA.ORBPackage.InvalidName ex) {\n System.out.println ("Can't binding to NameService");\n System.exit (1);\n }\n NamingContext nc = NamingContextHelper.narrow(o1);\n\n if (nc == null) {\n System.out.println ("Naming Context is null!!!");\n System.exit (1);\n }\n\n try {\n //\n // Create and bind Naming Contexts\n //\n // paste code retrieved using the Copy Server Code action (on a context node in the Naming Service Browser) here \n boolean already_bound = false;\n NameComponent[] nc1Name = new NameComponent[1];\n NamingContext nc1 = null;\n for (int i=0; i<hierarchy_of_contexts.length / 2; i++) {\n nc1Name[0] = new NameComponent();\n nc1Name[0].id = hierarchy_of_contexts[i*2];\n nc1Name[0].kind = hierarchy_of_contexts[i*2+1];\n try {\n nc1 = nc.bind_new_context (nc1Name);\n nc = nc1;\n } catch (org.omg.CosNaming.NamingContextPackage.AlreadyBound e) {\n already_bound = true;\n }\n if (already_bound) {\n try {\n org.omg.CORBA.Object o = nc.resolve (nc1Name);\n nc1 = NamingContextHelper.narrow (o);\n if (nc1 != null)\n nc = nc1;\n already_bound = false;\n } catch (Exception e) {\n e.printStackTrace ();\n }\n }\n }\n \n //\n // Bind names with the Naming Service\n //\n NameComponent[] aName = new NameComponent[1];\n aName[0] = new NameComponent ();\n aName[0].id = name_of_server[0];\n aName[0].kind = name_of_server[1];\n nc.bind(aName, /* place here name of servant variable */);\n } catch (Exception e) {\n e.printStackTrace ();\n }\n
3.46 +
3.47 +SERVER_IOR_TO_FILE=// IOR will be written to file <file_name>\n String ior = orb.object_to_string (/* place your object implementation here */);\n try {\n FileWriter file = new java.io.FileWriter("<file_name>");\n PrintWriter pfile=new java.io.PrintWriter(file);\n pfile.println (ior);\n pfile.flush();\n pfile.close();\n } catch (IOException ex) {\n System.out.println("file error");\n }\n
3.48 +
3.49 +SERVER_IOR_TO_OUTPUT= //IOR will be written to standard output\n System.out.println (orb.object_to_string (/* place your object implementation here */));\n
3.50 +
3.51 +#SERVER_BINDER= //JacORB proprietary binding\n jacorb.naming.NameServer.registerService (obj, "<name of your server>");\n
3.52 +
3.53 +
3.54 +#CLIENT_NS=\
3.55 + //client will use Naming Service\n org.omg.CORBA.Object o1 = null;\n try {\n o1 = orb.resolve_initial_references("NameService");\n } catch (org.omg.CORBA.ORBPackage.InvalidName ex) {\n System.err.println("Can't bind to Naming Service");\n System.exit(0);\n }\n if (o1 == null) {\n System.err.println("Naming Service is a nil object reference");\n System.exit(0);\n }\n NamingContext nc = NamingContextHelper.narrow (o1);\n if (nc == null) {\n System.err.println("Naming Service is not a NamingContext object reference");\n System.exit(0);\n }\n try {\n //\n // Resolve names with the Naming Service\n //\n NameComponent[] aName = new NameComponent[2];\n aName[0] = new NameComponent();\n aName[0].id = "<name of your context>";\n aName[0].kind = "";\n aName[1] = new NameComponent();\n aName[1].id = "<name of your server>";\n aName[1].kind = "";\n org.omg.CORBA.Object obj = nc.resolve(aName);\n // place narrowing of your object here\n // something like: <class> <name> = <class>Helper.narrow (obj);\n // if (<name> == null) throw new RuntimeException ();\n\n } catch (Exception e) {\n e.printStackTrace ();\n }\n
3.56 +
3.57 +CLIENT_NS=\
3.58 + //client will use Naming Service\n org.omg.CORBA.Object o1 = null;\n try {\n o1 = orb.resolve_initial_references("NameService");\n } catch (org.omg.CORBA.ORBPackage.InvalidName ex) {\n System.err.println("Can't bind to Naming Service");\n System.exit(0);\n }\n if (o1 == null) {\n System.err.println("Naming Service is a nil object reference");\n System.exit(0);\n }\n NamingContext nc = NamingContextHelper.narrow (o1);\n if (nc == null) {\n System.err.println("Naming Service is not a NamingContext object reference");\n System.exit(0);\n }\n org.omg.CORBA.Object obj = null;\n try {\n //\n // Resolve names with the Naming Service\n //\n // paste here code from Copy Client Code on Object Node in Naming Service Browser\n NameComponent[] aName = new NameComponent[client_name_hierarchy.length / 2];\n for (int i=0; i<(client_name_hierarchy.length / 2); i++) {\n aName[i] = new NameComponent();\n aName[i].id = client_name_hierarchy[i*2];\n aName[i].kind = client_name_hierarchy[i*2+1];\n }\n obj = nc.resolve (aName);\n } catch (Exception e) {\n e.printStackTrace ();\n }\n // place narrowing of your object here\n // something like: <class> <name> = <class>Helper.narrow (obj);\n // if (<name> == null) throw new RuntimeException ();\n\n
3.59 +
3.60 +CLIENT_IOR_FROM_FILE=\
3.61 + //IOR will be read from file <file_name>\n org.omg.CORBA.Object obj = null;\n try {\n FileReader file = new java.io.FileReader("<file_name>");\n BufferedReader input = new java.io.BufferedReader(file);\n String target = input.readLine();\n input.close();\n obj = orb.string_to_object(target);\n } catch (IOException ex) {\n System.out.println("file error");\n System.exit(0);\n }\n // add your code narrowing here\n // something like: <class> <name> = <class>Helper.narrow (obj);\n // if (<name> == null) throw new RuntimeException ();\n
3.62 +
3.63 +
3.64 +CLIENT_IOR_FROM_INPUT=\
3.65 + //IOR will be read from standard input\n String ior = null;\n try {\n InputStreamReader dataIn = new InputStreamReader(System.in);\n BufferedReader in = new BufferedReader(dataIn);\n ior = in.readLine();\n } catch (IOException e) {\n System.out.println (e);\n }\n org.omg.CORBA.Object obj = orb.string_to_object (ior);\n if (obj == null)\n throw new RuntimeException ();\n // add your code here\n // something like: <class> <name> = <class>Helper.narrow (obj);\n // if (<name> == null) throw new RuntimeException ();\n
3.66 +
3.67 +
3.68 +
3.69 +#CLIENT_BINDER=//ORBacus for Java 3.1.x proprietary client binding\n // get server object from URL\n //\n String url = "iiop://<host where server run>:<port where server listening>/<name of your object implementation>";\n org.omg.CORBA.Object obj = orb.string_to_object (url);\n if (obj == null)\n throw new RuntimeException();\n // add your code here\n // something like: <class> <name> = <class>Helper.narrow (obj);\n // if (<name> == null) throw RuntimeException ();\n
3.70 +
3.71 +
3.72 +
3.73 +TIE_PARAM=-ftie
3.74 +DIR_PARAM=-j
3.75 +PACKAGE_PARAM=-p
3.76 +COMPILER=idltojava {params} {dir_param} {package_root} {package_param} {package} {files}
3.77 +PACKAGE_DELIMITER=.
3.78 +ERROR_EXPRESSION=^([^ ]+):([0-9]+): (.*)
3.79 +FILE_POSITION=1
3.80 +LINE_POSITION=2
3.81 +COLUMN_POSITION=-1
3.82 +MESSAGE_POSITION=3
3.83 +
3.84 +
3.85 +# added for implementation generator
3.86 +
3.87 +#ImplBase aproach
3.88 +
3.89 +IMPLBASE_IMPL_PREFIX=
3.90 +IMPLBASE_IMPL_POSTFIX=Impl
3.91 +EXT_CLASS_PREFIX=_
3.92 +EXT_CLASS_POSTFIX=ImplBase
3.93 +
3.94 +#TIE aproach
3.95 +TIE_IMPL_PREFIX=
3.96 +TIE_IMPL_POSTFIX=ImplTIE
3.97 +IMPL_INT_PREFIX=_
3.98 +IMPL_INT_POSTFIX=Operations
3.99 +
3.100 +
3.101 +
4.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
4.2 +++ b/corba/tojar/org/netbeans/modules/corba/resources/impls.jar/CORBA/orbacus-for-windows.properties Tue Apr 25 10:01:37 2000 +0000
4.3 @@ -0,0 +1,102 @@
4.4 +# Sun Public License Notice
4.5 +#
4.6 +# The contents of this file are subject to the Sun Public License
4.7 +# Version 1.0 (the "License"). You may not use this file except in
4.8 +# compliance with the License. A copy of the License is available at
4.9 +# http://www.sun.com/
4.10 +#
4.11 +# The Original Code is NetBeans. The Initial Developer of the Original
4.12 +# Code is Sun Microsystems, Inc. Portions Copyright 1997-2001 Sun
4.13 +# Microsystems, Inc. All Rights Reserved.
4.14 +
4.15 +CTL_NAME=ORBacus for Java 3.1.x for Windows
4.16 +
4.17 +IMPORT=\
4.18 +import org.omg.CORBA.*;\n\
4.19 +import java.io.*;\n\
4.20 +import java.util.*;\n
4.21 +
4.22 +IMPORT_NS=\
4.23 +import org.omg.CORBA.*;\n\
4.24 +import java.io.*;\n\
4.25 +import java.util.*;\n\
4.26 +import org.omg.CosNaming.*;\n\
4.27 +import org.omg.CosNaming.NamingContextPackage.*;\n
4.28 +
4.29 +SETTINGS_ORB_PROPERTIES=\
4.30 + // setting system properties is necessary in Java 1.2\n Properties props = System.getProperties ();\n props.put ("org.omg.CORBA.ORBClass", "com.ooc.CORBA.ORB");\n props.put ("org.omg.CORBA.ORBSingletonClass", "com.ooc.CORBA.ORBSingleton");\n System.setProperties (props);\n
4.31 +
4.32 +ORB_SERVER_INIT=\
4.33 + // create ORB and BOA\n ORB orb = ORB.init (args, props);\n BOA boa = ((com.ooc.CORBA.ORB)orb).BOA_init (args, props);\n\n //\n // add code to instantiate your object implementation here\n
4.34 +
4.35 +ORB_CLIENT_INIT=\
4.36 + // create ORB\n ORB orb = ORB.init (args, props);\n
4.37 +
4.38 +ORB_OBJECT_ACTIVATION=//ORBacus object activation
4.39 +
4.40 +ORB_SERVER_RUN=\
4.41 + boa.impl_is_ready (null);\n
4.42 +
4.43 +#SERVER_NS=\
4.44 + //this server will use Naming Service\n org.omg.CORBA.Object o1 = null;\n try {\n o1 = orb.resolve_initial_references("NameService");\n } catch (org.omg.CORBA.ORBPackage.InvalidName ex) {\n System.out.println ("Can't binding to NameService");\n System.exit (1);\n }\n NamingContext nc = NamingContextHelper.narrow(o1);\n\n if (nc == null) {\n System.out.println ("Naming Context is null!!!");\n System.exit (1);\n }\n\n try {\n //\n // Create and bind Naming Contexts\n //\n NameComponent[] nc1Name = new NameComponent[1];\n nc1Name[0] = new NameComponent();\n nc1Name[0].id = "<name of your context>";\n nc1Name[0].kind = "";\n NamingContext nc1 = nc.bind_new_context(nc1Name);\n //\n // Bind names with the Naming Service\n //\n NameComponent[] aName = new NameComponent[2];\n aName[0] = new NameComponent();\n aName[0].id = "<name of your context>";\n aName[0].kind = "";\n aName[1] = new NameComponent ();\n aName[1].id = "<name of your server>";\n aName[1].kind = "";\n nc.bind(aName, /* place your object implementation here */);\n } catch (Exception e) {\n e.printStackTrace ();\n }\n
4.45 +
4.46 +SERVER_NS=\
4.47 + //this server will use Naming Service\n org.omg.CORBA.Object o1 = null;\n try {\n o1 = orb.resolve_initial_references("NameService");\n } catch (org.omg.CORBA.ORBPackage.InvalidName ex) {\n System.out.println ("Can't binding to NameService");\n System.exit (1);\n }\n NamingContext nc = NamingContextHelper.narrow(o1);\n\n if (nc == null) {\n System.out.println ("Naming Context is null!!!");\n System.exit (1);\n }\n\n try {\n //\n // Create and bind Naming Contexts\n //\n //paste code retrieved using the Copy Server Code action (on a context node in the Naming Service Browser) here \n boolean already_bound = false;\n NameComponent[] nc1Name = new NameComponent[1];\n NamingContext nc1 = null;\n for (int i=0; i<hierarchy_of_contexts.length / 2; i++) {\n nc1Name[0] = new NameComponent();\n nc1Name[0].id = hierarchy_of_contexts[i*2];\n nc1Name[0].kind = hierarchy_of_contexts[i*2+1];\n try {\n nc1 = nc.bind_new_context (nc1Name);\n nc = nc1;\n } catch (org.omg.CosNaming.NamingContextPackage.AlreadyBound e) {\n already_bound = true;\n }\n if (already_bound) {\n try {\n org.omg.CORBA.Object o = nc.resolve (nc1Name);\n nc1 = NamingContextHelper.narrow (o);\n if (nc1 != null)\n nc = nc1;\n already_bound = false;\n } catch (Exception e) {\n e.printStackTrace ();\n }\n }\n }\n \n //\n // Bind names with the Naming Service\n //\n NameComponent[] aName = new NameComponent[1];\n aName[0] = new NameComponent ();\n aName[0].id = name_of_server[0];\n aName[0].kind = name_of_server[1];\n nc.bind(aName, /* place here name of servant variable */);\n } catch (Exception e) {\n e.printStackTrace ();\n }\n
4.48 +
4.49 +SERVER_IOR_TO_FILE=// IOR will be written to file <file_name>\n String ior = orb.object_to_string (/* add your object implementation here */);\n try {\n FileWriter file = new java.io.FileWriter("<file_name>");\n PrintWriter pfile=new java.io.PrintWriter(file);\n pfile.println (ior);\n pfile.flush();\n pfile.close();\n } catch (IOException ex) {\n System.out.println("file error");\n }\n
4.50 +
4.51 +SERVER_IOR_TO_OUTPUT=//IOR will be written to standard output\n System.out.println (orb.object_to_string (/* place here your object implementation */));\n
4.52 +
4.53 +SERVER_BINDER=//ORBacus for Java 3.1.x proprietary binding\n ((com.ooc.CORBA.ORB)orb).connect(/* place your object implementation here */, "<name of your server>");
4.54 +
4.55 +
4.56 +CLIENT_NS=\
4.57 + //client will use Naming Service\n org.omg.CORBA.Object o1 = null;\n try {\n o1 = orb.resolve_initial_references("NameService");\n } catch (org.omg.CORBA.ORBPackage.InvalidName ex) {\n System.err.println("Can't bind to Naming Service");\n System.exit(0);\n }\n if (o1 == null) {\n System.err.println("Naming Service is a nil object reference");\n System.exit(0);\n }\n NamingContext nc = NamingContextHelper.narrow (o1);\n if (nc == null) {\n System.err.println("Naming Service is not a NamingContext object reference");\n System.exit(0);\n }\n org.omg.CORBA.Object obj = null;\n try {\n //\n // Resolve names with the Naming Service\n //\n // paste code retrieved using the Copy Client Code action (on an object node in the Naming Service Browser) here \n NameComponent[] aName = new NameComponent[client_name_hierarchy.length / 2];\n for (int i=0; i<(client_name_hierarchy.length / 2); i++) {\n aName[i] = new NameComponent();\n aName[i].id = client_name_hierarchy[i*2];\n aName[i].kind = client_name_hierarchy[i*2+1];\n }\n obj = nc.resolve (aName);\n } catch (Exception e) {\n e.printStackTrace ();\n }\n // place narrowing of your object here\n // something like: <class> <name> = <class>Helper.narrow (obj);\n // if (<name> == null) throw new RuntimeException ();\n\n
4.58 +
4.59 +
4.60 +
4.61 +CLIENT_IOR_FROM_FILE=\
4.62 + //IOR will be read from file <file_name>\n org.omg.CORBA.Object obj = null;\n try {\n FileReader file = new java.io.FileReader("<file_name>");\n BufferedReader input = new java.io.BufferedReader(file);\n String target = input.readLine();\n input.close();\n obj = orb.string_to_object(target);\n } catch (IOException ex) {\n System.out.println("file error");\n System.exit(0);\n }\n // add your code narrowing here\n // something like: <class> <name> = <class>Helper.narrow (obj);\n // if (<name> == null) throw new RuntimeException ();\n
4.63 +
4.64 +
4.65 +CLIENT_IOR_FROM_INPUT=\
4.66 + //IOR will be read from standard input\n String ior = null;\n try {\n InputStreamReader dataIn = new InputStreamReader(System.in);\n BufferedReader in = new BufferedReader(dataIn);\n ior = in.readLine();\n } catch (IOException e) {\n System.out.println (e);\n }\n org.omg.CORBA.Object obj = orb.string_to_object (ior);\n if (obj == null)\n throw new RuntimeException ();\n // add your code here\n // something like: <class> <name> = <class>Helper.narrow (obj);\n // if (<name> == null) throw new RuntimeException ();\n
4.67 +
4.68 +
4.69 +
4.70 +CLIENT_BINDER=//ORBacus for Java 3.1.x proprietary client binding\n // get server object from URL\n //\n String url = "iiop://<host where server runs>:<port where server listens>/<name of your object implementation>";\n org.omg.CORBA.Object obj = orb.string_to_object (url);\n if (obj == null)\n throw new RuntimeException();\n // add your code here\n // something like: <class> <name> = <class>Helper.narrow (obj);\n // if (<name> == null) throw RuntimeException ();\n
4.71 +
4.72 +
4.73 +
4.74 +
4.75 +TIE_PARAM=--tie
4.76 +DIR_PARAM=--output-dir
4.77 +PACKAGE_PARAM=--package
4.78 +COMPILER=jidl {params} {dir_param} {package_root} {package_param} {package} {files}
4.79 +PACKAGE_DELIMITER=.
4.80 +##ERROR_EXPRESSION=^([^ ]+):([0-9]+): (.*)
4.81 +ERROR_EXPRESSION=^([^ ]+)\\(([0-9]+)\\): (.*)
4.82 +FILE_POSITION=1
4.83 +LINE_POSITION=2
4.84 +COLUMN_POSITION=-1
4.85 +MESSAGE_POSITION=3
4.86 +
4.87 +
4.88 +# added for implementation generator
4.89 +
4.90 +#ImplBase aproach
4.91 +
4.92 +IMPLBASE_IMPL_PREFIX=
4.93 +IMPLBASE_IMPL_POSTFIX=Impl
4.94 +EXT_CLASS_PREFIX=_
4.95 +EXT_CLASS_POSTFIX=ImplBase
4.96 +
4.97 +#TIE aproach
4.98 +TIE_IMPL_PREFIX=
4.99 +TIE_IMPL_POSTFIX=ImplTIE
4.100 +IMPL_INT_PREFIX=
4.101 +IMPL_INT_POSTFIX=Operations
4.102 +
4.103 +
4.104 +
4.105 +
5.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
5.2 +++ b/corba/tojar/org/netbeans/modules/corba/resources/impls.jar/CORBA/orbacus.properties Tue Apr 25 10:01:37 2000 +0000
5.3 @@ -0,0 +1,103 @@
5.4 +# Sun Public License Notice
5.5 +#
5.6 +# The contents of this file are subject to the Sun Public License
5.7 +# Version 1.0 (the "License"). You may not use this file except in
5.8 +# compliance with the License. A copy of the License is available at
5.9 +# http://www.sun.com/
5.10 +#
5.11 +# The Original Code is NetBeans. The Initial Developer of the Original
5.12 +# Code is Sun Microsystems, Inc. Portions Copyright 1997-2001 Sun
5.13 +# Microsystems, Inc. All Rights Reserved.
5.14 +
5.15 +CTL_NAME=ORBacus for Java 3.1.x
5.16 +
5.17 +IMPORT=\
5.18 +import org.omg.CORBA.*;\n\
5.19 +import java.io.*;\n\
5.20 +import java.util.*;\n
5.21 +
5.22 +IMPORT_NS=\
5.23 +import org.omg.CORBA.*;\n\
5.24 +import java.io.*;\n\
5.25 +import java.util.*;\n\
5.26 +import org.omg.CosNaming.*;\n\
5.27 +import org.omg.CosNaming.NamingContextPackage.*;\n
5.28 +
5.29 +SETTINGS_ORB_PROPERTIES=\
5.30 + // setting system properties is necessary in order to use Orbacus in Java 1.2\n Properties props = System.getProperties ();\n props.put ("org.omg.CORBA.ORBClass", "com.ooc.CORBA.ORB");\n props.put ("org.omg.CORBA.ORBSingletonClass", "com.ooc.CORBA.ORBSingleton");\n System.setProperties (props);\n
5.31 +
5.32 +ORB_SERVER_INIT=\
5.33 + // create ORB and BOA\n ORB orb = ORB.init (args, props);\n BOA boa = ((com.ooc.CORBA.ORB)orb).BOA_init (args, props);\n\n //\n // add your creating of object implementation here\n
5.34 +
5.35 +ORB_CLIENT_INIT=\
5.36 + // create ORB\n ORB orb = ORB.init (args, props);\n
5.37 +
5.38 +ORB_OBJECT_ACTIVATION=//ORBacus object activation
5.39 +
5.40 +ORB_SERVER_RUN=\
5.41 + boa.impl_is_ready (null);\n
5.42 +
5.43 +#SERVER_NS=\
5.44 + //this server will use Naming Service\n org.omg.CORBA.Object o1 = null;\n try {\n o1 = orb.resolve_initial_references("NameService");\n } catch (org.omg.CORBA.ORBPackage.InvalidName ex) {\n System.out.println ("Can't binding to NameService");\n System.exit (1);\n }\n NamingContext nc = NamingContextHelper.narrow(o1);\n\n if (nc == null) {\n System.out.println ("Naming Context is null!!!");\n System.exit (1);\n }\n\n try {\n //\n // Create and bind Naming Contexts\n //\n NameComponent[] nc1Name = new NameComponent[1];\n nc1Name[0] = new NameComponent();\n nc1Name[0].id = "<name of your context>";\n nc1Name[0].kind = "";\n NamingContext nc1 = nc.bind_new_context(nc1Name);\n //\n // Bind names with the Naming Service\n //\n NameComponent[] aName = new NameComponent[2];\n aName[0] = new NameComponent();\n aName[0].id = "<name of your context>";\n aName[0].kind = "";\n aName[1] = new NameComponent ();\n aName[1].id = "<name of your server>";\n aName[1].kind = "";\n nc.bind(aName, /* place your object implementation here */);\n } catch (Exception e) {\n e.printStackTrace ();\n }\n
5.45 +
5.46 +SERVER_NS=\
5.47 + //this server will use Naming Service\n org.omg.CORBA.Object o1 = null;\n try {\n o1 = orb.resolve_initial_references("NameService");\n } catch (org.omg.CORBA.ORBPackage.InvalidName ex) {\n System.out.println ("Can't binding to NameService");\n System.exit (1);\n }\n NamingContext nc = NamingContextHelper.narrow(o1);\n\n if (nc == null) {\n System.out.println ("Naming Context is null!!!");\n System.exit (1);\n }\n\n try {\n //\n // Create and bind Naming Contexts\n //\n // paste code retrieved using the Copy Server Code action (on a context node in the Naming Service Browser) here \n boolean already_bound = false;\n NameComponent[] nc1Name = new NameComponent[1];\n NamingContext nc1 = null;\n for (int i=0; i<hierarchy_of_contexts.length / 2; i++) {\n nc1Name[0] = new NameComponent();\n nc1Name[0].id = hierarchy_of_contexts[i*2];\n nc1Name[0].kind = hierarchy_of_contexts[i*2+1];\n try {\n nc1 = nc.bind_new_context (nc1Name);\n nc = nc1;\n } catch (org.omg.CosNaming.NamingContextPackage.AlreadyBound e) {\n already_bound = true;\n }\n if (already_bound) {\n try {\n org.omg.CORBA.Object o = nc.resolve (nc1Name);\n nc1 = NamingContextHelper.narrow (o);\n if (nc1 != null)\n nc = nc1;\n already_bound = false;\n } catch (Exception e) {\n e.printStackTrace ();\n }\n }\n }\n \n //\n // Bind names with the Naming Service\n //\n NameComponent[] aName = new NameComponent[1];\n aName[0] = new NameComponent ();\n aName[0].id = name_of_server[0];\n aName[0].kind = name_of_server[1];\n nc.bind(aName, /* place here name of servant variable */);\n } catch (Exception e) {\n e.printStackTrace ();\n }\n
5.48 +
5.49 +SERVER_IOR_TO_FILE=// IOR will be written to file <file_name>\n String ior = orb.object_to_string (/* add your object implementation here */);\n try {\n FileWriter file = new java.io.FileWriter("<file_name>");\n PrintWriter pfile=new java.io.PrintWriter(file);\n pfile.println (ior);\n pfile.flush();\n pfile.close();\n } catch (IOException ex) {\n System.out.println("file error");\n }\n
5.50 +
5.51 +SERVER_IOR_TO_OUTPUT=//IOR will be written to standard output\n System.out.println (orb.object_to_string (/* place here your object implementation */));\n
5.52 +
5.53 +SERVER_BINDER=//ORBacus for Java 3.1.x proprietary binding\n ((com.ooc.CORBA.ORB)orb).connect(/* place here your object implementation */, "<name of your server>");
5.54 +
5.55 +
5.56 +CLIENT_NS=\
5.57 + //client will use Naming Service\n org.omg.CORBA.Object o1 = null;\n try {\n o1 = orb.resolve_initial_references("NameService");\n } catch (org.omg.CORBA.ORBPackage.InvalidName ex) {\n System.err.println("Can't bind to Naming Service");\n System.exit(0);\n }\n if (o1 == null) {\n System.err.println("Naming Service is a nil object reference");\n System.exit(0);\n }\n NamingContext nc = NamingContextHelper.narrow (o1);\n if (nc == null) {\n System.err.println("Naming Service is not a NamingContext object reference");\n System.exit(0);\n }\n org.omg.CORBA.Object obj = null;\n try {\n //\n // Resolve names with the Naming Service\n //\n // paste code retrieved using the Copy Client Code action (on an object node in the Naming Service Browser) here \n NameComponent[] aName = new NameComponent[client_name_hierarchy.length / 2];\n for (int i=0; i<(client_name_hierarchy.length / 2); i++) {\n aName[i] = new NameComponent();\n aName[i].id = client_name_hierarchy[i*2];\n aName[i].kind = client_name_hierarchy[i*2+1];\n }\n obj = nc.resolve (aName);\n } catch (Exception e) {\n e.printStackTrace ();\n }\n // place narrowing of your object here\n // something like: <class> <name> = <class>Helper.narrow (obj);\n // if (<name> == null) throw new RuntimeException ();\n\n
5.58 +
5.59 +
5.60 +
5.61 +CLIENT_IOR_FROM_FILE=\
5.62 + //IOR will be read from file <file_name>\n org.omg.CORBA.Object obj = null;\n try {\n FileReader file = new java.io.FileReader("<file_name>");\n BufferedReader input = new java.io.BufferedReader(file);\n String target = input.readLine();\n input.close();\n obj = orb.string_to_object(target);\n } catch (IOException ex) {\n System.out.println("file error");\n System.exit(0);\n }\n // add your code narrowing here\n // something like: <class> <name> = <class>Helper.narrow (obj);\n // if (<name> == null) throw new RuntimeException ();\n
5.63 +
5.64 +
5.65 +CLIENT_IOR_FROM_INPUT=\
5.66 + //IOR will be read from standard input\n String ior = null;\n try {\n InputStreamReader dataIn = new InputStreamReader(System.in);\n BufferedReader in = new BufferedReader(dataIn);\n ior = in.readLine();\n } catch (IOException e) {\n System.out.println (e);\n }\n org.omg.CORBA.Object obj = orb.string_to_object (ior);\n if (obj == null)\n throw new RuntimeException ();\n // add your code here\n // something like: <class> <name> = <class>Helper.narrow (obj);\n // if (<name> == null) throw new RuntimeException ();\n
5.67 +
5.68 +
5.69 +
5.70 +CLIENT_BINDER=//ORBacus for Java 3.1.x proprietary client binding\n // get server object from URL\n //\n String url = "iiop://<host where the server runs>:<port where the server listens>/<name of your object implementation>";\n org.omg.CORBA.Object obj = orb.string_to_object (url);\n if (obj == null)\n throw new RuntimeException();\n // add your code here\n // something like: <class> <name> = <class>Helper.narrow (obj);\n // if (<name> == null) throw RuntimeException ();\n
5.71 +
5.72 +
5.73 +
5.74 +
5.75 +TIE_PARAM=--tie
5.76 +DIR_PARAM=--output-dir
5.77 +PACKAGE_PARAM=--package
5.78 +COMPILER=jidl {params} {dir_param} {package_root} {package_param} {package} {files}
5.79 +PACKAGE_DELIMITER=.
5.80 +ERROR_EXPRESSION=^([^ ]+):([0-9]+): (.*)
5.81 +FILE_POSITION=1
5.82 +LINE_POSITION=2
5.83 +COLUMN_POSITION=-1
5.84 +MESSAGE_POSITION=3
5.85 +
5.86 +# added for implementation generator
5.87 +
5.88 +#ImplBase aproach
5.89 +
5.90 +IMPLBASE_IMPL_PREFIX=
5.91 +IMPLBASE_IMPL_POSTFIX=Impl
5.92 +EXT_CLASS_PREFIX=_
5.93 +EXT_CLASS_POSTFIX=ImplBase
5.94 +
5.95 +#TIE aproach
5.96 +TIE_IMPL_PREFIX=
5.97 +TIE_IMPL_POSTFIX=ImplTIE
5.98 +IMPL_INT_PREFIX=
5.99 +IMPL_INT_POSTFIX=Operations
5.100 +
5.101 +
5.102 +
5.103 +
5.104 +
5.105 +
5.106 +
6.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
6.2 +++ b/corba/tojar/org/netbeans/modules/corba/resources/impls.jar/CORBA/orbixweb.properties Tue Apr 25 10:01:37 2000 +0000
6.3 @@ -0,0 +1,105 @@
6.4 +# Sun Public License Notice
6.5 +#
6.6 +# The contents of this file are subject to the Sun Public License
6.7 +# Version 1.0 (the "License"). You may not use this file except in
6.8 +# compliance with the License. A copy of the License is available at
6.9 +# http://www.sun.com/
6.10 +#
6.11 +# The Original Code is NetBeans. The Initial Developer of the Original
6.12 +# Code is Sun Microsystems, Inc. Portions Copyright 1997-2001 Sun
6.13 +# Microsystems, Inc. All Rights Reserved.
6.14 +
6.15 +CTL_NAME=OrbixWeb 3.2
6.16 +
6.17 +IMPORT=\
6.18 +import IE.Iona.OrbixWeb._OrbixWeb;\n\
6.19 +import IE.Iona.OrbixWeb._CORBA;\n\
6.20 +import org.omg.CORBA.*;\n\
6.21 +import java.io.*;\n\
6.22 +import java.util.Properties;\n
6.23 +
6.24 +IMPORT_NS=\
6.25 +import IE.Iona.OrbixWeb._OrbixWeb;\n\
6.26 +import IE.Iona.OrbixWeb._CORBA;\n\
6.27 +import org.omg.CORBA.*;\n\
6.28 +import java.io.*;\n\
6.29 +import java.util.Properties;\n\
6.30 +import org.omg.CosNaming.*;\n\
6.31 +import org.omg.CosNaming.NamingContextPackage.*;\n
6.32 +
6.33 +SETTINGS_ORB_PROPERTIES=\
6.34 + // setting system properties is necessary to use OrbixWeb in Java 1.2\n Properties props = System.getProperties ();\n props.put ("org.omg.CORBA.ORBClass", "IE.Iona.OrbixWeb.CORBA.ORB");\n props.put ("org.omg.CORBA.ORBSingletonClass", "IE.Iona.OrbixWeb.CORBA.singletonORB");\n System.setProperties (props);
6.35 +
6.36 +ORB_SERVER_INIT=\
6.37 + // create ORB and BOA\n ORB orb = ORB.init (args, props);\n \n // add code to instantiate your object implementation here\n
6.38 +
6.39 +ORB_CLIENT_INIT=\
6.40 + // create ORB\n ORB orb = ORB.init (args, props);\n //\n
6.41 +
6.42 +ORB_OBJECT_ACTIVATION=
6.43 +ORB_SERVER_RUN=
6.44 +
6.45 +SERVER_NS=//Orbix Server NS
6.46 +SERVER_IOR_TO_FILE=//Orbix IOR to file
6.47 +SERVER_IOR_TO_OUTPUT=//Orbix IOR to output
6.48 +
6.49 +SERVER_NS=\
6.50 + //Connecting object\n orb.connect(/* place your object implementation here*/);\n //this server will use Naming Service\n org.omg.CORBA.Object o1 = null;\n try {\n o1 = orb.resolve_initial_references("NameService");\n } catch (org.omg.CORBA.ORBPackage.InvalidName ex) {\n System.out.println ("Can't binding to NameService");\n System.exit (1);\n }\n NamingContext nc = NamingContextHelper.narrow(o1);\n\n if (nc == null) {\n System.out.println ("Naming Context is null!!!");\n System.exit (1);\n }\n\n try {\n //\n // Create and bind Naming Contexts\n //\n // paste code retrieved using the Copy Server Code action (on a context node in the Naming Service Browser) here \n boolean already_bound = false;\n NameComponent[] nc1Name = new NameComponent[1];\n NamingContext nc1 = null;\n for (int i=0; i<hierarchy_of_contexts.length / 2; i++) {\n nc1Name[0] = new NameComponent();\n nc1Name[0].id = hierarchy_of_contexts[i*2];\n nc1Name[0].kind = hierarchy_of_contexts[i*2+1];\n try {\n nc1 = nc.bind_new_context (nc1Name);\n nc = nc1;\n } catch (org.omg.CosNaming.NamingContextPackage.AlreadyBound e) {\n already_bound = true;\n }\n if (already_bound) {\n try {\n org.omg.CORBA.Object o = nc.resolve (nc1Name);\n nc1 = NamingContextHelper.narrow (o);\n if (nc1 != null)\n nc = nc1;\n already_bound = false;\n } catch (Exception e) {\n e.printStackTrace ();\n }\n }\n }\n \n //\n // Bind names with the Naming Service\n //\n NameComponent[] aName = new NameComponent[1];\n aName[0] = new NameComponent ();\n aName[0].id = name_of_server[0];\n aName[0].kind = name_of_server[1];\n nc.bind(aName, /* place here name of servant variable */);\n } catch (Exception e) {\n e.printStackTrace ();\n }\n java.lang.Object sync = new java.lang.Object();\n synchronized (sync){\n try{\n sync.wait();\n }catch(InterruptedException ie){}\n }
6.51 +
6.52 +SERVER_IOR_TO_FILE= //Connecting object\n orb.connect(/* place here your object implementation*/);\n // IOR will be written to file <file_name>\n String ior = orb.object_to_string (/* place here your object implementation */);\n try {\n FileWriter file = new java.io.FileWriter("<file_name>");\n PrintWriter pfile=new java.io.PrintWriter(file);\n pfile.println (ior);\n pfile.flush();\n pfile.close();\n } catch (IOException ex) {\n System.out.println("file error");\n }\n java.lang.Object sync = new java.lang.Object();\n synchronized (sync){\n try{\n sync.wait();\n }catch(InterruptedException ie){}\n }\n
6.53 +
6.54 +SERVER_IOR_TO_OUTPUT= //Connecting object\n orb.connect(/* place here your object implementation*/);\n //IOR will be written to standard output\n System.out.println (orb.object_to_string (/* place here your object implementation */));\n java.lang.Object sync = new java.lang.Object();\n synchronized (sync){\n try{\n sync.wait();\n }catch(InterruptedException ie){}\n }\n
6.55 +
6.56 +SERVER_BINDER=//OrbixWeb proprietary server binder\n // to _CORBA.Orbix.impl_is_ready (); -- insert server name\n // (object implemenattion name) between bracket - for example:\n // _CORBA.Orbix.impl_is_ready ("HelloWorld");\n try {\n _CORBA.Orbix.impl_is_ready ("<server name>");\n } catch (SystemException e) {\n e.printStackTrace ();\n }
6.57 +
6.58 +CLIENT_NS=//Orbix Client NS
6.59 +CLIENT_IOR_FROM_FILE=//OrbixWeb IOR from file
6.60 +CLIENT_IOR_FROM_INPUT=//Orbix IOR from input
6.61 +
6.62 +CLIENT_NS=\
6.63 + //client will use the Naming Service\n org.omg.CORBA.Object o1 = null;\n try {\n o1 = orb.resolve_initial_references("NameService");\n } catch (org.omg.CORBA.ORBPackage.InvalidName ex) {\n System.err.println("Can't bind to Naming Service");\n System.exit(0);\n }\n if (o1 == null) {\n System.err.println("Naming Service is a nil object reference");\n System.exit(0);\n }\n NamingContext nc = NamingContextHelper.narrow (o1);\n if (nc == null) {\n System.err.println("Naming Service is not a NamingContext object reference");\n System.exit(0);\n }\n org.omg.CORBA.Object obj = null;\n try {\n //\n // Resolve names with the Naming Service\n //\n // paste code retrieved using the Copy Client Code action (on an object node in the Naming Service Browser) here\n NameComponent[] aName = new NameComponent[client_name_hierarchy.length / 2];\n for (int i=0; i<(client_name_hierarchy.length / 2); i++) {\n aName[i] = new NameComponent();\n aName[i].id = client_name_hierarchy[i*2];\n aName[i].kind = client_name_hierarchy[i*2+1];\n }\n obj = nc.resolve (aName);\n } catch (Exception e) {\n e.printStackTrace ();\n }\n // place narrowing of your object here\n // something like: <class> <name> = <class>Helper.narrow (obj);\n // if (<name> == null) throw new RuntimeException ();\n\n
6.64 +
6.65 +CLIENT_IOR_FROM_FILE=\
6.66 + //IOR will be read from file <file_name>\n org.omg.CORBA.Object obj = null;\n try {\n FileReader file = new java.io.FileReader("<file_name>");\n BufferedReader input = new java.io.BufferedReader(file);\n String target = input.readLine();\n input.close();\n obj = orb.string_to_object(target);\n } catch (IOException ex) {\n System.out.println("file error");\n System.exit(0);\n }\n // add your code narrowing here\n // something like: <class> <name> = <class>Helper.narrow (obj);\n // if (<name> == null) throw new RuntimeException ();\n
6.67 +
6.68 +
6.69 +CLIENT_IOR_FROM_INPUT=\
6.70 + //IOR will be read from standard input\n String ior = null;\n try {\n BufferedReader in = new BufferedReader(new InputStreamReader(System.in));\n ior = in.readLine();\n } catch (IOException e) {\n System.out.println (e);\n }\n org.omg.CORBA.Object obj = orb.string_to_object (ior);\n if (obj == null)\n throw new RuntimeException ();\n // add your code here\n // something like: <class> <name> = <class>Helper.narrow (obj);\n // if (<name> == null) throw new RuntimeException ();\n
6.71 +
6.72 +CLIENT_BINDER=//OrbixWeb Client binder binding\n try {\n // use <class> <name> = <class>Helper.bind (":<name>", args[0]);\n // args[0] is name of host where server run.\n } catch (SystemException e) {\n e.printStackTrace ();\n }
6.73 +
6.74 +TIE_PARAM=
6.75 +
6.76 +DIR_PARAM=-jO
6.77 +PACKAGE_PARAM=-jP
6.78 +COMPILER=idlj {params} {dir_param} {package_root} {package_param} {package} {files}
6.79 +PACKAGE_DELIMITER=.
6.80 +
6.81 +ERROR_EXPRESSION=^IDL Compiler: ([^ ]+)\n^([0-9]+):(.*): (.*)
6.82 +FILE_POSITION=-1
6.83 +LINE_POSITION=1
6.84 +COLUMN_POSITION=-1
6.85 +MESSAGE_POSITION=3
6.86 +
6.87 +#ERROR_EXPRESSION=IDL Compiler: (.*)$||^([0-9]+):(.*)$
6.88 +#FILE_POSITION=1
6.89 +#LINE_POSITION=1
6.90 +#COLUMN_POSITION=-1
6.91 +#MESSAGE_POSITION=2
6.92 +
6.93 +
6.94 +# added for implementation generator
6.95 +
6.96 +#ImplBase aproach
6.97 +
6.98 +IMPLBASE_IMPL_PREFIX=
6.99 +IMPLBASE_IMPL_POSTFIX=Impl
6.100 +EXT_CLASS_PREFIX=_
6.101 +EXT_CLASS_POSTFIX=ImplBase
6.102 +
6.103 +#TIE aproach
6.104 +TIE_IMPL_PREFIX=
6.105 +TIE_IMPL_POSTFIX=ImplTIE
6.106 +IMPL_INT_PREFIX=_
6.107 +IMPL_INT_POSTFIX=Operations
6.108 +
7.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
7.2 +++ b/corba/tojar/org/netbeans/modules/corba/resources/impls.jar/CORBA/visibroker.properties Tue Apr 25 10:01:37 2000 +0000
7.3 @@ -0,0 +1,80 @@
7.4 +# Sun Public License Notice
7.5 +#
7.6 +# The contents of this file are subject to the Sun Public License
7.7 +# Version 1.0 (the "License"). You may not use this file except in
7.8 +# compliance with the License. A copy of the License is available at
7.9 +# http://www.sun.com/
7.10 +#
7.11 +# The Original Code is NetBeans. The Initial Developer of the Original
7.12 +# Code is Sun Microsystems, Inc. Portions Copyright 1997-2001 Sun
7.13 +# Microsystems, Inc. All Rights Reserved.
7.14 +
7.15 +CTL_NAME=VisiBroker for Java 3.4
7.16 +
7.17 +IMPORT=\
7.18 +import org.omg.CORBA.*;\n\
7.19 +import java.io.*;\n\
7.20 +import java.util.*;\n
7.21 +
7.22 +IMPORT_NS=\
7.23 +import org.omg.CORBA.*;\n\
7.24 +import java.io.*;\n\
7.25 +import java.util.*;\n\
7.26 +import org.omg.CosNaming.*;\n\
7.27 +import org.omg.CosNaming.NamingContextPackage.*;\n
7.28 +
7.29 +SETTINGS_ORB_PROPERTIES=\
7.30 + // setting system properties is necessary for use with VISIBROKER for Java in Java 1.2\n Properties props = System.getProperties ();\n props.put ("org.omg.CORBA.ORBClass", "com.visigenic.vbroker.orb.ORB");\n props.put ("org.omg.CORBA.ORBSingletonClass", "com.visigenic.vbroker.orb.ORB");\n System.setProperties (props);\n
7.31 +
7.32 +ORB_SERVER_INIT=\
7.33 + // create ORB and BOA\n ORB orb = ORB.init (args, null);\n BOA boa = ((com.visigenic.vbroker.orb.ORB)orb).BOA_init ();\n\n //\n // add code to create your object implementation here\n
7.34 +
7.35 +ORB_CLIENT_INIT=\
7.36 + // create ORB\n ORB orb = ORB.init (args, null);\n
7.37 +
7.38 +ORB_OBJECT_ACTIVATION=boa.obj_is_ready (/* add your object implementation here */);
7.39 +ORB_SERVER_RUN=boa.impl_is_ready ();
7.40 +
7.41 +SERVER_NS=//this server will use Naming Service\n org.omg.CORBA.Object o1 = null;\n try {\n o1 = orb.resolve_initial_references("NameService");\n } catch (org.omg.CORBA.ORBPackage.InvalidName ex) {\n System.out.println ("Can't binding to NameService");\n System.exit (1);\n }\n NamingContext nc = NamingContextHelper.narrow(o1);\n\n if (nc == null) {\n System.out.println ("Naming Context is null!!!");\n System.exit (1);\n }\n\n try {\n //\n // Create and bind Naming Contexts\n //\n // paste code retrieved using the Copy Server Code action (on a context node in the Naming Service Browser) here \n boolean already_bound = false;\n NameComponent[] nc1Name = new NameComponent[1];\n NamingContext nc1 = null;\n for (int i=0; i<hierarchy_of_contexts.length / 2; i++) {\n nc1Name[0] = new NameComponent();\n nc1Name[0].id = hierarchy_of_contexts[i*2];\n nc1Name[0].kind = hierarchy_of_contexts[i*2+1];\n try {\n nc1 = nc.bind_new_context (nc1Name);\n nc = nc1;\n } catch (org.omg.CosNaming.NamingContextPackage.AlreadyBound e) {\n already_bound = true;\n }\n if (already_bound) {\n try {\n org.omg.CORBA.Object o = nc.resolve (nc1Name);\n nc1 = NamingContextHelper.narrow (o);\n if (nc1 != null)\n nc = nc1;\n already_bound = false;\n } catch (Exception e) {\n e.printStackTrace ();\n }\n }\n }\n \n //\n // Bind names with the Naming Service\n //\n NameComponent[] aName = new NameComponent[1];\n aName[0] = new NameComponent ();\n aName[0].id = name_of_server[0];\n aName[0].kind = name_of_server[1];\n nc.bind(aName, /* place here name of servant variable */);\n } catch (Exception e) {\n e.printStackTrace ();\n }\n
7.42 +SERVER_IOR_TO_FILE=// IOR will be written to file <file_name>\n String ior = orb.object_to_string (/* add your object implementation here */);\n try {\n FileWriter file = new java.io.FileWriter("<file_name>");\n PrintWriter pfile=new java.io.PrintWriter(file);\n pfile.println (ior);\n pfile.flush();\n pfile.close();\n } catch (IOException ex) {\n System.out.println("file error");\n }\n
7.43 +SERVER_IOR_TO_OUTPUT=//IOR will be written to standard output\n System.out.println (orb.object_to_string (/* place here your object implementation */));\n
7.44 +SERVER_BINDER=// server will use VisiBroker proprietary binder\n // you must instantiate your implemenattion like this:\n // HelloWorld hello = new HelloWorldImpl ("HelloWorld");\n // in brackets is name which is after starting visible from implementation repository\n
7.45 +
7.46 +CLIENT_NS=//client will use Naming Service\n org.omg.CORBA.Object o1 = null;\n try {\n o1 = orb.resolve_initial_references("NameService");\n } catch (org.omg.CORBA.ORBPackage.InvalidName ex) {\n System.err.println("Can't bind to Naming Service");\n System.exit(0);\n }\n if (o1 == null) {\n System.err.println("Naming Service is a nil object reference");\n System.exit(0);\n }\n NamingContext nc = NamingContextHelper.narrow (o1);\n if (nc == null) {\n System.err.println("Naming Service is not a NamingContext object reference");\n System.exit(0);\n }\n org.omg.CORBA.Object obj = null;\n try {\n //\n // Resolve names with the Naming Service\n //\n // paste code retrieved using the Copy Client Code action (on an object node in the Naming Service Browser) here \n NameComponent[] aName = new NameComponent[client_name_hierarchy.length / 2];\n for (int i=0; i<(client_name_hierarchy.length / 2); i++) {\n aName[i] = new NameComponent();\n aName[i].id = client_name_hierarchy[i*2];\n aName[i].kind = client_name_hierarchy[i*2+1];\n }\n obj = nc.resolve (aName);\n } catch (Exception e) {\n e.printStackTrace ();\n }\n // place narrowing of your object here\n // something like: <class> <name> = <class>Helper.narrow (obj);\n // if (<name> == null) throw new RuntimeException ();\n\n
7.47 +CLIENT_IOR_FROM_FILE=//IOR will be read from file <file_name>\n org.omg.CORBA.Object obj = null;\n try {\n FileReader file = new java.io.FileReader("<file_name>");\n BufferedReader input = new java.io.BufferedReader(file);\n String target = input.readLine();\n input.close();\n obj = orb.string_to_object(target);\n } catch (IOException ex) {\n System.out.println("file error");\n System.exit(0);\n }\n // add your code narrowing here\n // something like: <class> <name> = <class>Helper.narrow (obj);\n // if (<name> == null) throw new RuntimeException ();\n
7.48 +CLIENT_IOR_FROM_INPUT=//IOR will be read from standard input\n String ior = null;\n try {\n InputStreamReader dataIn = new InputStreamReader(System.in);\n BufferedReader in = new BufferedReader(dataIn);\n ior = in.readLine();\n } catch (IOException e) {\n System.out.println (e);\n }\n org.omg.CORBA.Object obj = orb.string_to_object (ior);\n if (obj == null)\n throw new RuntimeException ();\n // add your code here\n // something like: <class> <name> = <class>Helper.narrow (obj);\n // if (<name> == null) throw new RuntimeException ();\n
7.49 +CLIENT_BINDER=// client will use VisiBroker proprietary binder\n // you must bind to your object implementation\n // using code which looks like this:\n // HelloWorld hello = HelloWorldHelper.bind (orb, "HelloWorld");\n // then you can invoke the method: hello.say () etc.\n
7.50 +
7.51 +
7.52 +# VisiBroker generate tie based skeletons automatically
7.53 +TIE_PARAM=
7.54 +
7.55 +DIR_PARAM=-root_dir
7.56 +PACKAGE_PARAM=-package
7.57 +COMPILER=idl2java {params} {dir_param} {package_root} {package_param} {package} {files}
7.58 +PACKAGE_DELIMITER=.
7.59 +ERROR_EXPRESSION=^"([^ ]+)":([0-9]+): (.*)
7.60 +FILE_POSITION=1
7.61 +LINE_POSITION=2
7.62 +COLUMN_POSITION=-1
7.63 +MESSAGE_POSITION=3
7.64 +
7.65 +
7.66 +# added for implementation generator
7.67 +
7.68 +#ImplBase aproach
7.69 +
7.70 +IMPLBASE_IMPL_PREFIX=
7.71 +IMPLBASE_IMPL_POSTFIX=Impl
7.72 +EXT_CLASS_PREFIX=_
7.73 +EXT_CLASS_POSTFIX=ImplBase
7.74 +
7.75 +#TIE aproach
7.76 +TIE_IMPL_PREFIX=
7.77 +TIE_IMPL_POSTFIX=ImplTIE
7.78 +IMPL_INT_PREFIX=
7.79 +IMPL_INT_POSTFIX=Operations
7.80 +
7.81 +
7.82 +
7.83 +
8.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
8.2 +++ b/corba/tojar/org/netbeans/modules/corba/resources/templates.jar/CORBA/ClientMain.java Tue Apr 25 10:01:37 2000 +0000
8.3 @@ -0,0 +1,39 @@
8.4 +/*
8.5 + * Sun Public License Notice
8.6 + *
8.7 + * The contents of this file are subject to the Sun Public License
8.8 + * Version 1.0 (the "License"). You may not use this file except in
8.9 + * compliance with the License. A copy of the License is available at
8.10 + * http://www.sun.com/
8.11 + *
8.12 + * The Original Code is NetBeans. The Initial Developer of the Original
8.13 + * Code is Sun Microsystems, Inc. Portions Copyright 1997-2001 Sun
8.14 + * Microsystems, Inc. All Rights Reserved.
8.15 + */
8.16 +
8.17 +package Templates.CORBA;
8.18 +
8.19 +__ORB_IMPORT__
8.20 +/**
8.21 + *
8.22 + * @author __USER__
8.23 + * @version
8.24 + */
8.25 +public class ClientMain {
8.26 +
8.27 + /** Creates new __NAME__ */
8.28 + public ClientMain () {
8.29 + }
8.30 +
8.31 + /**
8.32 + * @param args the command line arguments
8.33 + */
8.34 + public static void main (String args[]) {
8.35 +
8.36 + __SETTINGS_ORB_PROPERTIES__
8.37 + __ORB_CLIENT_INIT__
8.38 +
8.39 + __ORB_CLIENT_BINDING__
8.40 + }
8.41 +
8.42 +}
9.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
9.2 +++ b/corba/tojar/org/netbeans/modules/corba/resources/templates.jar/CORBA/Empty.idl Tue Apr 25 10:01:37 2000 +0000
9.3 @@ -0,0 +1,6 @@
9.4 +//
9.5 +// __NAME__.idl
9.6 +//
9.7 +// Created on __DATE__, __TIME__
9.8 +// by __USER__
9.9 +//
10.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
10.2 +++ b/corba/tojar/org/netbeans/modules/corba/resources/templates.jar/CORBA/ServerMain.java Tue Apr 25 10:01:37 2000 +0000
10.3 @@ -0,0 +1,41 @@
10.4 +/*
10.5 + * Sun Public License Notice
10.6 + *
10.7 + * The contents of this file are subject to the Sun Public License
10.8 + * Version 1.0 (the "License"). You may not use this file except in
10.9 + * compliance with the License. A copy of the License is available at
10.10 + * http://www.sun.com/
10.11 + *
10.12 + * The Original Code is NetBeans. The Initial Developer of the Original
10.13 + * Code is Sun Microsystems, Inc. Portions Copyright 1997-2001 Sun
10.14 + * Microsystems, Inc. All Rights Reserved.
10.15 + */
10.16 +
10.17 +package Templates.CORBA;
10.18 +
10.19 +__ORB_IMPORT__
10.20 +/**
10.21 + *
10.22 + * @author __USER__
10.23 + * @version
10.24 + */
10.25 +public class ServerMain {
10.26 +
10.27 + /** Creates new __NAME__ */
10.28 + public ServerMain () {
10.29 + }
10.30 +
10.31 + /**
10.32 + * @param args the command line arguments
10.33 + */
10.34 + public static void main (String args[]) {
10.35 +
10.36 + __SETTINGS_ORB_PROPERTIES__
10.37 + __ORB_SERVER_INIT__
10.38 +
10.39 + __ORB_OBJECT_ACTIVATION__
10.40 + __ORB_SERVER_BINDING__
10.41 + __ORB_SERVER_RUN__
10.42 + }
10.43 +
10.44 +}
11.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
11.2 +++ b/corba/tojar/org/netbeans/modules/corba/resources/templates.jar/CORBA/Simple.idl Tue Apr 25 10:01:37 2000 +0000
11.3 @@ -0,0 +1,10 @@
11.4 +//
11.5 +// __NAME__.idl
11.6 +//
11.7 +// Created on __DATE__, __TIME__
11.8 +// by __USER__
11.9 +//
11.10 +
11.11 +interface __NAME__ {
11.12 +
11.13 +};
11.14 \ No newline at end of file
12.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
12.2 +++ b/jndi/tojar/org/netbeans/modules/jndi/templates/impls.jar/com_sun_jndi_cosnaming_CNCtxFactory.impl Tue Apr 25 10:01:37 2000 +0000
12.3 @@ -0,0 +1,7 @@
12.4 +# Cos Naming
12.5 +
12.6 +java.naming.factory.initial=com.sun.jndi.cosnaming.CNCtxFactory
12.7 +java.naming.provider.url=iiop://localhost:900
12.8 +java.naming.security.authentication=
12.9 +java.naming.security.principal=
12.10 +java.naming.security.credentials=
13.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
13.2 +++ b/jndi/tojar/org/netbeans/modules/jndi/templates/impls.jar/com_sun_jndi_fscontext_RefFSContextFactory.impl Tue Apr 25 10:01:37 2000 +0000
13.3 @@ -0,0 +1,7 @@
13.4 +#FILE SYSTEM IMPL
13.5 +
13.6 +java.naming.factory.initial=com.sun.jndi.fscontext.RefFSContextFactory
13.7 +java.naming.provider.url=file://
13.8 +java.naming.security.authentication=
13.9 +java.naming.security.principal=
13.10 +java.naming.security.credentials=
14.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
14.2 +++ b/jndi/tojar/org/netbeans/modules/jndi/templates/impls.jar/com_sun_jndi_ldap_LdapCtxFactory.impl Tue Apr 25 10:01:37 2000 +0000
14.3 @@ -0,0 +1,7 @@
14.4 +#FILE SYSTEM IMPL
14.5 +
14.6 +java.naming.factory.initial=com.sun.jndi.ldap.LdapCtxFactory
14.7 +java.naming.provider.url=ldap://
14.8 +java.naming.security.authentication=
14.9 +java.naming.security.principal=
14.10 +java.naming.security.credentials=
15.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
15.2 +++ b/jndi/tojar/org/netbeans/modules/jndi/templates/impls.jar/com_sun_jndi_nis_NISCtxFactory.impl Tue Apr 25 10:01:37 2000 +0000
15.3 @@ -0,0 +1,7 @@
15.4 +#FILE SYSTEM IMPL
15.5 +
15.6 +java.naming.factory.initial=com.sun.jndi.nis.NISCtxFactory
15.7 +java.naming.provider.url=nis://
15.8 +java.naming.security.authentication=
15.9 +java.naming.security.principal=
15.10 +java.naming.security.credentials=
16.1 --- /dev/null Thu Jan 01 00:00:00 1970 +0000
16.2 +++ b/jndi/tojar/org/netbeans/modules/jndi/templates/impls.jar/com_sun_jndi_rmi_registry_RegistryContextFactory.impl Tue Apr 25 10:01:37 2000 +0000
16.3 @@ -0,0 +1,7 @@
16.4 +#FILE SYSTEM IMPL
16.5 +
16.6 +java.naming.factory.initial=com.sun.jndi.rmi.registry.RegistryContextFactory
16.7 +java.naming.provider.url=rmi://localhost:1099
16.8 +java.naming.security.authentication=
16.9 +java.naming.security.principal=
16.10 +java.naming.security.credentials=