CORBA Arrays of Strings

Hello All,
I'll admit I'm completely lost on this one so any help would be appreciated.  I want to return an array of strings from a call on my corba object, the IDL looks like this:

interface xxxx
{
   const long STRING_LIST_SIZE = 100;

   // these typedef are used when getting lists
   typedef string stringList[STRING_LIST_SIZE];

   /* Get the list of the names of codecs supported by this application */
   boolean getSupportedCodecs(out stringList codecNamesList);

   .. etc
}

The generated code looks like this:

    static const CORBA::Long STRING_LIST_SIZE;
    typedef CORBA::String_var stringList[ 100 ];
    typedef CORBA::String_var stringList_slice;
    typedef ArrayVarVar< CORBA::String_var,stringList_slice,stringList,100 > stringList_var;
    typedef ArrayVarOut < CORBA::String_var,stringList_slice,stringList,100 > stringList_out;
    enum _dummy_stringList { _dummy_stringList_0 };
    typedef ArrayVarForAny < CORBA::String_var,stringList_slice,stringList,100,_dummy_stringList> stringList_forany;
     .. Etc

In my implementation file I have implemented the body of getSupportedCodecs(…) to populate the array of strings.  The question is how do I call this from the client? What type should the list parameter be?

    if (CCClient->getSupportedCodecs(list))
    {
       // do interesting things...
    }

I thought it would be a stringList_var BUT this won't compile

    conferenceCombinerInterface::stringList_var list;
    if (CCClient->getSupportedCodecs(list))
    {
    }

Regards,
Paul


********************************************************************
This email and any attachments are confidential to the intended
recipient and may also be privileged. If you are not the intended
recipient please delete it from your system and notify the sender.
You should not copy it or use it for any purpose nor disclose or
distribute its contents to any other person.
********************************************************************
_______________________________________________
Mico-devel mailing list
Mico-devel <at> mico.org
http://www.mico.org/mailman/listinfo/mico-devel
Alireza khalilipour | 2 Feb 2006 18:32

oneway calling

Hi All,
I have 2 Questions:

1. Does supported oneway calling in mico?

2. if yes, can I push a value in a event channel within a oneway method? ( with due attention to that a oneway method can't has return value).

can some help me?

cheers,
khalilipour.


-- --

___________________________________________________
Play 100s of games for FREE! http://games.mail.com/

_______________________________________________
Mico-devel mailing list
Mico-devel <at> mico.org
http://www.mico.org/mailman/listinfo/mico-devel
Jie Lin | 6 Feb 2006 08:10
Picon

Has anyone built 64bit veriosn of Mico?

Hi! Guys

 

     If you have built 64bit mico successfully, please let us know.

 

 

                Jerry

_______________________________________________
Mico-devel mailing list
Mico-devel <at> mico.org
http://www.mico.org/mailman/listinfo/mico-devel
Karel Gardas | 6 Feb 2006 09:41
Favicon

Re: Has anyone built 64bit veriosn of Mico?

On Mon, 6 Feb 2006, Jie Lin wrote:

> Hi! Guys
>
>
>
>     If you have built 64bit mico successfully, please let us know.
>

Hi,

Not only built, but I'm using 64bit only all the time last year for our 
own MICO-based developments.

Cheers,
Karel
--
Karel Gardas                  kgardas <at> objectsecurity.com
ObjectSecurity Ltd.           http://www.objectsecurity.com
---
Need experienced, fast, reliable technical MICO support?
---> http://www.objectsecurity.com/mico_commsup_referral.html <---
---
Karel Gardas | 6 Feb 2006 09:54
Favicon

Re: MICO 2.3.12 : Multi-thread & CCM ?

On Mon, 30 Jan 2006, Erwan BECQUET wrote:

> Hi evrybody,
>
> I just tried to compile Mico 2.3.12 and
> saw a warning regards multithread & ccm !
>
> I would like to know :
>
> 1) if MICO M/T & CCM is planned ? If yes,
>   when ?

First of all, you are welcome to do appropriate fixes yourself and I'm 
happy to review them and merge them for 2.3.13 release. On the other hand 
if you are not interested in this coding, you might ask Frank Pilhofer if 
he is interested in doing this work for you (or for the customer). If he 
is not, then we can offer our technical support services here and do this 
work ourself.

> 2) warning message says i can use MICO/MT with
> one thread for requests or single-thread version.
> What's the difference between two options ? Can
> I "background" some requests, processing them asyn-
> chronously using threads safely  in M/T version ?

The difference is that if you need multi-threaded build, then you don't 
need to build single-threaded solely for purposes of MicoCCM. It's an 
assumption that if you use sinle-threaded worker thread-pool you will get 
the same behavior, although it (the assumption) is only lightly tested.

Cheers,
Karel
--
Karel Gardas                  kgardas <at> objectsecurity.com
ObjectSecurity Ltd.           http://www.objectsecurity.com
---
Need experienced, fast, reliable technical MICO support?
---> http://www.objectsecurity.com/mico_commsup_referral.html <---
---
Alireza khalilipour | 6 Feb 2006 10:27

Oneway Methods

Hi All,
I have 2 Questions:

1. Does supported the oneway calling in mico?

2. if yes, can I push a value in an event channel within  oneway method? ( with due attention to that a oneway method can't has return value).

can some help me?

cheers,
khalilipour.


-- --

___________________________________________________
Play 100s of games for FREE! http://games.mail.com/

_______________________________________________
Mico-devel mailing list
Mico-devel <at> mico.org
http://www.mico.org/mailman/listinfo/mico-devel
Karel Gardas | 6 Feb 2006 11:00
Favicon

Re: Oneway Methods

On Mon, 6 Feb 2006, Alireza khalilipour wrote:

> Hi All,
> I have 2 Questions:
>
> 1. Does supported the oneway calling in mico?

Yes, MICO does support oneway calls.

> 2. if yes, can I push a value in an event channel within  oneway method?
> ( with due attention to that a oneway method can't has return value).

It depends on what exactly do you mean:

1) use oneway to push, then no, since Events service does not define push 
as oneway operation.

2) call twoway push inside oneway invocation on the server side, then yes, 
this is possible, although as you noted error handling is completely up to 
you.

Cheers,
Karel
--
Karel Gardas                  kgardas <at> objectsecurity.com
ObjectSecurity Ltd.           http://www.objectsecurity.com
---
Need experienced, fast, reliable technical MICO support?
---> http://www.objectsecurity.com/mico_commsup_referral.html <---
---
Zoltan Bordas | 6 Feb 2006 13:56

RE: Has anyone built 64bit veriosn of Mico?

Jerry,

 

We have built and are commercially using MICO on Windows, Solaris, Linux and IRIX platforms in 64-bit mode.

 

Zoltan Bordas

Software Engineer

OpenSpirit Corporation

www.openspirit.com

+1 281.295.1426 direct

+1 281.295.1401 fax

 

-----Original Message-----
From: mico-devel-bounces <at> mico.org [mailto:mico-devel-bounces <at> mico.org] On Behalf Of Jie Lin
Sent: Monday, February 06, 2006 1:10 AM
To: mico-devel <at> mico.org
Subject: [mico-devel] Has anyone built 64bit veriosn of Mico?

 

Hi! Guys

 

     If you have built 64bit mico successfully, please let us know.

 

 

                Jerry

_______________________________________________
Mico-devel mailing list
Mico-devel <at> mico.org
http://www.mico.org/mailman/listinfo/mico-devel
Karel Gardas | 7 Feb 2006 11:43
Favicon

Re: CORBA Arrays of Strings


Hello,

I would recommend you to read some book about CORBA/C++. Arrays are a bit 
tricky, so if you don't understand them and wouldn't like to purchase for 
example Henning&Vinoski's Advanced CORBA programming in C++, then I would 
recommend you to use sequences instead of arrays.

Cheers,
Karel
--
Karel Gardas                  kgardas <at> objectsecurity.com
ObjectSecurity Ltd.           http://www.objectsecurity.com
---
Need experienced, fast, reliable technical MICO support?
---> http://www.objectsecurity.com/mico_commsup_referral.html <---
---

On Wed, 1 Feb 2006, Caswell, Paul (SELEX Comms) (UK) wrote:

>
> Hello All,
> I'll admit I'm completely lost on this one so any help would be
> appreciated.  I want to return an array of strings from a call on my
> corba object, the IDL looks like this:
>
> interface xxxx
> {
>   const long STRING_LIST_SIZE = 100;
>
>   // these typedef are used when getting lists
>   typedef string stringList[STRING_LIST_SIZE];
>
>   /* Get the list of the names of codecs supported by this application
> */
>   boolean getSupportedCodecs(out stringList codecNamesList);
>
>   .. etc
> }
>
> The generated code looks like this:
>
>    static const CORBA::Long STRING_LIST_SIZE;
>    typedef CORBA::String_var stringList[ 100 ];
>    typedef CORBA::String_var stringList_slice;
>    typedef ArrayVarVar<
> CORBA::String_var,stringList_slice,stringList,100 > stringList_var;
>    typedef ArrayVarOut <
> CORBA::String_var,stringList_slice,stringList,100 > stringList_out;
>    enum _dummy_stringList { _dummy_stringList_0 };
>    typedef ArrayVarForAny <
> CORBA::String_var,stringList_slice,stringList,100,_dummy_stringList>
> stringList_forany;
>     .. Etc
>
> In my implementation file I have implemented the body of
> getSupportedCodecs(...) to populate the array of strings.  The question
> is how do I call this from the client? What type should the list
> parameter be?
>
>    if (CCClient->getSupportedCodecs(list))
>    {
>       // do interesting things...
>    }
>
> I thought it would be a stringList_var BUT this won't compile
>
>    conferenceCombinerInterface::stringList_var list;
>    if (CCClient->getSupportedCodecs(list))
>    {
>    }
>
> Regards,
> Paul
>
>
>
>
> ********************************************************************
> This email and any attachments are confidential to the intended
> recipient and may also be privileged. If you are not the intended
> recipient please delete it from your system and notify the sender.
> You should not copy it or use it for any purpose nor disclose or
> distribute its contents to any other person.
> ********************************************************************

--
Karel Gardas                  kgardas <at> objectsecurity.com
ObjectSecurity Ltd.           http://www.objectsecurity.com
Jie Lin | 7 Feb 2006 11:57
Picon

RE: Has anyone built 64bit veriosn of Mico?


Hi! karel

    Glad to hear that you are using 64bit mico. 

    We plan to move to 64bits mico on windows with vc++ 2005 compiler.

    Currently, we are having problems ofcompiling 32 bits mico(2.3.12.CR2) with vc++2005 compiler.

    We plan to compile mico2.3.12 with stlport5.0.0 using vc++2005.  But We end up we can't build any version of mico with vc++2005.

    Can you shine lights?

            Jerry

    Pls: we have built mico2.3.11 on solaris8 with gcc3.4 and mico2.3.7 with vc++6.

-----Original Message-----
From: Karel Gardas [mailto:kgardas <at> objectsecurity.com]
Sent: Mon 2/6/2006 7:41 PM
To: Jie Lin
Cc: mico-devel <at> mico.org
Subject: Re: [mico-devel] Has anyone built 64bit veriosn of Mico?

On Mon, 6 Feb 2006, Jie Lin wrote:

> Hi! Guys
>
>
>
>     If you have built 64bit mico successfully, please let us know.
>

Hi,

Not only built, but I'm using 64bit only all the time last year for our
own MICO-based developments.

Cheers,
Karel
--
Karel Gardas                  kgardas <at> objectsecurity.com
ObjectSecurity Ltd.           http://www.objectsecurity.com
---
Need experienced, fast, reliable technical MICO support?
---> http://www.objectsecurity.com/mico_commsup_referral.html <---
---

_______________________________________________
Mico-devel mailing list
Mico-devel <at> mico.org
http://www.mico.org/mailman/listinfo/mico-devel

Gmane