java app that needs reference to Naming and Notification - Visibroker how?

java app that needs reference to Naming and Notification - Visibroker how?

Post by Randy Kin » Wed, 22 Oct 2003 06:29:56


All,

Our java apps actually read the OrbInitRef parameter from a file, rather
that passing them throught the commandline. When we initialize the orb,
we create a java Properties that contains the initial references for
Naming an Notification.

This works great for Jacorb and Orbix, but it breaks for Visibroker.
Here are the example entries in our properties file, for Jacorb then
Visi.


# TAO
org.omg.CORBA.ORBInitRef.NameService=file:///<some
directory>/NameSingleton.ior
org.omg.CORBA.ORBInitRef.NotificationService=file:///<some
directory>/NotificationSingleton.ior


#Now for Visi
ORBInitRef=NameService=file:///<some directory>/NamingService.ior
ORBInitRef=NotificationService=corbaloc::<host>:<port>/NotificationService

Do you see the problem? This has duplicate keys, "OrbInitRef", so I
only load one of the initial references.

Seems like the problem would be the same if I passed them as
parameters. E.g:

java -DORBInitRef NameService=... ORBInitRef NotificationService=...


Anyone have a quick solution to my problem.

Thanks,
Randy
 
 
 

1. Why do Java apps insist on announcing that they are Java apps?

2. How do I launch a new Java app from a running Java app?

Here is the motivation for my question. I have a Swing-based
application that is launched using Web Start. I would like this
application to launch other application instances using it's own
classpath (e.g. fork new instances of itself) when the user invokes
certain functions.

I know that I can use Runtime or ProcessBuilder to launch another Java
application. If I use this approach, how can I get the current
application's classpath so that I can pass it as an argument to the
Java sub process?

Sincerely,
Steve A

3. Apache backslappers: Open source Java app servers go mainstream ( Why Are There No 'Killer' Java Apps ?)

4. problem with VisiBroker 5.2 with java 1.4.1 on AIX

5. Using Visibroker in Signed Applet - access denied (java.net.SocketPermission)

6. VisiBroker for Java issue

7. File name vs Class name - don't need to match like java?

8. Job to convert Java App 1.3.1 to Java Newest of Java

9. How to change a global named reference to a sheet named reference?

10. Need help sorting out ANDs and ORs in parameter query

11. if & ands and either indirect or offset - need help fast pleas

12. multiple ifs & ands indirect/offset...need help desperately pl

13. multiple ifs & ands indirect/offset...need help desperately please

14. if & ands and either indirect or offset - need help fast please