AW: [omniORB] omniorb, C++ and java question

evgeni.rojkov at durr.com evgeni.rojkov at durr.com
Fri Jun 29 10:28:15 BST 2007


It looks for me you like to use RMI on Java-Side and try to create compatible
IDL for OMNIORB.
I do not have experience with RMI over IIOP, so I could not help you with it.
Here is the way I use:
Step 1:  Write IDL
Step 2: Use omniidl to create C++ stubs
Step 3: Use idlj to create Java stubs
Step 4: Use onmiNames as naming service
Regards, 
Evgeni



-----Ursprüngliche Nachricht-----
Von: omniorb-list-bounces at omniorb-support.com
[mailto:omniorb-list-bounces at omniorb-support.com] Im Auftrag von Jason Stelzer
Gesendet: Donnerstag, 28. Juni 2007 18:26
An: Jason Stelzer
Cc: omniorb-list at omniorb-support.com
Betreff: Re: [omniORB] omniorb, C++ and java question



On Jun 28, 2007, at 11:48 AM, Jason Stelzer wrote:

>
> On Jun 28, 2007, at 11:35 AM, Hervin, Paul wrote:
>
>> Hi,
>>
>> There is no problem in writing an IDL, then compiling it with idlj
>> for the java part and compiling it with omniidl for the C++ part.
>>
>> Regards
>> Paul
>>
>>
>
> Yes, its looking more and more like I'm going to have to do that. I
> was hoping that this approach would work.
> http://java.sun.com/j2se/1.4.2/docs/guide/rmi-iiop/interop.html#31647
>
> Once I realized that rmic has no idea about annotations and wrote
> an old style ejb, the idl generated became much closer to what I  
> need. But, there are still a few hopefully minor issues.
>
>

Well, thanks to the mighty power of google and narrowing down the  
right questions to ask, here's the 'answer' to my current problems.

Straight from sun:

"Modify the generated IDL files such as the EJBs, helper classes, and  
third-party classes corresponding to the application.
The generated IDL files do not compile directly. You need to manually  
modify the IDL files for generating a CPP file. The list below  
explains the situations when you need to modify the IDL files:"


http://docs.sun.com/source/817-0462-10/dccpp.html

At least it wasn't me doing something wrong. The tools are just broken.

Thanks for the insights.

--
J.



_______________________________________________
omniORB-list mailing list
omniORB-list at omniorb-support.com
http://www.omniorb-support.com/mailman/listinfo/omniorb-list



More information about the omniORB-list mailing list