[jacorb-developer] R: Re: R: Questions about demo/corbaloc

Williamarc at libero.it Williamarc at libero.it
Thu Jun 7 16:48:51 CEST 2012


I solved the problem, it wasn't matter of communications, simply I didn't 
understand correctly the corbaloc  mechanism...
now it's clear.

thanks a lot, Nick !

>----Messaggio originale----
>Da: jacorb at goots.org
>Data: 06/06/2012 0.21
>A: "Discussions concerning CORBA development with JacORB"<jacorb-
developer at lists.spline.inf.fu-berlin.de>
>Ogg: Re: [jacorb-developer] R: Questions about demo/corbaloc
>
>Hi,
>
>You would need to edit the corbaloc demo to specify the iiop version you 
>require in the corbaloc string e.g.
>corbaloc:iiop:1.2 at host....
>
>I think you are correct in that printCorbalocIOR should examine the 
>incoming profile to output the correct version in the string. I think 
>that its simple fix to that method. Perhaps something like
>
>          if (profile instanceof IIOPProfile)
>          {
>+           result.append ("1." + Byte.valueOf(profile.version().minor) 
>+ "@");
>
>You mention you had trouble verifying the communication - how were you 
>verifying it - did you try wireshark?
>
>Cheers
>
>Nick
>
>
>On 01/06/12 15:08, Ravagli Virgilio wrote:
>> Perhaps I've found a solution.
>> I modified the class org.jacorb.orb.util.PrintIOR, adding the new method 
printCorbaloc12Str: it writes "corbaloc:iiop:1.2 at ...".
>> It works fine, now I obtain a GIOP 1.2 message format.
>>
>> Just a last doubt:
>> I set the output of ingoing and outgoing messages in the orb.properties 
file.
>>
>> If I work with a IOR file obtained by printCorbalocStr (or even 
printCorbaloc12Str), I can see the GIOP message sent by the client when it 
executes the narrow operation:
>>          GoodDay goodDay = GoodDayHelper.narrow( obj );
>> It matches my expectations.
>>
>> But if I work with a IOR file obtained without corbaloc, i.e. by writing 
the stringified object, I don't see any GIOP message sent by the client when 
executes the narrow operation.
>> So, my doubt is: how can the client connect to the server, without sending 
any GIOP message ?
>>
>> Bye,
>> Virgilio
>>
>> -----Messaggio originale-----
>> Da: jacorb-developer-bounces~virgilio.ravagli=ansaldo-sts.com at lists.spline.
inf.fu-berlin.de [mailto:jacorb-developer-bounces~virgilio.ravagli=ansaldo-sts.
com at lists.spline.inf.fu-berlin.de] Per conto di Ravagli Virgilio
>> Inviato: giovedì 31 maggio 2012 17.45
>> A: JacORB
>> Oggetto: [jacorb-developer] Questions about demo/corbaloc
>>
>> Hi everybody.
>> I found a strange behaviour about demo/corbaloc.
>>
>> After have built the examples, I launch the server, in a command prompt 
located in C:/jacorb-3.0/demo/corbaloc/build/classes : jaco demo.corbaloc.
Server loc.ior alt.txt
>>
>> Then I inspected the IOR file, loc.ior, and found the following 
information:
>>
>> ------IOR components-----
>> TypeId  :           IDL:omg.org/CORBA/Object:1.0
>> TAG_INTERNET_IOP Profiles:
>>              Profile Id:                      0
>>              IIOP Version:                1.0
>>              Host:                            127.0.0.1
>>              Port:                            6969
>>              Object key (URL):         
HelloServer/HelloPOAP/CorbalocServerID
>>              Object key (hex):          0x48 65 6C 6C 6F 53 65 72 76 65 72 
2F 48 65 6C 6C 6F 50 4F 41 50 2F 43 6F 72 62 61 6C 6F 63 53 65 72 76 65 72 49 
44
>>
>> Why is IIOP Version equal to 1.0 and not 1.2 ?
>> Does it depend on the "low level creation" of the persistent POA ?
>> How could I work with 1.2 ?
>>
>> Thanks in advance,
>> Virgilio
>> _______________________________________________
>> jacorb-developer maillist  -  jacorb-developer at lists.spline.inf.fu-berlin.
de
>> https://lists.spline.inf.fu-berlin.de/mailman/listinfo/jacorb-developer
>> _______________________________________________
>> jacorb-developer maillist  -  jacorb-developer at lists.spline.inf.fu-berlin.
de
>> https://lists.spline.inf.fu-berlin.de/mailman/listinfo/jacorb-developer
>
>_______________________________________________
>jacorb-developer maillist  -  jacorb-developer at lists.spline.inf.fu-berlin.de
>https://lists.spline.inf.fu-berlin.de/mailman/listinfo/jacorb-developer
>




More information about the jacorb-developer mailing list