[omniORB] Using 'file:' in corbaloc URI
Stefan Näwe
naewe.s at atlas.de
Mon Oct 25 12:52:33 BST 2004
Rene Jager wrote:
> On Fri, 2004-10-22 at 15:04, Stefan Näwe wrote:
>
>>Is there any reason why one would not implement a URI-handler for
>>'file:' schemes ?
>>We're planning to use omniOrb together with some Ada-CORBA naming
>>service that can not be accessed by using a
>>'corbaloc::host:port/NameService' URI.
>>Our C++ applications would need to use the IOR-file written by that
>>naming service.
>
>
> I use libcurl for that purpose; in pseudo code:
>
> while (not error and not uri is not a corba-uri):
> uri = get_contents_via_libcurl(uri)
> orb.string_to_object(uri)
>
> this, besides files, allows also using IORs or URIs via http, ftp, etc,
> etc
>
> if you want I can post some code doing this
Well, I know I can do that in my app. code.
What I actually meant was: Why is that functionality not built into
omniORB itself ? (We only need 'file:' access and that's only
~10 lines of code)
Stefan
@Rene: Sorry for posting PM!
More information about the omniORB-list
mailing list