corba

org.omg.CORBA.MARSHAL: Server-side Exception: null

谁说我不能喝 提交于 2019-12-24 18:06:12
问题 I'm trying to register to a CORBA CosNotification Service. In the documentation of the service I'm trying to connect to, it says I have to a CosNotifyComm::SequencePushConsumer object, and attach it to the notification service. I've included my code, and the error I'm getting back. AlarmClient.java import NotificationIRPSystem.*; import org.omg.CosNotification.*; import org.omg.CosNotifyComm.*; import org.omg.CosNotifyChannelAdmin.*; import org.omg.CosNotifyFilter.*; import org.omg.CosNaming.

Migrating a big project in MFC from Visual C++ 6.0 to Visual Studio 2005

我是研究僧i 提交于 2019-12-23 19:08:40
问题 I am maintaining a big project (~250k loc, not counting code generated from idl) in Visual C++ 6.0, that uses Visibroker (VB for short) 5.2.1 (which is a CORBA implementation from Borland). Recently, the other module that communicates with my project was upgraded to VB 8.0 and I got a bunch of incompatibility issues. Since VB 5.2.1 is no longer supported while VB 8.0 does not work with Visual C++ 6.0, I am considering migrating the whole project to Visual Studio 2005. It is not a big change

Changing a CORBA interface without recompiling

扶醉桌前 提交于 2019-12-23 12:53:11
问题 I'd like to add a method to my existing server's CORBA interface. Will that require recompiling all clients? I'm using TAO. 回答1: Recompilation of clients is not required (and should not be, regardless of the ORB that you use). As Adam indicated, lookups are done by operation name (a straight text comparison). I've done what you're describing with our ACE/TAO-based system, and encountered no issues (servers were in ACE/TAO C++, clients were ACE/TAO C++, C# using Borland's Janeva, and OmniORBPy

BAD_PARAM in java CORBA

Deadly 提交于 2019-12-23 04:33:39
问题 I'm encountering the BAD_PARAM error when I program the Client-Server Chat program in Java. The first code segment is the Server //Server.java try { ORB orb = ORB.init(args, null); POA poa = POAHelper.narrow(orb .resolve_initial_references("RootPOA")); poa.the_POAManager().activate(); ServerImpl s = new ServerImpl(port); System.out.println(port); org.omg.CORBA.Object obj = poa.servant_to_reference(s); Server r = ServerHelper.narrow(obj); // get reference to root naming context org.omg.CORBA

CORBA on Mac OS X (Cocoa)

為{幸葍}努か 提交于 2019-12-22 14:54:53
问题 I am currently looking into different ways to support distributed model objects (that is, a computational model that runs on several different computers) in a project that initially focuses on Mac OS X (using Cocoa). As far as I know there is the possibility to use the class cluster around NSProxy . But there also seem to be implementations of CORBA around with Objective-C support. At a later time there may be the need to also support/include Windows machines. In that case I would need to use

CORBA - JacORB: Use fixed port generating IOR?

懵懂的女人 提交于 2019-12-22 11:24:19
问题 How do I make sure JacORB uses a fixed port, lets say 6001, when I use the ORB.object_to_string method? I tried a few things in the JacORB config, but every generated IOR was a random port. 回答1: jacorb.net.server_socket_factory=org.jacorb.orb.factory.PortRangeServerSocketFactory jacorb.net.server_socket_factory.port.min=52677 jacorb.net.server_socket_factory.port.max=52679 That did it for me :) 回答2: JacORB knows the property OAIAddr How can I make the server use a specific port number or IP

CORBA ORB runtime define local IP interface usage

佐手、 提交于 2019-12-21 23:11:42
问题 We have an existing application which has set up a CORBA ORB runtime environment as client. At the moment we don't specify any local interface (IP/Ethernet) to use and the runtime seems to get some default interface on our local machine. The machine used is Oracle with Solaris operating system. The ORB runtime environment used here is Java 7 JDK built-in ORB. Is there any way to explicitly indicate that a certain local IP interface should be used via some property to ORB.init(...) ? 回答1: For

Differences between JMS and CORBA?

余生颓废 提交于 2019-12-21 20:05:47
问题 I have just read about CORBA and JMS , they both seem to be used to implement Broker Architecture/Pattern . I have few questions regarding them 1.The differences between them are still not clear to me, anybody please explain ? 2.Is CORBA is used in today's IT Solutions ? Or is it losing charm ? 3.Does JMS can replace every aspect of CORBA ? 回答1: Ramon Gil Moreno is right in stating that JMS is the Java API that allows building applications to send and receive messages. IBM MQ or ActiveMQ are

Cross-platform alternative to COM

旧巷老猫 提交于 2019-12-20 10:43:47
问题 I've been enamoured with component based programming (be it with COM, another system, or just using the paradigm in plain C++). It requires a bit of getting used to, if one is usually used to the "traditional" OOP model, but it's definetely worth it. It's made my code more maintainable and easier to extend. The project I'm currently working on is using the paradigm, but no set system. However, I'd really like to find some sort of system I could use with the following requirements. Switching

Exception inside CORBA when accessing a remote bean

对着背影说爱祢 提交于 2019-12-19 10:12:45
问题 On Windows Server with Glassfish 4.0 and JDK 1.7_55 I getting NoClassDefFoundError and ClassNotFoundException then invoking remote bean methods. StandardWrapperValve[action]: Servlet.service() for servlet action threw exception java.lang.ClassNotFoundException: com.sun.corba.ee.impl.orb.ORBSingleton at java.net.URLClassLoader$1.run(URLClassLoader.java:366) ... at com.sun.corba.ee.impl.presentation.rmi.codegen.CodegenStubBase.invoke(CodegenStubBase.java:226) at dudge.ifaces.__SolutionRemote