corba

Corba Event Client ETIMEDOUT

こ雲淡風輕ζ 提交于 2019-12-04 06:30:37
问题 I have built a CORBA event service client with omniOrb and Python. I had the same issue with a Java client. I'm very certain I'm experiencing the same thing as this post because my strace looks very similar but he doesn't explain exactly how he fixed it: Java's 'tnameserv' takes 3+ minutes to be "Ready", why? Bottom line is my client starts up but never receives the events from the server because of the ETIMEDOUT error on both sides. Any guidance is greatly appreciated! Thanks in advance!

Use multiple ORBs through different threads (multithreaded multi-orb client application) - how?

眉间皱痕 提交于 2019-12-02 18:06:49
问题 This question is related to: Is it possible to have several ORB objects in the same process? So, thanks to @BrianKelly I found information about the ORB identifier (even though there was no such information in all ORBACUS docs, that I have) and I successfully created a simple application, that connects to different CORBA servers and successfully executed several CORBA requests. So far, so good. Now, what I want to do, is to make this application multithreaded and to start a separate thread

Identify client in peer to peer filesharing using Java and Corba. And build socket socket between 2 Clients

*爱你&永不变心* 提交于 2019-12-02 13:53:53
问题 I am developing a peer to peer file sharing application usig Java and CORBA. I am new to CORBA. So far I have successfully created a client program that registers a file in the SQL Database via CORBA. The table stores the following information : filename Share(Basically, it stores the option of sharing or not sharing the file in the network) HostName PortNumber I am stuck at this point: How do I find the hostname and portnumber of a client when registering the files to SQL?. Because I believe

Is there any equivalent to writeReplace in CORBA?

时光毁灭记忆、已成空白 提交于 2019-12-02 08:10:52
When using standard Java serialization, it is possible to have an object replaced on the fly in stream by, according to Serializable interface, creating a Object writeReplace() method that will be invoked during serialization. My question is simple : is there an equivalent for this construct in Corba Java implementation ? You can use writeReplace as normal with RMI-IIOP (Java RMI over CORBA/IIOP). The ORB presents "standard" Java serialization of Serializable/Externalizable (with all associated features) and marshals them as "custom marshalled" values. As far as I know there isn't even such a

How to implement CORBA client behind NAT

落花浮王杯 提交于 2019-12-02 05:03:25
问题 I have following interfaces. interface Server { void subscribe(in Client client); }; interface Client { void ping(); void pong(); }; On initialization, client will connect to server and call subscribe(this). Then server will call time to time methods ping() or pong() on client. However, this will not work if client resides behind the NAT. What are possible workarounds for this problem? Does it possible to utilize TCP connection created by client for calls server -> client? please advise. 回答1:

How to init ORB from property file?

空扰寡人 提交于 2019-12-02 02:15:36
问题 I would like to init my ORB from property file (normally I init it like this, while running my examples: ./app -ORBInitRef NameService=corbaloc::localhost:2809/NameService ) I wrote a simple code: private static String[] readConfigFile() { Properties prop = new Properties(); String arg[] = new String[1]; try { prop.load(new FileInputStream("config.properties")); } catch (IOException ex) {} arg[0] = prop.getProperty("ORBInitRef"); return arg; } and then tried to init my orb: clientsORB = org

How to init ORB from property file?

ε祈祈猫儿з 提交于 2019-12-02 02:12:38
I would like to init my ORB from property file (normally I init it like this, while running my examples: ./app -ORBInitRef NameService=corbaloc::localhost:2809/NameService ) I wrote a simple code: private static String[] readConfigFile() { Properties prop = new Properties(); String arg[] = new String[1]; try { prop.load(new FileInputStream("config.properties")); } catch (IOException ex) {} arg[0] = prop.getProperty("ORBInitRef"); return arg; } and then tried to init my orb: clientsORB = org.omg.CORBA.ORB.init(readConfigFile(), null); but there are some errors: 2012-11-01 12:15:36 com.sun.corba

Corba ORBD error

巧了我就是萌 提交于 2019-12-01 13:26:10
I am developing a simple Remote Administration Tool using CORBA. This is my server code. /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package simrat; import SimRATApp.SimRAT; import SimRATApp.SimRATHelper; import java.io.IOException; import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.JDialog; import javax.swing.JOptionPane; import org.omg.CORBA.ORB; import org.omg.CORBA.ORBPackage.InvalidName; import org.omg.CosNaming.NameComponent; import org.omg.CosNaming.NamingContextExt; import org.omg.CosNaming

How to write a C++ code generator that takes C++ code as input?

筅森魡賤 提交于 2019-12-01 13:14:37
We have a CORBA implementation that autogenerates Java and C++ stubs for us. Because the CORBA-generated code is difficult to work with, we need to write wrappers/helpers around the CORBA code. So we have a 2-step code generation process (yes, I know this is bad): CORBA IDL -> annoying CORBA-generated code -> useful wrappers/helper functions Using Java's reflection, I can inspect the CORBA-generated code and use that to generate additional code. However, because C++ doesn't have reflection, I am not sure how to do this on the C++ side. Should I use a C++ parser? C++ templates? TLDR: How to

Corba ORBD error

元气小坏坏 提交于 2019-12-01 11:44:53
问题 I am developing a simple Remote Administration Tool using CORBA. This is my server code. /* * To change this template, choose Tools | Templates * and open the template in the editor. */ package simrat; import SimRATApp.SimRAT; import SimRATApp.SimRATHelper; import java.io.IOException; import java.util.logging.Level; import java.util.logging.Logger; import javax.swing.JDialog; import javax.swing.JOptionPane; import org.omg.CORBA.ORB; import org.omg.CORBA.ORBPackage.InvalidName; import org.omg