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.

passing IntegerHolder as Inout from Dynamo to Jaguar

11 posts in General Discussion (old) Last posting was on 2000-02-14 23:47:39.0Z
Develop Informatica Posted on 2000-02-14 19:19:10.0Z
Newsgroups: sybase.public.easerver
From: "Develop Informatica" <suporte@develop.com.br>
Subject: passing IntegerHolder as Inout from Dynamo to Jaguar
Date: Mon, 14 Feb 2000 16:19:10 -0300
Lines: 27
X-Newsreader: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
NNTP-Posting-Host: 200.248.92.2
Message-ID: <347_exQ5z$xd$GA.324@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28733
Article PK: 160854

Hi,

I would like to call a Java component in Jaguar from a Dynamo script, and
return an integer from that component.

the method:
public String myMethod( IntegerHolder in_out ) {
in_out.value = 9999;
return ""
}

Dynamo script:
var ref_var
...
jag.myMethod( ref_var );

It seems pretty straightforward, but I can't make it work.
I have read in old thread about JavaWrappers, but I couldn't find anything
clear.

Any help ?

TIA
Diego.


Daniel Coppersmith Posted on 2000-02-14 19:13:22.0Z
Newsgroups: sybase.public.easerver
Reply-To: "Daniel Coppersmith" <daniel@NO.SPAM.infrontsoftware.com>
From: "Daniel Coppersmith" <daniel@NO.SPAM.infrontsoftware.com>
Subject: Re: passing IntegerHolder as Inout from Dynamo to Jaguar
Date: Mon, 14 Feb 2000 14:13:22 -0500
Lines: 74
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: sdn-ar-002insbenP076.dialsprint.net 168.191.107.164
Message-ID: <347_hk$6nGyd$GA.149@forums.sybase.com>
References: <347_exQ5z$xd$GA.324@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28730
Article PK: 160850

Here's a sample script that calls Dave Wolf's JavaWrapper classes... this
uses a string as the InOut, but it is easily converted into integers.

<!--SCRIPT

import JavaWrappers.ssc;

<...snip...>

// Create holder objects for the ByReference parameters.
ls_hldrEmpUID = java.CreateObject("org.omg.CORBA.StringHolder", " ");

// Call the validate login component
ll_rc = nvo_login.of_validatelogin(ls_user, ls_password, ls_hldrEmpUID);

if (ll_rc == 1)
{
// The logon was successful. Retrieve the ByReference parameter
values out of the holder into the
// variables with the use of a helper variable.

ls_hlprEmpUID = new JavaFieldHelper(ls_hldrEmpUID);

// If the helper object is null, then there is a problem (probably
with the import of the
// wrapper classes. Error out.

if (ls_hlprEmpUID == null)
{
document.writeln("<BR><FONT SIZE=+2 COLOR=RED>ERROR IN " +
document.location + "</FONT><BR>");
document.writeln(site.GetErrorInfo());
exit;
}

ls_empUID = ls_hlprEmpUID.getString("value");

<... snip ...>
-->

Develop Informatica <suporte@develop.com.br> wrote in message
news:exQ5z$xd$GA.324@forums.sybase.com...
> Hi,
>
> I would like to call a Java component in Jaguar from a Dynamo script, and
> return an integer from that component.
>
> the method:
> public String myMethod( IntegerHolder in_out ) {
> in_out.value = 9999;
> return ""
> }
>
> Dynamo script:
> var ref_var
> ...
> jag.myMethod( ref_var );
>
> It seems pretty straightforward, but I can't make it work.
> I have read in old thread about JavaWrappers, but I couldn't find anything
> clear.
>
> Any help ?
>
> TIA
> Diego.
>
>
>


Develop Informatica Posted on 2000-02-14 19:35:16.0Z
Newsgroups: sybase.public.easerver
From: "Develop Informatica" <suporte@develop.com.br>
Subject: Re: passing IntegerHolder as Inout from Dynamo to Jaguar
Date: Mon, 14 Feb 2000 16:35:16 -0300
Lines: 87
X-Newsreader: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
NNTP-Posting-Host: 200.248.92.2
Message-ID: <347_Tvi5zIyd$GA.327@forums.sybase.com>
References: <347_exQ5z$xd$GA.324@forums.sybase.com> <347_hk$6nGyd$GA.149@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28728
Article PK: 160852

Fine!

And where is the JavaWrappers.ssc file ?

Thanks.

Diego.

Daniel Coppersmith wrote in message ...
>Here's a sample script that calls Dave Wolf's JavaWrapper classes... this
>uses a string as the InOut, but it is easily converted into integers.
>
><!--SCRIPT
>
> import JavaWrappers.ssc;
>
> <...snip...>
>
> // Create holder objects for the ByReference parameters.
> ls_hldrEmpUID = java.CreateObject("org.omg.CORBA.StringHolder", " ");
>
> // Call the validate login component
> ll_rc = nvo_login.of_validatelogin(ls_user, ls_password,
ls_hldrEmpUID);
>
> if (ll_rc == 1)
> {
> // The logon was successful. Retrieve the ByReference parameter
>values out of the holder into the
> // variables with the use of a helper variable.
>
> ls_hlprEmpUID = new JavaFieldHelper(ls_hldrEmpUID);
>
> // If the helper object is null, then there is a problem (probably
>with the import of the
> // wrapper classes. Error out.
>
> if (ls_hlprEmpUID == null)
> {
> document.writeln("<BR><FONT SIZE=+2 COLOR=RED>ERROR IN " +
>document.location + "</FONT><BR>");
> document.writeln(site.GetErrorInfo());
> exit;
> }
>
> ls_empUID = ls_hlprEmpUID.getString("value");
>
> <... snip ...>
>-->
>
>
>Develop Informatica <suporte@develop.com.br> wrote in message
>news:exQ5z$xd$GA.324@forums.sybase.com...
>> Hi,
>>
>> I would like to call a Java component in Jaguar from a Dynamo script, and
>> return an integer from that component.
>>
>> the method:
>> public String myMethod( IntegerHolder in_out ) {
>> in_out.value = 9999;
>> return ""
>> }
>>
>> Dynamo script:
>> var ref_var
>> ...
>> jag.myMethod( ref_var );
>>
>> It seems pretty straightforward, but I can't make it work.
>> I have read in old thread about JavaWrappers, but I couldn't find
anything
>> clear.
>>
>> Any help ?
>>
>> TIA
>> Diego.
>>
>>
>>
>
>
>
>


Daniel Coppersmith Posted on 2000-02-14 19:29:02.0Z
Newsgroups: sybase.public.easerver
Reply-To: "Daniel Coppersmith" <daniel@NO.SPAM.infrontsoftware.com>
From: "Daniel Coppersmith" <daniel@NO.SPAM.infrontsoftware.com>
Subject: Re: passing IntegerHolder as Inout from Dynamo to Jaguar
Date: Mon, 14 Feb 2000 14:29:02 -0500
Lines: 100
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: sdn-ar-002insbenP313.dialsprint.net 168.191.108.91
Message-ID: <347_1opIcPyd$GA.327@forums.sybase.com>
References: <347_exQ5z$xd$GA.324@forums.sybase.com> <347_hk$6nGyd$GA.149@forums.sybase.com> <347_Tvi5zIyd$GA.327@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28726
Article PK: 160847

It's on the SDN -- look under downloads, code samples, PowerDynamo...
they're Dave Wolf's.

(I've also sent them to you off line, let me know if you didn't get them).

Daniel

Develop Informatica <suporte@develop.com.br> wrote in message
news:Tvi5zIyd$GA.327@forums.sybase.com...
> Fine!
>
> And where is the JavaWrappers.ssc file ?
>
> Thanks.
>
> Diego.
>
> Daniel Coppersmith wrote in message ...
> >Here's a sample script that calls Dave Wolf's JavaWrapper classes... this
> >uses a string as the InOut, but it is easily converted into integers.
> >
> ><!--SCRIPT
> >
> > import JavaWrappers.ssc;
> >
> > <...snip...>
> >
> > // Create holder objects for the ByReference parameters.
> > ls_hldrEmpUID = java.CreateObject("org.omg.CORBA.StringHolder", " ");
> >
> > // Call the validate login component
> > ll_rc = nvo_login.of_validatelogin(ls_user, ls_password,
> ls_hldrEmpUID);
> >
> > if (ll_rc == 1)
> > {
> > // The logon was successful. Retrieve the ByReference parameter
> >values out of the holder into the
> > // variables with the use of a helper variable.
> >
> > ls_hlprEmpUID = new JavaFieldHelper(ls_hldrEmpUID);
> >
> > // If the helper object is null, then there is a problem
(probably
> >with the import of the
> > // wrapper classes. Error out.
> >
> > if (ls_hlprEmpUID == null)
> > {
> > document.writeln("<BR><FONT SIZE=+2 COLOR=RED>ERROR IN " +
> >document.location + "</FONT><BR>");
> > document.writeln(site.GetErrorInfo());
> > exit;
> > }
> >
> > ls_empUID = ls_hlprEmpUID.getString("value");
> >
> > <... snip ...>
> >-->
> >
> >
> >Develop Informatica <suporte@develop.com.br> wrote in message
> >news:exQ5z$xd$GA.324@forums.sybase.com...
> >> Hi,
> >>
> >> I would like to call a Java component in Jaguar from a Dynamo script,
and
> >> return an integer from that component.
> >>
> >> the method:
> >> public String myMethod( IntegerHolder in_out ) {
> >> in_out.value = 9999;
> >> return ""
> >> }
> >>
> >> Dynamo script:
> >> var ref_var
> >> ...
> >> jag.myMethod( ref_var );
> >>
> >> It seems pretty straightforward, but I can't make it work.
> >> I have read in old thread about JavaWrappers, but I couldn't find
> anything
> >> clear.
> >>
> >> Any help ?
> >>
> >> TIA
> >> Diego.
> >>
> >>
> >>
> >
> >
> >
> >
>
>


Develop Informatica Posted on 2000-02-14 21:30:40.0Z
Newsgroups: sybase.public.easerver
From: "Develop Informatica" <suporte@develop.com.br>
Subject: Re: passing IntegerHolder as Inout from Dynamo to Jaguar
Date: Mon, 14 Feb 2000 18:30:40 -0300
Lines: 125
X-Newsreader: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
NNTP-Posting-Host: 200.248.92.2
Message-ID: <347_YDmXynyd$GA.149@forums.sybase.com>
References: <347_exQ5z$xd$GA.324@forums.sybase.com> <347_hk$6nGyd$GA.149@forums.sybase.com> <347_Tvi5zIyd$GA.327@forums.sybase.com> <347_1opIcPyd$GA.327@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28723
Article PK: 160846

Daniel,

Thanks for sending the file.

BUT, I am having some problems with IntHolder. When calling

obj = java.CreateObject( "org.omg.CORBA.IntHolder", " "), I get "Invalid
Object for method"

I tried "com.sybase.jaguar.util.IntegerHolder", but unsuccessfully.

With StringHolder I haven't got that message, but creating the Jaguar
component fails, because my component has a IntegerHolder argument.

Any idea ?

Thanks.

Diego.

Daniel Coppersmith wrote in message <1opIcPyd$GA.327@forums.sybase.com>...
>It's on the SDN -- look under downloads, code samples, PowerDynamo...
>they're Dave Wolf's.
>
>(I've also sent them to you off line, let me know if you didn't get them).
>
>Daniel
>
>Develop Informatica <suporte@develop.com.br> wrote in message
>news:Tvi5zIyd$GA.327@forums.sybase.com...
>> Fine!
>>
>> And where is the JavaWrappers.ssc file ?
>>
>> Thanks.
>>
>> Diego.
>>
>> Daniel Coppersmith wrote in message ...
>> >Here's a sample script that calls Dave Wolf's JavaWrapper classes...
this
>> >uses a string as the InOut, but it is easily converted into integers.
>> >
>> ><!--SCRIPT
>> >
>> > import JavaWrappers.ssc;
>> >
>> > <...snip...>
>> >
>> > // Create holder objects for the ByReference parameters.
>> > ls_hldrEmpUID = java.CreateObject("org.omg.CORBA.StringHolder", "
");
>> >
>> > // Call the validate login component
>> > ll_rc = nvo_login.of_validatelogin(ls_user, ls_password,
>> ls_hldrEmpUID);
>> >
>> > if (ll_rc == 1)
>> > {
>> > // The logon was successful. Retrieve the ByReference parameter
>> >values out of the holder into the
>> > // variables with the use of a helper variable.
>> >
>> > ls_hlprEmpUID = new JavaFieldHelper(ls_hldrEmpUID);
>> >
>> > // If the helper object is null, then there is a problem
>(probably
>> >with the import of the
>> > // wrapper classes. Error out.
>> >
>> > if (ls_hlprEmpUID == null)
>> > {
>> > document.writeln("<BR><FONT SIZE=+2 COLOR=RED>ERROR IN " +
>> >document.location + "</FONT><BR>");
>> > document.writeln(site.GetErrorInfo());
>> > exit;
>> > }
>> >
>> > ls_empUID = ls_hlprEmpUID.getString("value");
>> >
>> > <... snip ...>
>> >-->
>> >
>> >
>> >Develop Informatica <suporte@develop.com.br> wrote in message
>> >news:exQ5z$xd$GA.324@forums.sybase.com...
>> >> Hi,
>> >>
>> >> I would like to call a Java component in Jaguar from a Dynamo script,
>and
>> >> return an integer from that component.
>> >>
>> >> the method:
>> >> public String myMethod( IntegerHolder in_out ) {
>> >> in_out.value = 9999;
>> >> return ""
>> >> }
>> >>
>> >> Dynamo script:
>> >> var ref_var
>> >> ...
>> >> jag.myMethod( ref_var );
>> >>
>> >> It seems pretty straightforward, but I can't make it work.
>> >> I have read in old thread about JavaWrappers, but I couldn't find
>> anything
>> >> clear.
>> >>
>> >> Any help ?
>> >>
>> >> TIA
>> >> Diego.
>> >>
>> >>
>> >>
>> >
>> >
>> >
>> >
>>
>>
>
>


Daniel Coppersmith Posted on 2000-02-14 20:29:08.0Z
Newsgroups: sybase.public.easerver
Reply-To: "Daniel Coppersmith" <daniel@NO.SPAM.infrontsoftware.com>
From: "Daniel Coppersmith" <daniel@NO.SPAM.infrontsoftware.com>
Subject: Re: passing IntegerHolder as Inout from Dynamo to Jaguar
Date: Mon, 14 Feb 2000 15:29:08 -0500
Lines: 140
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: 168.191.108.45
Message-ID: <347_ZWbN2wyd$GA.184@forums.sybase.com>
References: <347_exQ5z$xd$GA.324@forums.sybase.com> <347_hk$6nGyd$GA.149@forums.sybase.com> <347_Tvi5zIyd$GA.327@forums.sybase.com> <347_1opIcPyd$GA.327@forums.sybase.com> <347_YDmXynyd$GA.149@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28722
Article PK: 160845

Try:

obj = java.CreateObject( "org.omg.CORBA.IntegerHolder", "0");

(if that doesn't work, get rid of the quotes around the zero...)

Develop Informatica <suporte@develop.com.br> wrote in message
news:YDmXynyd$GA.149@forums.sybase.com...
> Daniel,
>
> Thanks for sending the file.
>
> BUT, I am having some problems with IntHolder. When calling
>
> obj = java.CreateObject( "org.omg.CORBA.IntHolder", " "), I get "Invalid
> Object for method"
>
> I tried "com.sybase.jaguar.util.IntegerHolder", but unsuccessfully.
>
> With StringHolder I haven't got that message, but creating the Jaguar
> component fails, because my component has a IntegerHolder argument.
>
> Any idea ?
>
> Thanks.
>
> Diego.
>
> Daniel Coppersmith wrote in message <1opIcPyd$GA.327@forums.sybase.com>...
> >It's on the SDN -- look under downloads, code samples, PowerDynamo...
> >they're Dave Wolf's.
> >
> >(I've also sent them to you off line, let me know if you didn't get
them).
> >
> >Daniel
> >
> >Develop Informatica <suporte@develop.com.br> wrote in message
> >news:Tvi5zIyd$GA.327@forums.sybase.com...
> >> Fine!
> >>
> >> And where is the JavaWrappers.ssc file ?
> >>
> >> Thanks.
> >>
> >> Diego.
> >>
> >> Daniel Coppersmith wrote in message ...
> >> >Here's a sample script that calls Dave Wolf's JavaWrapper classes...
> this
> >> >uses a string as the InOut, but it is easily converted into integers.
> >> >
> >> ><!--SCRIPT
> >> >
> >> > import JavaWrappers.ssc;
> >> >
> >> > <...snip...>
> >> >
> >> > // Create holder objects for the ByReference parameters.
> >> > ls_hldrEmpUID = java.CreateObject("org.omg.CORBA.StringHolder", "
> ");
> >> >
> >> > // Call the validate login component
> >> > ll_rc = nvo_login.of_validatelogin(ls_user, ls_password,
> >> ls_hldrEmpUID);
> >> >
> >> > if (ll_rc == 1)
> >> > {
> >> > // The logon was successful. Retrieve the ByReference
parameter
> >> >values out of the holder into the
> >> > // variables with the use of a helper variable.
> >> >
> >> > ls_hlprEmpUID = new JavaFieldHelper(ls_hldrEmpUID);
> >> >
> >> > // If the helper object is null, then there is a problem
> >(probably
> >> >with the import of the
> >> > // wrapper classes. Error out.
> >> >
> >> > if (ls_hlprEmpUID == null)
> >> > {
> >> > document.writeln("<BR><FONT SIZE=+2 COLOR=RED>ERROR IN " +
> >> >document.location + "</FONT><BR>");
> >> > document.writeln(site.GetErrorInfo());
> >> > exit;
> >> > }
> >> >
> >> > ls_empUID = ls_hlprEmpUID.getString("value");
> >> >
> >> > <... snip ...>
> >> >-->
> >> >
> >> >
> >> >Develop Informatica <suporte@develop.com.br> wrote in message
> >> >news:exQ5z$xd$GA.324@forums.sybase.com...
> >> >> Hi,
> >> >>
> >> >> I would like to call a Java component in Jaguar from a Dynamo
script,
> >and
> >> >> return an integer from that component.
> >> >>
> >> >> the method:
> >> >> public String myMethod( IntegerHolder in_out ) {
> >> >> in_out.value = 9999;
> >> >> return ""
> >> >> }
> >> >>
> >> >> Dynamo script:
> >> >> var ref_var
> >> >> ...
> >> >> jag.myMethod( ref_var );
> >> >>
> >> >> It seems pretty straightforward, but I can't make it work.
> >> >> I have read in old thread about JavaWrappers, but I couldn't find
> >> anything
> >> >> clear.
> >> >>
> >> >> Any help ?
> >> >>
> >> >> TIA
> >> >> Diego.
> >> >>
> >> >>
> >> >>
> >> >
> >> >
> >> >
> >> >
> >>
> >>
> >
> >
>
>


Dave Wolf [Sybase] Posted on 2000-02-14 23:42:06.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: passing IntegerHolder as Inout from Dynamo to Jaguar
Date: Mon, 14 Feb 2000 18:42:06 -0500
Lines: 155
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.63
Message-ID: <347_QBoDYW0d$GA.332@forums.sybase.com>
References: <347_exQ5z$xd$GA.324@forums.sybase.com> <347_hk$6nGyd$GA.149@forums.sybase.com> <347_Tvi5zIyd$GA.327@forums.sybase.com> <347_1opIcPyd$GA.327@forums.sybase.com> <347_YDmXynyd$GA.149@forums.sybase.com> <347_ZWbN2wyd$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:28699
Article PK: 160826

Try this

obj = java.CreateObject( "org.omg.CORBA.IntegerHolder", parseInt(0));

Dave Wolf
Internet Applications Division

Daniel Coppersmith <daniel@NO.SPAM.infrontsoftware.com> wrote in message
news:ZWbN2wyd$GA.184@forums.sybase.com...
> Try:
>
> obj = java.CreateObject( "org.omg.CORBA.IntegerHolder", "0");
>
> (if that doesn't work, get rid of the quotes around the zero...)
>
>
>
> Develop Informatica <suporte@develop.com.br> wrote in message
> news:YDmXynyd$GA.149@forums.sybase.com...
> > Daniel,
> >
> > Thanks for sending the file.
> >
> > BUT, I am having some problems with IntHolder. When calling
> >
> > obj = java.CreateObject( "org.omg.CORBA.IntHolder", " "), I get "Invalid
> > Object for method"
> >
> > I tried "com.sybase.jaguar.util.IntegerHolder", but unsuccessfully.
> >
> > With StringHolder I haven't got that message, but creating the Jaguar
> > component fails, because my component has a IntegerHolder argument.
> >
> > Any idea ?
> >
> > Thanks.
> >
> > Diego.
> >
> > Daniel Coppersmith wrote in message
<1opIcPyd$GA.327@forums.sybase.com>...
> > >It's on the SDN -- look under downloads, code samples, PowerDynamo...
> > >they're Dave Wolf's.
> > >
> > >(I've also sent them to you off line, let me know if you didn't get
> them).
> > >
> > >Daniel
> > >
> > >Develop Informatica <suporte@develop.com.br> wrote in message
> > >news:Tvi5zIyd$GA.327@forums.sybase.com...
> > >> Fine!
> > >>
> > >> And where is the JavaWrappers.ssc file ?
> > >>
> > >> Thanks.
> > >>
> > >> Diego.
> > >>
> > >> Daniel Coppersmith wrote in message ...
> > >> >Here's a sample script that calls Dave Wolf's JavaWrapper classes...
> > this
> > >> >uses a string as the InOut, but it is easily converted into
integers.
> > >> >
> > >> ><!--SCRIPT
> > >> >
> > >> > import JavaWrappers.ssc;
> > >> >
> > >> > <...snip...>
> > >> >
> > >> > // Create holder objects for the ByReference parameters.
> > >> > ls_hldrEmpUID = java.CreateObject("org.omg.CORBA.StringHolder",
"
> > ");
> > >> >
> > >> > // Call the validate login component
> > >> > ll_rc = nvo_login.of_validatelogin(ls_user, ls_password,
> > >> ls_hldrEmpUID);
> > >> >
> > >> > if (ll_rc == 1)
> > >> > {
> > >> > // The logon was successful. Retrieve the ByReference
> parameter
> > >> >values out of the holder into the
> > >> > // variables with the use of a helper variable.
> > >> >
> > >> > ls_hlprEmpUID = new JavaFieldHelper(ls_hldrEmpUID);
> > >> >
> > >> > // If the helper object is null, then there is a problem
> > >(probably
> > >> >with the import of the
> > >> > // wrapper classes. Error out.
> > >> >
> > >> > if (ls_hlprEmpUID == null)
> > >> > {
> > >> > document.writeln("<BR><FONT SIZE=+2 COLOR=RED>ERROR IN "
+
> > >> >document.location + "</FONT><BR>");
> > >> > document.writeln(site.GetErrorInfo());
> > >> > exit;
> > >> > }
> > >> >
> > >> > ls_empUID = ls_hlprEmpUID.getString("value");
> > >> >
> > >> > <... snip ...>
> > >> >-->
> > >> >
> > >> >
> > >> >Develop Informatica <suporte@develop.com.br> wrote in message
> > >> >news:exQ5z$xd$GA.324@forums.sybase.com...
> > >> >> Hi,
> > >> >>
> > >> >> I would like to call a Java component in Jaguar from a Dynamo
> script,
> > >and
> > >> >> return an integer from that component.
> > >> >>
> > >> >> the method:
> > >> >> public String myMethod( IntegerHolder in_out ) {
> > >> >> in_out.value = 9999;
> > >> >> return ""
> > >> >> }
> > >> >>
> > >> >> Dynamo script:
> > >> >> var ref_var
> > >> >> ...
> > >> >> jag.myMethod( ref_var );
> > >> >>
> > >> >> It seems pretty straightforward, but I can't make it work.
> > >> >> I have read in old thread about JavaWrappers, but I couldn't find
> > >> anything
> > >> >> clear.
> > >> >>
> > >> >> Any help ?
> > >> >>
> > >> >> TIA
> > >> >> Diego.
> > >> >>
> > >> >>
> > >> >>
> > >> >
> > >> >
> > >> >
> > >> >
> > >>
> > >>
> > >
> > >
> >
> >
>
>


Develop Informatica Posted on 2000-02-14 22:46:27.0Z
Newsgroups: sybase.public.easerver
From: "Develop Informatica" <suporte@develop.com.br>
Subject: Re: passing IntegerHolder as Inout from Dynamo to Jaguar
Date: Mon, 14 Feb 2000 19:46:27 -0300
Lines: 152
X-Newsreader: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
NNTP-Posting-Host: 200.248.92.2
Message-ID: <347_wi6cISzd$GA.96@forums.sybase.com>
References: <347_exQ5z$xd$GA.324@forums.sybase.com> <347_hk$6nGyd$GA.149@forums.sybase.com> <347_Tvi5zIyd$GA.327@forums.sybase.com> <347_1opIcPyd$GA.327@forums.sybase.com> <347_YDmXynyd$GA.149@forums.sybase.com> <347_ZWbN2wyd$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:28715
Article PK: 160839

We are going forward. I can call the method, but I can't get the value in
the Dynamo Script. Always Zero (0). I am calling

obj.getInt("value");

Is that right ? another idea ?

Daniel Coppersmith wrote in message ...
>Try:
>
>obj = java.CreateObject( "org.omg.CORBA.IntegerHolder", "0");
>
>(if that doesn't work, get rid of the quotes around the zero...)
>
>
>
>Develop Informatica <suporte@develop.com.br> wrote in message
>news:YDmXynyd$GA.149@forums.sybase.com...
>> Daniel,
>>
>> Thanks for sending the file.
>>
>> BUT, I am having some problems with IntHolder. When calling
>>
>> obj = java.CreateObject( "org.omg.CORBA.IntHolder", " "), I get "Invalid
>> Object for method"
>>
>> I tried "com.sybase.jaguar.util.IntegerHolder", but unsuccessfully.
>>
>> With StringHolder I haven't got that message, but creating the Jaguar
>> component fails, because my component has a IntegerHolder argument.
>>
>> Any idea ?
>>
>> Thanks.
>>
>> Diego.
>>
>> Daniel Coppersmith wrote in message
<1opIcPyd$GA.327@forums.sybase.com>...
>> >It's on the SDN -- look under downloads, code samples, PowerDynamo...
>> >they're Dave Wolf's.
>> >
>> >(I've also sent them to you off line, let me know if you didn't get
>them).
>> >
>> >Daniel
>> >
>> >Develop Informatica <suporte@develop.com.br> wrote in message
>> >news:Tvi5zIyd$GA.327@forums.sybase.com...
>> >> Fine!
>> >>
>> >> And where is the JavaWrappers.ssc file ?
>> >>
>> >> Thanks.
>> >>
>> >> Diego.
>> >>
>> >> Daniel Coppersmith wrote in message ...
>> >> >Here's a sample script that calls Dave Wolf's JavaWrapper classes...
>> this
>> >> >uses a string as the InOut, but it is easily converted into integers.
>> >> >
>> >> ><!--SCRIPT
>> >> >
>> >> > import JavaWrappers.ssc;
>> >> >
>> >> > <...snip...>
>> >> >
>> >> > // Create holder objects for the ByReference parameters.
>> >> > ls_hldrEmpUID = java.CreateObject("org.omg.CORBA.StringHolder", "
>> ");
>> >> >
>> >> > // Call the validate login component
>> >> > ll_rc = nvo_login.of_validatelogin(ls_user, ls_password,
>> >> ls_hldrEmpUID);
>> >> >
>> >> > if (ll_rc == 1)
>> >> > {
>> >> > // The logon was successful. Retrieve the ByReference
>parameter
>> >> >values out of the holder into the
>> >> > // variables with the use of a helper variable.
>> >> >
>> >> > ls_hlprEmpUID = new JavaFieldHelper(ls_hldrEmpUID);
>> >> >
>> >> > // If the helper object is null, then there is a problem
>> >(probably
>> >> >with the import of the
>> >> > // wrapper classes. Error out.
>> >> >
>> >> > if (ls_hlprEmpUID == null)
>> >> > {
>> >> > document.writeln("<BR><FONT SIZE=+2 COLOR=RED>ERROR IN "
+
>> >> >document.location + "</FONT><BR>");
>> >> > document.writeln(site.GetErrorInfo());
>> >> > exit;
>> >> > }
>> >> >
>> >> > ls_empUID = ls_hlprEmpUID.getString("value");
>> >> >
>> >> > <... snip ...>
>> >> >-->
>> >> >
>> >> >
>> >> >Develop Informatica <suporte@develop.com.br> wrote in message
>> >> >news:exQ5z$xd$GA.324@forums.sybase.com...
>> >> >> Hi,
>> >> >>
>> >> >> I would like to call a Java component in Jaguar from a Dynamo
>script,
>> >and
>> >> >> return an integer from that component.
>> >> >>
>> >> >> the method:
>> >> >> public String myMethod( IntegerHolder in_out ) {
>> >> >> in_out.value = 9999;
>> >> >> return ""
>> >> >> }
>> >> >>
>> >> >> Dynamo script:
>> >> >> var ref_var
>> >> >> ...
>> >> >> jag.myMethod( ref_var );
>> >> >>
>> >> >> It seems pretty straightforward, but I can't make it work.
>> >> >> I have read in old thread about JavaWrappers, but I couldn't find
>> >> anything
>> >> >> clear.
>> >> >>
>> >> >> Any help ?
>> >> >>
>> >> >> TIA
>> >> >> Diego.
>> >> >>
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >> >
>> >> >
>> >>
>> >>
>> >
>> >
>>
>>
>
>


Develop Informatica Posted on 2000-02-14 23:09:24.0Z
Newsgroups: sybase.public.easerver
From: "Develop Informatica" <suporte@develop.com.br>
Subject: Re: passing IntegerHolder as Inout from Dynamo to Jaguar
Date: Mon, 14 Feb 2000 20:09:24 -0300
Lines: 167
X-Newsreader: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
NNTP-Posting-Host: 200.248.92.2
Message-ID: <347_UgfR9ezd$GA.184@forums.sybase.com>
References: <347_exQ5z$xd$GA.324@forums.sybase.com> <347_hk$6nGyd$GA.149@forums.sybase.com> <347_Tvi5zIyd$GA.327@forums.sybase.com> <347_1opIcPyd$GA.327@forums.sybase.com> <347_YDmXynyd$GA.149@forums.sybase.com> <347_ZWbN2wyd$GA.184@forums.sybase.com> <347_wi6cISzd$GA.96@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28711
Article PK: 160834

Finally!

I was creating another instance of IntegerHolder in the component. Now it is
correct!.
StringHolder is not working, but I'll let this aside for now.

Thank you very much!

Diego.

Develop Informatica wrote in message ...
>We are going forward. I can call the method, but I can't get the value in
>the Dynamo Script. Always Zero (0). I am calling
>
>obj.getInt("value");
>
>Is that right ? another idea ?
>
>Daniel Coppersmith wrote in message ...
>>Try:
>>
>>obj = java.CreateObject( "org.omg.CORBA.IntegerHolder", "0");
>>
>>(if that doesn't work, get rid of the quotes around the zero...)
>>
>>
>>
>>Develop Informatica <suporte@develop.com.br> wrote in message
>>news:YDmXynyd$GA.149@forums.sybase.com...
>>> Daniel,
>>>
>>> Thanks for sending the file.
>>>
>>> BUT, I am having some problems with IntHolder. When calling
>>>
>>> obj = java.CreateObject( "org.omg.CORBA.IntHolder", " "), I get "Invalid
>>> Object for method"
>>>
>>> I tried "com.sybase.jaguar.util.IntegerHolder", but unsuccessfully.
>>>
>>> With StringHolder I haven't got that message, but creating the Jaguar
>>> component fails, because my component has a IntegerHolder argument.
>>>
>>> Any idea ?
>>>
>>> Thanks.
>>>
>>> Diego.
>>>
>>> Daniel Coppersmith wrote in message
><1opIcPyd$GA.327@forums.sybase.com>...
>>> >It's on the SDN -- look under downloads, code samples, PowerDynamo...
>>> >they're Dave Wolf's.
>>> >
>>> >(I've also sent them to you off line, let me know if you didn't get
>>them).
>>> >
>>> >Daniel
>>> >
>>> >Develop Informatica <suporte@develop.com.br> wrote in message
>>> >news:Tvi5zIyd$GA.327@forums.sybase.com...
>>> >> Fine!
>>> >>
>>> >> And where is the JavaWrappers.ssc file ?
>>> >>
>>> >> Thanks.
>>> >>
>>> >> Diego.
>>> >>
>>> >> Daniel Coppersmith wrote in message ...
>>> >> >Here's a sample script that calls Dave Wolf's JavaWrapper classes...
>>> this
>>> >> >uses a string as the InOut, but it is easily converted into
integers.
>>> >> >
>>> >> ><!--SCRIPT
>>> >> >
>>> >> > import JavaWrappers.ssc;
>>> >> >
>>> >> > <...snip...>
>>> >> >
>>> >> > // Create holder objects for the ByReference parameters.
>>> >> > ls_hldrEmpUID = java.CreateObject("org.omg.CORBA.StringHolder",
"
>>> ");
>>> >> >
>>> >> > // Call the validate login component
>>> >> > ll_rc = nvo_login.of_validatelogin(ls_user, ls_password,
>>> >> ls_hldrEmpUID);
>>> >> >
>>> >> > if (ll_rc == 1)
>>> >> > {
>>> >> > // The logon was successful. Retrieve the ByReference
>>parameter
>>> >> >values out of the holder into the
>>> >> > // variables with the use of a helper variable.
>>> >> >
>>> >> > ls_hlprEmpUID = new JavaFieldHelper(ls_hldrEmpUID);
>>> >> >
>>> >> > // If the helper object is null, then there is a problem
>>> >(probably
>>> >> >with the import of the
>>> >> > // wrapper classes. Error out.
>>> >> >
>>> >> > if (ls_hlprEmpUID == null)
>>> >> > {
>>> >> > document.writeln("<BR><FONT SIZE=+2 COLOR=RED>ERROR IN "
>+
>>> >> >document.location + "</FONT><BR>");
>>> >> > document.writeln(site.GetErrorInfo());
>>> >> > exit;
>>> >> > }
>>> >> >
>>> >> > ls_empUID = ls_hlprEmpUID.getString("value");
>>> >> >
>>> >> > <... snip ...>
>>> >> >-->
>>> >> >
>>> >> >
>>> >> >Develop Informatica <suporte@develop.com.br> wrote in message
>>> >> >news:exQ5z$xd$GA.324@forums.sybase.com...
>>> >> >> Hi,
>>> >> >>
>>> >> >> I would like to call a Java component in Jaguar from a Dynamo
>>script,
>>> >and
>>> >> >> return an integer from that component.
>>> >> >>
>>> >> >> the method:
>>> >> >> public String myMethod( IntegerHolder in_out ) {
>>> >> >> in_out.value = 9999;
>>> >> >> return ""
>>> >> >> }
>>> >> >>
>>> >> >> Dynamo script:
>>> >> >> var ref_var
>>> >> >> ...
>>> >> >> jag.myMethod( ref_var );
>>> >> >>
>>> >> >> It seems pretty straightforward, but I can't make it work.
>>> >> >> I have read in old thread about JavaWrappers, but I couldn't find
>>> >> anything
>>> >> >> clear.
>>> >> >>
>>> >> >> Any help ?
>>> >> >>
>>> >> >> TIA
>>> >> >> Diego.
>>> >> >>
>>> >> >>
>>> >> >>
>>> >> >
>>> >> >
>>> >> >
>>> >> >
>>> >>
>>> >>
>>> >
>>> >
>>>
>>>
>>
>>
>
>


Dave Wolf [Sybase] Posted on 2000-02-14 23:47:39.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: passing IntegerHolder as Inout from Dynamo to Jaguar
Date: Mon, 14 Feb 2000 18:47:39 -0500
Lines: 185
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.63
Message-ID: <347_3H3SfZ0d$GA.332@forums.sybase.com>
References: <347_exQ5z$xd$GA.324@forums.sybase.com> <347_hk$6nGyd$GA.149@forums.sybase.com> <347_Tvi5zIyd$GA.327@forums.sybase.com> <347_1opIcPyd$GA.327@forums.sybase.com> <347_YDmXynyd$GA.149@forums.sybase.com> <347_ZWbN2wyd$GA.184@forums.sybase.com> <347_wi6cISzd$GA.96@forums.sybase.com> <347_UgfR9ezd$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:28692
Article PK: 160818

Dont forget I alone support the reflection classes so if you find bugs in
them, support comes from here not by calling support.

Glad its working out.

Dave Wolf
Internet Applications Division

Develop Informatica <suporte@develop.com.br> wrote in message
news:UgfR9ezd$GA.184@forums.sybase.com...
> Finally!
>
> I was creating another instance of IntegerHolder in the component. Now it
is
> correct!.
> StringHolder is not working, but I'll let this aside for now.
>
> Thank you very much!
>
> Diego.
>
> Develop Informatica wrote in message ...
> >We are going forward. I can call the method, but I can't get the value in
> >the Dynamo Script. Always Zero (0). I am calling
> >
> >obj.getInt("value");
> >
> >Is that right ? another idea ?
> >
> >Daniel Coppersmith wrote in message ...
> >>Try:
> >>
> >>obj = java.CreateObject( "org.omg.CORBA.IntegerHolder", "0");
> >>
> >>(if that doesn't work, get rid of the quotes around the zero...)
> >>
> >>
> >>
> >>Develop Informatica <suporte@develop.com.br> wrote in message
> >>news:YDmXynyd$GA.149@forums.sybase.com...
> >>> Daniel,
> >>>
> >>> Thanks for sending the file.
> >>>
> >>> BUT, I am having some problems with IntHolder. When calling
> >>>
> >>> obj = java.CreateObject( "org.omg.CORBA.IntHolder", " "), I get
"Invalid
> >>> Object for method"
> >>>
> >>> I tried "com.sybase.jaguar.util.IntegerHolder", but unsuccessfully.
> >>>
> >>> With StringHolder I haven't got that message, but creating the Jaguar
> >>> component fails, because my component has a IntegerHolder argument.
> >>>
> >>> Any idea ?
> >>>
> >>> Thanks.
> >>>
> >>> Diego.
> >>>
> >>> Daniel Coppersmith wrote in message
> ><1opIcPyd$GA.327@forums.sybase.com>...
> >>> >It's on the SDN -- look under downloads, code samples, PowerDynamo...
> >>> >they're Dave Wolf's.
> >>> >
> >>> >(I've also sent them to you off line, let me know if you didn't get
> >>them).
> >>> >
> >>> >Daniel
> >>> >
> >>> >Develop Informatica <suporte@develop.com.br> wrote in message
> >>> >news:Tvi5zIyd$GA.327@forums.sybase.com...
> >>> >> Fine!
> >>> >>
> >>> >> And where is the JavaWrappers.ssc file ?
> >>> >>
> >>> >> Thanks.
> >>> >>
> >>> >> Diego.
> >>> >>
> >>> >> Daniel Coppersmith wrote in message ...
> >>> >> >Here's a sample script that calls Dave Wolf's JavaWrapper
classes...
> >>> this
> >>> >> >uses a string as the InOut, but it is easily converted into
> integers.
> >>> >> >
> >>> >> ><!--SCRIPT
> >>> >> >
> >>> >> > import JavaWrappers.ssc;
> >>> >> >
> >>> >> > <...snip...>
> >>> >> >
> >>> >> > // Create holder objects for the ByReference parameters.
> >>> >> > ls_hldrEmpUID =
java.CreateObject("org.omg.CORBA.StringHolder",
> "
> >>> ");
> >>> >> >
> >>> >> > // Call the validate login component
> >>> >> > ll_rc = nvo_login.of_validatelogin(ls_user, ls_password,
> >>> >> ls_hldrEmpUID);
> >>> >> >
> >>> >> > if (ll_rc == 1)
> >>> >> > {
> >>> >> > // The logon was successful. Retrieve the ByReference
> >>parameter
> >>> >> >values out of the holder into the
> >>> >> > // variables with the use of a helper variable.
> >>> >> >
> >>> >> > ls_hlprEmpUID = new JavaFieldHelper(ls_hldrEmpUID);
> >>> >> >
> >>> >> > // If the helper object is null, then there is a problem
> >>> >(probably
> >>> >> >with the import of the
> >>> >> > // wrapper classes. Error out.
> >>> >> >
> >>> >> > if (ls_hlprEmpUID == null)
> >>> >> > {
> >>> >> > document.writeln("<BR><FONT SIZE=+2 COLOR=RED>ERROR IN
"
> >+
> >>> >> >document.location + "</FONT><BR>");
> >>> >> > document.writeln(site.GetErrorInfo());
> >>> >> > exit;
> >>> >> > }
> >>> >> >
> >>> >> > ls_empUID = ls_hlprEmpUID.getString("value");
> >>> >> >
> >>> >> > <... snip ...>
> >>> >> >-->
> >>> >> >
> >>> >> >
> >>> >> >Develop Informatica <suporte@develop.com.br> wrote in message
> >>> >> >news:exQ5z$xd$GA.324@forums.sybase.com...
> >>> >> >> Hi,
> >>> >> >>
> >>> >> >> I would like to call a Java component in Jaguar from a Dynamo
> >>script,
> >>> >and
> >>> >> >> return an integer from that component.
> >>> >> >>
> >>> >> >> the method:
> >>> >> >> public String myMethod( IntegerHolder in_out ) {
> >>> >> >> in_out.value = 9999;
> >>> >> >> return ""
> >>> >> >> }
> >>> >> >>
> >>> >> >> Dynamo script:
> >>> >> >> var ref_var
> >>> >> >> ...
> >>> >> >> jag.myMethod( ref_var );
> >>> >> >>
> >>> >> >> It seems pretty straightforward, but I can't make it work.
> >>> >> >> I have read in old thread about JavaWrappers, but I couldn't
find
> >>> >> anything
> >>> >> >> clear.
> >>> >> >>
> >>> >> >> Any help ?
> >>> >> >>
> >>> >> >> TIA
> >>> >> >> Diego.
> >>> >> >>
> >>> >> >>
> >>> >> >>
> >>> >> >
> >>> >> >
> >>> >> >
> >>> >> >
> >>> >>
> >>> >>
> >>> >
> >>> >
> >>>
> >>>
> >>
> >>
> >
> >
>
>


Develop Informatica Posted on 2000-02-14 22:04:38.0Z
Newsgroups: sybase.public.easerver
From: "Develop Informatica" <suporte@develop.com.br>
Subject: Re: passing IntegerHolder as Inout from Dynamo to Jaguar
Date: Mon, 14 Feb 2000 19:04:38 -0300
Lines: 156
X-Newsreader: Microsoft Outlook Express 4.72.3110.5
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3
NNTP-Posting-Host: 200.248.92.2
Message-ID: <347_635pw6yd$GA.96@forums.sybase.com>
References: <347_exQ5z$xd$GA.324@forums.sybase.com> <347_hk$6nGyd$GA.149@forums.sybase.com> <347_Tvi5zIyd$GA.327@forums.sybase.com> <347_1opIcPyd$GA.327@forums.sybase.com> <347_YDmXynyd$GA.149@forums.sybase.com> <347_ZWbN2wyd$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:28721
Article PK: 160844

Just for a shot, I changed the component's argument to StringHolder, and
tried with your snippet.

When calling the method I get a message "NoSuchMethodError", regardless
using "", " " or none.

I will try integer again... BTW, CORBA has IntHolder, not IntegerHolder, as
in your last message.

see later.

Daniel Coppersmith wrote in message ...
>Try:
>
>obj = java.CreateObject( "org.omg.CORBA.IntegerHolder", "0");
>
>(if that doesn't work, get rid of the quotes around the zero...)
>
>
>
>Develop Informatica <suporte@develop.com.br> wrote in message
>news:YDmXynyd$GA.149@forums.sybase.com...
>> Daniel,
>>
>> Thanks for sending the file.
>>
>> BUT, I am having some problems with IntHolder. When calling
>>
>> obj = java.CreateObject( "org.omg.CORBA.IntHolder", " "), I get "Invalid
>> Object for method"
>>
>> I tried "com.sybase.jaguar.util.IntegerHolder", but unsuccessfully.
>>
>> With StringHolder I haven't got that message, but creating the Jaguar
>> component fails, because my component has a IntegerHolder argument.
>>
>> Any idea ?
>>
>> Thanks.
>>
>> Diego.
>>
>> Daniel Coppersmith wrote in message
<1opIcPyd$GA.327@forums.sybase.com>...
>> >It's on the SDN -- look under downloads, code samples, PowerDynamo...
>> >they're Dave Wolf's.
>> >
>> >(I've also sent them to you off line, let me know if you didn't get
>them).
>> >
>> >Daniel
>> >
>> >Develop Informatica <suporte@develop.com.br> wrote in message
>> >news:Tvi5zIyd$GA.327@forums.sybase.com...
>> >> Fine!
>> >>
>> >> And where is the JavaWrappers.ssc file ?
>> >>
>> >> Thanks.
>> >>
>> >> Diego.
>> >>
>> >> Daniel Coppersmith wrote in message ...
>> >> >Here's a sample script that calls Dave Wolf's JavaWrapper classes...
>> this
>> >> >uses a string as the InOut, but it is easily converted into integers.
>> >> >
>> >> ><!--SCRIPT
>> >> >
>> >> > import JavaWrappers.ssc;
>> >> >
>> >> > <...snip...>
>> >> >
>> >> > // Create holder objects for the ByReference parameters.
>> >> > ls_hldrEmpUID = java.CreateObject("org.omg.CORBA.StringHolder", "
>> ");
>> >> >
>> >> > // Call the validate login component
>> >> > ll_rc = nvo_login.of_validatelogin(ls_user, ls_password,
>> >> ls_hldrEmpUID);
>> >> >
>> >> > if (ll_rc == 1)
>> >> > {
>> >> > // The logon was successful. Retrieve the ByReference
>parameter
>> >> >values out of the holder into the
>> >> > // variables with the use of a helper variable.
>> >> >
>> >> > ls_hlprEmpUID = new JavaFieldHelper(ls_hldrEmpUID);
>> >> >
>> >> > // If the helper object is null, then there is a problem
>> >(probably
>> >> >with the import of the
>> >> > // wrapper classes. Error out.
>> >> >
>> >> > if (ls_hlprEmpUID == null)
>> >> > {
>> >> > document.writeln("<BR><FONT SIZE=+2 COLOR=RED>ERROR IN "
+
>> >> >document.location + "</FONT><BR>");
>> >> > document.writeln(site.GetErrorInfo());
>> >> > exit;
>> >> > }
>> >> >
>> >> > ls_empUID = ls_hlprEmpUID.getString("value");
>> >> >
>> >> > <... snip ...>
>> >> >-->
>> >> >
>> >> >
>> >> >Develop Informatica <suporte@develop.com.br> wrote in message
>> >> >news:exQ5z$xd$GA.324@forums.sybase.com...
>> >> >> Hi,
>> >> >>
>> >> >> I would like to call a Java component in Jaguar from a Dynamo
>script,
>> >and
>> >> >> return an integer from that component.
>> >> >>
>> >> >> the method:
>> >> >> public String myMethod( IntegerHolder in_out ) {
>> >> >> in_out.value = 9999;
>> >> >> return ""
>> >> >> }
>> >> >>
>> >> >> Dynamo script:
>> >> >> var ref_var
>> >> >> ...
>> >> >> jag.myMethod( ref_var );
>> >> >>
>> >> >> It seems pretty straightforward, but I can't make it work.
>> >> >> I have read in old thread about JavaWrappers, but I couldn't find
>> >> anything
>> >> >> clear.
>> >> >>
>> >> >> Any help ?
>> >> >>
>> >> >> TIA
>> >> >> Diego.
>> >> >>
>> >> >>
>> >> >>
>> >> >
>> >> >
>> >> >
>> >> >
>> >>
>> >>
>> >
>> >
>>
>>
>
>