Sybase NNTP forums - End Of Life (EOL)

The NNTP forums from Sybase - forums.sybase.com - are now closed.

All new questions should be directed to the appropriate forum at the SAP Community Network (SCN).

Individual products have links to the respective forums on SCN, or you can go to SCN and search for your product in the search box (upper right corner) to find your specific developer center.

EAS35 / Arrays of org.omg.CORBA.*Holder classes cannot be used as a parameter in EJBs?

5 posts in General Discussion (old) Last posting was on 2000-02-14 21:33:04.0Z
<=one way=> Posted on 2000-02-13 19:26:06.0Z
Newsgroups: sybase.public.easerver
From: "<=one way=>" <OneWay_111@yahoo.com>
Subject: EAS35 / Arrays of org.omg.CORBA.*Holder classes cannot be used as a parameter in EJBs?
Date: Sun, 13 Feb 2000 14:26:06 -0500
Lines: 10
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2014.211
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
NNTP-Posting-Host: oppenheimer163.oppenheimerfunds.com 216.44.5.163
Message-ID: <347_OJpnVbMd$GA.180@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28876
Article PK: 161253

It appears that org.omg.CORBA.*Holder[] type cannot be used as a function
argument in EJBs.

Tried org.omg.CORBA.FloatHolder[] and org.omg.CORBA.StringHolder[], attempt
to use them results IDL generation errors during component deployment.

Is this a bug? TIA.


Evan Ireland Posted on 2000-02-14 21:33:04.0Z
Newsgroups: sybase.public.easerver
Date: Tue, 15 Feb 2000 10:33:04 +1300
From: Evan Ireland <eireland@sybase.com>
Organization: Sybase, Inc.
X-Mailer: Mozilla 4.7 [en] (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
To: "<=one way=>" <OneWay_111@yahoo.com>
CC: dwolf@sybase.com, sandvik@sybase.com
Subject: Re: EAS35 / Arrays of org.omg.CORBA.*Holder classes cannot be used as a parameter in EJBs?
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 42
NNTP-Posting-Host: 130.214.8.57
Message-ID: <347_38A87490.2FE2B52C@sybase.com>
References: <347_OJpnVbMd$GA.180@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28716
Article PK: 160840


"<=one way=>" wrote:
>
> It appears that org.omg.CORBA.*Holder[] type cannot be used as a function
> argument in EJBs.

A holder is not a legal IDL/EJB parameter type. A holder is used in the Java
method signatures for IDL operations with 'out' and 'inout' parameters. If you
want 'out' or 'inout' parameters that are arrays (IDL sequences), then define
an IDL sequence type, e.g.

module MyModule
{
typedef sequence < string > StringSeq;
};

then you can generate EJB stubs and use MyModule.StringSeqHolder in the
method signature. Remember, conceptually the parameter type is StringSeq,
and the use of holders is just a peculiarity of the CORBA to Java language
mapping.

> Tried org.omg.CORBA.FloatHolder[] and org.omg.CORBA.StringHolder[], attempt
> to use them results IDL generation errors during component deployment.
>
> Is this a bug? TIA.

It is not a bug. You need a holder of arrays, not an array of holders.

Also, please note, the EJB standard does not even permit 'out' and 'inout'
parameters. We do permit it, but that is a proprietary feature intended for
helping to bridge the gap between EJB and CORBA.

If you want to return several values, I recommend that you try using:

public final class MyReturnValue
{
String[] stringValues;
float[] floatValues;
}

This can be mapped by the EJB importer to an IDL structure with two sequences.
________________________________________________________________________________

Evan Ireland Sybase EA Server Engineering eireland@sybase.com
Wellington - New Zealand +64 4 934-5856


Dave Wolf [Sybase] Posted on 2000-02-11 23:29:45.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: EAS35 / Arrays of org.omg.CORBA.*Holder classes cannot be used as a parameter in EJBs?
Date: Fri, 11 Feb 2000 18:29:45 -0500
Lines: 24
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: 158.159.8.15
Message-ID: <347_NgpOdhOd$GA.305@forums.sybase.com>
References: <347_OJpnVbMd$GA.180@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28862
Article PK: 161239

IMHO that would sound like a bug to me. EJB should support IDL entities.
Well, let me clarify, any EJB container implementing the EJB->CORBA mappings
would, which we did.

Please open a case.

Dave Wolf
Internet Applications Division

<=one way=> <OneWay_111@yahoo.com> wrote in message
news:OJpnVbMd$GA.180@forums.sybase.com...
> It appears that org.omg.CORBA.*Holder[] type cannot be used as a function
> argument in EJBs.
>
> Tried org.omg.CORBA.FloatHolder[] and org.omg.CORBA.StringHolder[],
attempt
> to use them results IDL generation errors during component deployment.
>
> Is this a bug? TIA.
>
>
>


<=one way=> Posted on 2000-02-14 21:26:38.0Z
Newsgroups: sybase.public.easerver
From: "<=one way=>" <OneWay_111@yahoo.com>
Subject: Re: EAS35 / Arrays of org.omg.CORBA.*Holder classes cannot be used as a parameter in EJBs?
Date: Mon, 14 Feb 2000 16:26:38 -0500
Lines: 32
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2014.211
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2014.211
NNTP-Posting-Host: oppenheimer163.oppenheimerfunds.com 216.44.5.163
Message-ID: <347_d0SwYDad$GA.184@forums.sybase.com>
References: <347_OJpnVbMd$GA.180@forums.sybase.com> <347_NgpOdhOd$GA.305@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28846
Article PK: 161225

That is not a good news at all.

Dave Wolf [Sybase] <dwolf@sybase.com> wrote in message
news:NgpOdhOd$GA.305@forums.sybase.com...
> IMHO that would sound like a bug to me. EJB should support IDL entities.
> Well, let me clarify, any EJB container implementing the EJB->CORBA
mappings
> would, which we did.
>
> Please open a case.
>
> Dave Wolf
> Internet Applications Division
>
> <=one way=> <OneWay_111@yahoo.com> wrote in message
> news:OJpnVbMd$GA.180@forums.sybase.com...
> > It appears that org.omg.CORBA.*Holder[] type cannot be used as a
function
> > argument in EJBs.
> >
> > Tried org.omg.CORBA.FloatHolder[] and org.omg.CORBA.StringHolder[],
> attempt
> > to use them results IDL generation errors during component deployment.
> >
> > Is this a bug? TIA.
> >
> >
> >
>
>


Dave Wolf [Sybase] Posted on 2000-02-12 21:49:37.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: EAS35 / Arrays of org.omg.CORBA.*Holder classes cannot be used as a parameter in EJBs?
Date: Sat, 12 Feb 2000 16:49:37 -0500
Lines: 42
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2314.1300
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2314.1300
NNTP-Posting-Host: 158.159.8.23
Message-ID: <347_v0hvNOad$GA.327@forums.sybase.com>
References: <347_OJpnVbMd$GA.180@forums.sybase.com> <347_NgpOdhOd$GA.305@forums.sybase.com> <347_d0SwYDad$GA.184@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28844
Article PK: 154723

Bugs happen. Call support and well fix it.

Dave Wolf
Internet Applications Division

<=one way=> <OneWay_111@yahoo.com> wrote in message
news:d0SwYDad$GA.184@forums.sybase.com...
> That is not a good news at all.
>
> Dave Wolf [Sybase] <dwolf@sybase.com> wrote in message
> news:NgpOdhOd$GA.305@forums.sybase.com...
> > IMHO that would sound like a bug to me. EJB should support IDL
entities.
> > Well, let me clarify, any EJB container implementing the EJB->CORBA
> mappings
> > would, which we did.
> >
> > Please open a case.
> >
> > Dave Wolf
> > Internet Applications Division
> >
> > <=one way=> <OneWay_111@yahoo.com> wrote in message
> > news:OJpnVbMd$GA.180@forums.sybase.com...
> > > It appears that org.omg.CORBA.*Holder[] type cannot be used as a
> function
> > > argument in EJBs.
> > >
> > > Tried org.omg.CORBA.FloatHolder[] and org.omg.CORBA.StringHolder[],
> > attempt
> > > to use them results IDL generation errors during component deployment.
> > >
> > > Is this a bug? TIA.
> > >
> > >
> > >
> >
> >
>
>