corba

how do i decode, change, then re-encode a CORBA IOR file (Visibroker) in my Java client code?

二次信任 提交于 2019-12-11 17:55:01
问题 I am writing code to ingest the IOR file generated by the team responsible for the server and use it to bind my client to their object. Sounds easy, right? For some reason a bit beyond my grasp (having to do with firewalls, DMZs, etc.), the value for the server inside the IOR file is not something we can use. We have to modify it. However, the IOR string is encoded. What does Visibroker provide that will let me decode the IOR string, change one or more values, then re-encode it and continue

Corba marshalling and proxy using writeReplace [duplicate]

烂漫一生 提交于 2019-12-11 11:43:01
问题 This question already has answers here : Closed 6 years ago . Possible Duplicate: Is there any equivalent to writeReplace in CORBA? I have in some part of my JavaEE application an homemade persistence component that returns collections and maps proxies. This component is used by my EJBs, which are accessed through web-services. Unfortunatly, when using a lazy-loaded map or collection, it seems the EJB return value (which usually is my component return value) can't be serialized by the CORBA

Is it possible to have several ORB objects in the same process?

依然范特西╮ 提交于 2019-12-11 11:23:13
问题 I use ORBacus. I have a multithreading application and I want to have several ORB objects in the same process . The idea is: each thread to have its own ORB and to be connected to different server . Is this even possible? If so - how? " What have you tried? " : I have CORBA::ORB_var m_varOrb; in each thread. Each thread calls. Each thread has Reconnect method, which executes: // ... m_varOrb = CORBA::ORB_init( argc, argv ); The issues, I have: when several threads are trying to reconnect at

Corba NameService configuration in Websphere 8.5.5

怎甘沉沦 提交于 2019-12-11 09:37:39
问题 As part of my application requirement, I have to configure a attribute called "ORBInitRef.NameService=corbaloc:iiop:ABCDE012:14888/NameService" in Websphere 8.5.5. Earlier i have used Jboss for my applciation deployment but now have to use WAS. In, WAS where should i have to configure this attribute in admin console? Is there any way to do it through orb.properties file in WAS root folder. Please let me know to approach?? 回答1: Please follow the below steps to configurable Corba Name service

CORBA example uses a different JDK [closed]

本小妞迷上赌 提交于 2019-12-11 08:39:41
问题 Closed . This question needs details or clarity. It is not currently accepting answers. Want to improve this question? Add details and clarify the problem by editing this post. Closed 5 years ago . Current CORBA example from http://www.oracle.com/technetwork/articles/javase/rmi-corba-136641.html uses a differet JDK version. I am using JDK 1.7 SO the problem is I have extended the class with extends FileInterfacePOA instead of extends _FileInterfaceImplBase So now I am getting an error in the

Java Swing, Corba Objects - How to store Corba objects in DefaultListModel?

不羁岁月 提交于 2019-12-11 05:40:36
问题 I have such IDL interface: interface User { string toString(); //.. }; interface Group { typedef sequence<User> Users; Users getUsers(); }; When I translated it to C++ I got sth like this: // ... Group::Users* GroupImpl::getUsers() { // ..return sequence of 'User'-objects } On client side (written in Java) I want to show my users. I do sth like this: public void showAllUsers() { User[] users = interface_obj.getUsers(); if(users.length != 0) { DefaultListModel model = new DefaultListModel();

CORBA lookup for java:comp/env/ or java:global

 ̄綄美尐妖づ 提交于 2019-12-11 05:21:42
问题 The CORBA lookup, EntAppLookup, works so far as it goes, better than running the appclient . However, I would at least like to use standard naming. Specifically, java:comp/env , or similar conventions, to reference the EJB. Deploying the Enterprise Application, with EJB module, and running the CORBA lookup: thufir@dur:~$ thufir@dur:~$ ll NetBeansProjects/EntAppEJB/dist/EntAppEJB.ear -rw-rw-r-- 1 thufir thufir 4659 Oct 11 22:17 NetBeansProjects/EntAppEJB/dist/EntAppEJB.ear thufir@dur:~$ thufir

ConnectionError [client (on VirtualBox) and server (on localhost)] - I use host-only setting on VM

半腔热情 提交于 2019-12-11 00:30:42
问题 I have a simple calc C++/Java app with CORBA. Server is written in C++, client in Java. I use omniORBs omniNames, as name service. I would like to run my omniNames and server on my localhost (Ubuntu) and run my client on Windows XP SP3 in VirtualBox installed on my localhost Ubuntu. (I mean: on my localhost I have installed Ubuntu OS and in Ubuntu I installed VirtuaBox with Windows XP SP3 'inside'.) I finally did it and set host-only optinon in VirtualBox with help from this: https:/

corba事件服务中的push和pull模型

人盡茶涼 提交于 2019-12-10 02:15:41
首先说一下Corba中相对比较简单的服务模型,事件服务。 对于事件服务的话,有push和pull两种模型。下面就分别说一下这两种模型具体实现: 首先,push和pull模型都是基于事件通道EventChannel的,两种模型的通信最终都必须通过事件通道push或pull对象的引用,那就简要的说一下事件通道的概念。 事件信道( event channel )是一个既是事件提供者又是事件消费者的插入对象,它允许多个事件提供者和多个事件消费者异步地通信而不需要相互了解。事件信道又是一个标准的 CORBA 对象,驻留在对象请求中介上,可以断开提供者和消费者的通信。 事件信道利用代理 (proxy) 对象撤消时间的提供者和消费者。提供者和消费者不是直接交互作用,而是从事件信道那里获得代理对象,让代理对象在将来的事件交换中代表自己。提供者获得一个消费者代理,而消费者获得一个提供者代理。事件信道通过这些代理对象代理事件的交换。 就 push 模型而言: 1 )、下面说一下事件通道的注册绑定过程,具体实现代码如下: Properties properties = new Properties(); //properties用来设置初始化orb所需要的参数信息 properties.put("org.omg.PortableInterceptor.ORBInitializerClass.bidir

What is an IOR file, what does it do, and how does it work?

和自甴很熟 提交于 2019-12-10 01:17:30
问题 I believe it is related to CORBA in some way (I'm not sure). I'm curious as to its function and how it works. Google isn't helping me when I search for "IOR file", and I'm not sure what else I could search for. Thanks to anyone who can at least point me in the right direction with available resources. 回答1: An IOR file is a file which contains an Interoperable Object Reference which is a kind of a locator string. The IOR file itself contains the IOR. The IOR is an CDR encoded string which,