<div dir="ltr">Thank you very much indeed. It works nicely.</div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Sep 24, 2014 at 1:00 PM, <span dir="ltr"><<a href="mailto:omniorb-list-request@omniorb-support.com" target="_blank">omniorb-list-request@omniorb-support.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">Send omniORB-list mailing list submissions to<br>
<a href="mailto:omniorb-list@omniorb-support.com">omniorb-list@omniorb-support.com</a><br>
<br>
To subscribe or unsubscribe via the World Wide Web, visit<br>
<a href="http://www.omniorb-support.com/mailman/listinfo/omniorb-list" target="_blank">http://www.omniorb-support.com/mailman/listinfo/omniorb-list</a><br>
or, via email, send a message with subject or body 'help' to<br>
<a href="mailto:omniorb-list-request@omniorb-support.com">omniorb-list-request@omniorb-support.com</a><br>
<br>
You can reach the person managing the list at<br>
<a href="mailto:omniorb-list-owner@omniorb-support.com">omniorb-list-owner@omniorb-support.com</a><br>
<br>
When replying, please edit your Subject line so it is more specific<br>
than "Re: Contents of omniORB-list digest..."<br>
<br>
<br>
Today's Topics:<br>
<br>
1. Is it possible to narrow to a local implementation?<br>
(Ram?n Talavera)<br>
2. Re: Is it possible to narrow to a local implementation?<br>
(Luke Deller)<br>
<br>
<br>
----------------------------------------------------------------------<br>
<br>
Message: 1<br>
Date: Tue, 23 Sep 2014 19:20:21 +0200<br>
From: Ram?n Talavera <<a href="mailto:ramon.talavera@gmail.com">ramon.talavera@gmail.com</a>><br>
To: <a href="mailto:omniorb-list@omniorb-support.com">omniorb-list@omniorb-support.com</a><br>
Subject: [omniORB] Is it possible to narrow to a local implementation?<br>
Message-ID:<br>
<CANhGRHo793kZ-==Sf04+ob=<a href="mailto:k8bCksJ0wBQE8k_KTzHfb2aEWaw@mail.gmail.com">k8bCksJ0wBQE8k_KTzHfb2aEWaw@mail.gmail.com</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
I hope this does not sound too weird or basic.<br>
<br>
Is it possible to 'narrow' a _ptr or _var instance to a concrete<br>
implementation, I mean, obtain the real implementation of the<br>
wrapped-around-by-corba so that I communicate with it through the 'local'<br>
interface?<br>
<br>
For example:<br>
<br>
AImp is-a CorbaObject that implements CA , it contains a public method mX()<br>
NOT present in the IDL.<br>
<br>
AImp *a=new AImp(ORB);<br>
a.mX(); // perfectly possible due to being AImp<br>
<br>
<br>
... later, in another method, and in the same machine:<br>
<br>
CA_ptr ca= get a corba reference to a by narrowing.<br>
ca.mX(); // illegal, mX() is not part of the IDL<br>
<br>
AImp *a=(AImp*) (ca->_get_Implementation()); // cannot make this to compile<br>
<br>
<br>
Is _get_Implementation() suppossed to do what I am trying to archieve? Is<br>
it even possible to access the real wrapped implementation when local to<br>
the object?<br>
<br>
Thanks in advance.<br>
Ram?n Talavera<br>
-------------- next part --------------<br>
An HTML attachment was scrubbed...<br>
URL: <<a href="http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20140923/5573701a/attachment-0001.html" target="_blank">http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20140923/5573701a/attachment-0001.html</a>><br>
<br>
------------------------------<br>
<br>
Message: 2<br>
Date: Wed, 24 Sep 2014 09:11:45 +1000<br>
From: Luke Deller <<a href="mailto:ldeller@iress.com.au">ldeller@iress.com.au</a>><br>
To: Ram?n Talavera <<a href="mailto:ramon.talavera@gmail.com">ramon.talavera@gmail.com</a>><br>
Cc: "<a href="mailto:omniorb-list@omniorb-support.com">omniorb-list@omniorb-support.com</a>"<br>
<<a href="mailto:omniorb-list@omniorb-support.com">omniorb-list@omniorb-support.com</a>><br>
Subject: Re: [omniORB] Is it possible to narrow to a local<br>
implementation?<br>
Message-ID: <<a href="mailto:B46AA8EB-F7C9-4A9F-ADC0-7BEB43177047@iress.com.au">B46AA8EB-F7C9-4A9F-ADC0-7BEB43177047@iress.com.au</a>><br>
Content-Type: text/plain; charset="utf-8"<br>
<br>
Hi Ram?n,<br>
<br>
> On 24 Sep 2014, at 3:22 am, "Ram?n Talavera" <<a href="mailto:ramon.talavera@gmail.com">ramon.talavera@gmail.com</a>> wrote:<br>
><br>
> Is it possible to 'narrow' a _ptr or _var instance to a concrete implementation, I mean, obtain the real implementation of the wrapped-around-by-corba so that I communicate with it through the 'local' interface?<br>
<br>
This only makes sense within the same process that hosts the CORBA object. It can be done by calling a method of the POA called reference_to_servant.<br>
<br>
Regards,<br>
Luke.<br>
**********************************************************************************************<br>
Important Note<br>
This email (including any attachments) contains information which is confidential and may be subject to legal privilege. If you are not the intended recipient you must not use, distribute or copy this email. If you have received this email in error please notify the<br>
sender immediately and delete this email. Any views expressed in this email are not necessarily the views of IRESS Limited.<br>
<br>
It is the duty of the recipient to virus scan and otherwise test the information provided before loading onto any computer system.<br>
IRESS Limited does not warrant that the information is free of a virus or any other defect or error.<br>
**********************************************************************************************<br>
<br>
------------------------------<br>
<br>
_______________________________________________<br>
omniORB-list mailing list<br>
<a href="mailto:omniORB-list@omniorb-support.com">omniORB-list@omniorb-support.com</a><br>
<a href="http://www.omniorb-support.com/mailman/listinfo/omniorb-list" target="_blank">http://www.omniorb-support.com/mailman/listinfo/omniorb-list</a><br>
<br>
<br>
End of omniORB-list Digest, Vol 137, Issue 9<br>
********************************************<br>
</blockquote></div><br></div>