Ramón Talavera
2014-09-25 10:26:23 UTC
Thank you very much indeed. It works nicely.
On Wed, Sep 24, 2014 at 1:00 PM, <omniorb-list-request at omniorb-support.com>
An HTML attachment was scrubbed...
URL: <http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20140925/0fa90916/attachment.html>
On Wed, Sep 24, 2014 at 1:00 PM, <omniorb-list-request at omniorb-support.com>
Send omniORB-list mailing list submissions to
omniorb-list at omniorb-support.com
To subscribe or unsubscribe via the World Wide Web, visit
http://www.omniorb-support.com/mailman/listinfo/omniorb-list
or, via email, send a message with subject or body 'help' to
omniorb-list-request at omniorb-support.com
You can reach the person managing the list at
omniorb-list-owner at omniorb-support.com
When replying, please edit your Subject line so it is more specific
than "Re: Contents of omniORB-list digest..."
1. Is it possible to narrow to a local implementation?
(Ram?n Talavera)
2. Re: Is it possible to narrow to a local implementation?
(Luke Deller)
----------------------------------------------------------------------
Message: 1
Date: Tue, 23 Sep 2014 19:20:21 +0200
From: Ram?n Talavera <ramon.talavera at gmail.com>
To: omniorb-list at omniorb-support.com
Subject: [omniORB] Is it possible to narrow to a local implementation?
<CANhGRHo793kZ-==Sf04+ob=
k8bCksJ0wBQE8k_KTzHfb2aEWaw at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
I hope this does not sound too weird or basic.
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?
AImp is-a CorbaObject that implements CA , it contains a public method mX()
NOT present in the IDL.
AImp *a=new AImp(ORB);
a.mX(); // perfectly possible due to being AImp
CA_ptr ca= get a corba reference to a by narrowing.
ca.mX(); // illegal, mX() is not part of the IDL
AImp *a=(AImp*) (ca->_get_Implementation()); // cannot make this to compile
Is _get_Implementation() suppossed to do what I am trying to archieve? Is
it even possible to access the real wrapped implementation when local to
the object?
Thanks in advance.
Ram?n Talavera
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <
http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20140923/5573701a/attachment-0001.html
------------------------------
Message: 2
Date: Wed, 24 Sep 2014 09:11:45 +1000
From: Luke Deller <ldeller at iress.com.au>
To: Ram?n Talavera <ramon.talavera at gmail.com>
Cc: "omniorb-list at omniorb-support.com"
<omniorb-list at omniorb-support.com>
Subject: Re: [omniORB] Is it possible to narrow to a local
implementation?
Message-ID: <B46AA8EB-F7C9-4A9F-ADC0-7BEB43177047 at iress.com.au>
Content-Type: text/plain; charset="utf-8"
Hi Ram?n,
wrapped-around-by-corba so that I communicate with it through the 'local'
interface?
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.
Regards,
Luke.
**********************************************************************************************
Important Note
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
sender immediately and delete this email. Any views expressed in this
email are not necessarily the views of IRESS Limited.
It is the duty of the recipient to virus scan and otherwise test the
information provided before loading onto any computer system.
IRESS Limited does not warrant that the information is free of a virus or
any other defect or error.
**********************************************************************************************
------------------------------
_______________________________________________
omniORB-list mailing list
omniORB-list at omniorb-support.com
http://www.omniorb-support.com/mailman/listinfo/omniorb-list
End of omniORB-list Digest, Vol 137, Issue 9
********************************************
-------------- next part --------------omniorb-list at omniorb-support.com
To subscribe or unsubscribe via the World Wide Web, visit
http://www.omniorb-support.com/mailman/listinfo/omniorb-list
or, via email, send a message with subject or body 'help' to
omniorb-list-request at omniorb-support.com
You can reach the person managing the list at
omniorb-list-owner at omniorb-support.com
When replying, please edit your Subject line so it is more specific
than "Re: Contents of omniORB-list digest..."
1. Is it possible to narrow to a local implementation?
(Ram?n Talavera)
2. Re: Is it possible to narrow to a local implementation?
(Luke Deller)
----------------------------------------------------------------------
Message: 1
Date: Tue, 23 Sep 2014 19:20:21 +0200
From: Ram?n Talavera <ramon.talavera at gmail.com>
To: omniorb-list at omniorb-support.com
Subject: [omniORB] Is it possible to narrow to a local implementation?
<CANhGRHo793kZ-==Sf04+ob=
k8bCksJ0wBQE8k_KTzHfb2aEWaw at mail.gmail.com>
Content-Type: text/plain; charset="utf-8"
I hope this does not sound too weird or basic.
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?
AImp is-a CorbaObject that implements CA , it contains a public method mX()
NOT present in the IDL.
AImp *a=new AImp(ORB);
a.mX(); // perfectly possible due to being AImp
CA_ptr ca= get a corba reference to a by narrowing.
ca.mX(); // illegal, mX() is not part of the IDL
AImp *a=(AImp*) (ca->_get_Implementation()); // cannot make this to compile
Is _get_Implementation() suppossed to do what I am trying to archieve? Is
it even possible to access the real wrapped implementation when local to
the object?
Thanks in advance.
Ram?n Talavera
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <
http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20140923/5573701a/attachment-0001.html
------------------------------
Message: 2
Date: Wed, 24 Sep 2014 09:11:45 +1000
From: Luke Deller <ldeller at iress.com.au>
To: Ram?n Talavera <ramon.talavera at gmail.com>
Cc: "omniorb-list at omniorb-support.com"
<omniorb-list at omniorb-support.com>
Subject: Re: [omniORB] Is it possible to narrow to a local
implementation?
Message-ID: <B46AA8EB-F7C9-4A9F-ADC0-7BEB43177047 at iress.com.au>
Content-Type: text/plain; charset="utf-8"
Hi Ram?n,
On 24 Sep 2014, at 3:22 am, "Ram?n Talavera" <ramon.talavera at gmail.com>
Is it possible to 'narrow' a _ptr or _var instance to a concrete
implementation, I mean, obtain the real implementation of theIs it possible to 'narrow' a _ptr or _var instance to a concrete
wrapped-around-by-corba so that I communicate with it through the 'local'
interface?
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.
Regards,
Luke.
**********************************************************************************************
Important Note
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
sender immediately and delete this email. Any views expressed in this
email are not necessarily the views of IRESS Limited.
It is the duty of the recipient to virus scan and otherwise test the
information provided before loading onto any computer system.
IRESS Limited does not warrant that the information is free of a virus or
any other defect or error.
**********************************************************************************************
------------------------------
_______________________________________________
omniORB-list mailing list
omniORB-list at omniorb-support.com
http://www.omniorb-support.com/mailman/listinfo/omniorb-list
End of omniORB-list Digest, Vol 137, Issue 9
********************************************
An HTML attachment was scrubbed...
URL: <http://www.omniorb-support.com/pipermail/omniorb-list/attachments/20140925/0fa90916/attachment.html>