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.

PB component from PowerDynamo

5 posts in General Discussion (old) Last posting was on 2000-02-13 21:30:21.0Z
Gilbert Posted on 2000-02-13 11:47:37.0Z
Newsgroups: sybase.public.easerver
From: "Gilbert" <tech@alvia.com>
Subject: PB component from PowerDynamo
Date: Sun, 13 Feb 2000 12:47:37 +0100
Lines: 29
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: 194.179.77.6
Message-ID: <347_pmId8nhd$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:28834
Article PK: 161215

Hi:

First question:

I would like to deploy a PB component in jaguar that returns a string, not a Datawindow, and call it
from Dynamo.
How do I have to deploy it (Jaguar component is right ?).
How do I have to call it from Dynamo. I only saw datawindow sample from now:

jagConn = new PSJaguarConnection("localhost:9000", "jagadmin", "", "DataWindow/HTMLGenerator",
false);

Second question:

In a NVO I have a function that call another function (f_clean_string) returning a datastore:

string s_str
ds_datastore = f_clean_string(s_str)

It seems that is not possible to have this king of function, deploying a jaguar component.
I also have a datastore as an instance variable of a NVO to use it between 2 functions, and I got
the same error.

Any help?
Many thanks.
Gilbert


Daniel Coppersmith Posted on 2000-02-13 16:00:35.0Z
Newsgroups: sybase.public.easerver
Reply-To: "Daniel Coppersmith" <daniel@NO.SPAM.infrontsoftware.com>
From: "Daniel Coppersmith" <daniel@NO.SPAM.infrontsoftware.com>
Subject: Re: PB component from PowerDynamo
Date: Sun, 13 Feb 2000 11:00:35 -0500
Lines: 95
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.43
Message-ID: <347_KgdD41jd$GA.327@forums.sybase.com>
References: <347_pmId8nhd$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:28833
Article PK: 161214

> I would like to deploy a PB component in jaguar that returns a string, not
a Datawindow, and call it

Yes you can do this. The HTML Generator actually returns a string (HTML
text), not a datawindow.

> How do I have to deploy it (Jaguar component is right ?).

Yes. You will:

(a) deploy it to Jaguar from PB
(b) use the Jaguar Manager (Sybase Central Java Edition) to generate
stubs/skeletons for the component (find the component in the package under
the server, right click on it -- select JDK 1.1)
(c) compile the stubs by going into a DOS prompt, changing to the
%JAGUAR%\HTML\Classes\packagename directory and typing javac *java
(d) copy the .class files to your powerDynamo folder
%powerdynamo%\class03\packagename )

I have a .BAT file that does this for me (note that drive P: is mapped to
the PD classes directory in step d above):

d:
cd %jaguar%
cd html\classes\eBeacon
javac *java
copy *.class p:\.
pause

> How do I have to call it from Dynamo. I only saw datawindow sample from
now:

Here's some code that I use:

var comp_obj = java.CreateComponent("packageName/componentName",
"iiop://serverName:9000", "jagadmin", "");
if (comp_obj == null)
{
document.writeln("<FONT SIZE=+1 Color=Red>ERROR:</FONT><BR>" +
site.GetErrorInfo());
exit;
}
var ls_result = comp_obj .of_functionName(ls_parm);

> It seems that is not possible to have this king of function, deploying a
jaguar component.
> I also have a datastore as an instance variable of a NVO to use it between
2 functions, and I got
> the same error.

It sounds like you need to check the "Include unreferenced objects in
consolidated PBD" option on the Libraries tab in the Properties window for
the project used to create your components in PB (man, that's a mouth full!)

Daniel

Gilbert <tech@alvia.com> wrote in message
news:pmId8nhd$GA.96@forums.sybase.com...
> Hi:
>
> First question:
>
> I would like to deploy a PB component in jaguar that returns a string, not
a Datawindow, and call it
> from Dynamo.
> How do I have to deploy it (Jaguar component is right ?).
> How do I have to call it from Dynamo. I only saw datawindow sample from
now:
>
> jagConn = new PSJaguarConnection("localhost:9000", "jagadmin", "",
"DataWindow/HTMLGenerator",
> false);
>
> Second question:
>
> In a NVO I have a function that call another function (f_clean_string)
returning a datastore:
>
> string s_str
> ds_datastore = f_clean_string(s_str)
>
> It seems that is not possible to have this king of function, deploying a
jaguar component.
> I also have a datastore as an instance variable of a NVO to use it between
2 functions, and I got
> the same error.
>
> Any help?
> Many thanks.
> Gilbert
>
>
>


Gilbert Posted on 2000-02-13 20:38:40.0Z
Newsgroups: sybase.public.easerver
From: "Gilbert" <tech@alvia.com>
Subject: Re: PB component from PowerDynamo
Date: Sun, 13 Feb 2000 21:38:40 +0100
Lines: 44
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: 194.179.77.6
Message-ID: <347_YCkvrQmd$GA.223@forums.sybase.com>
References: <347_pmId8nhd$GA.96@forums.sybase.com> <347_KgdD41jd$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:28819
Article PK: 160930

Thanks for your help.
I create a simple component with 1 function returning string. When I try to compile it I got the
following errors:

D:\Sybase\Jaguar CTS 3.0\html\classes\testpkg>javac *java
_st_n_testpkg.java:11: Superclass com.sybase.CORBA.ObjectRef of class testpkg._s
t_n_testpkg not found.
class _st_n_testpkg extends com.sybase.CORBA.ObjectRef implements n_testpkg
^
n_testpkg.java:11: Interface org.omg.CORBA.Object of interface testpkg.n_testpkg
not found.
public interface n_testpkg extends org.omg.CORBA.Object
^
n_testpkgHelper.java:13: Class org.omg.CORBA.portable.InputStream not found in t
ype declaration.
public static n_testpkg read
^
n_testpkgHelper.java:16: Class org.omg.CORBA.portable.InputStream not found in t
estpkg.n_testpkg read(org.omg.CORBA.portable.InputStream).
return narrow(_input.read_Object());
^
n_testpkgHelper.java:19: Class org.omg.CORBA.portable.OutputStream not found in
type declaration.
public static void write
^
n_testpkgHelper.java:23: Class org.omg.CORBA.portable.OutputStream not found in
void write(org.omg.CORBA.portable.OutputStream, testpkg.n_testpkg).
_output.write_Object(_object);
^
n_testpkgHelper.java:26: Class org.omg.CORBA.Object not found in type declaratio
n.
public static n_testpkg narrow
^
n_testpkgHelper.java:29: Class org.omg.CORBA.Object not found in testpkg.n_testp
kg narrow(org.omg.CORBA.Object).
if (_object._is_a("IDL:testpkg/n_testpkg:1.0"))
^
n_testpkgHelper.java:31: Class com.sybase.CORBA.ObjectRef not found in type decl
aration.
return new _st_n_testpkg((com.sybase.CORBA.ObjectRef)_object);
^
9 errors


Berndt Hamboeck Posted on 2000-02-13 21:30:21.0Z
Newsgroups: sybase.public.easerver
Date: Sun, 13 Feb 2000 22:30:21 +0100
From: Berndt Hamboeck <berndt.hamboeck@chello.at>
X-Mailer: Mozilla 4.6 [de]C-CCK-MCD (Win98; I)
X-Accept-Language: de,en
MIME-Version: 1.0
Subject: Re: PB component from PowerDynamo
Content-Type: text/plain; charset=iso-8859-2
Content-Transfer-Encoding: 7bit
Lines: 55
NNTP-Posting-Host: chello212186017079.11.vie.surfer.at 212.186.17.79
Message-ID: <347_38A7226D.79D0187E@chello.at>
References: <347_pmId8nhd$GA.96@forums.sybase.com> <347_KgdD41jd$GA.327@forums.sybase.com> <347_YCkvrQmd$GA.223@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28816
Article PK: 160927

Have you the classes (in the Jaguar installed directory) directory in your classpath?

Gilbert schrieb:

> Thanks for your help.
> I create a simple component with 1 function returning string. When I try to compile it I got the
> following errors:
>
> D:\Sybase\Jaguar CTS 3.0\html\classes\testpkg>javac *java
> _st_n_testpkg.java:11: Superclass com.sybase.CORBA.ObjectRef of class testpkg._s
> t_n_testpkg not found.
> class _st_n_testpkg extends com.sybase.CORBA.ObjectRef implements n_testpkg
> ^
> n_testpkg.java:11: Interface org.omg.CORBA.Object of interface testpkg.n_testpkg
> not found.
> public interface n_testpkg extends org.omg.CORBA.Object
> ^
> n_testpkgHelper.java:13: Class org.omg.CORBA.portable.InputStream not found in t
> ype declaration.
> public static n_testpkg read
> ^
> n_testpkgHelper.java:16: Class org.omg.CORBA.portable.InputStream not found in t
> estpkg.n_testpkg read(org.omg.CORBA.portable.InputStream).
> return narrow(_input.read_Object());
> ^
> n_testpkgHelper.java:19: Class org.omg.CORBA.portable.OutputStream not found in
> type declaration.
> public static void write
> ^
> n_testpkgHelper.java:23: Class org.omg.CORBA.portable.OutputStream not found in
> void write(org.omg.CORBA.portable.OutputStream, testpkg.n_testpkg).
> _output.write_Object(_object);
> ^
> n_testpkgHelper.java:26: Class org.omg.CORBA.Object not found in type declaratio
> n.
> public static n_testpkg narrow
> ^
> n_testpkgHelper.java:29: Class org.omg.CORBA.Object not found in testpkg.n_testp
> kg narrow(org.omg.CORBA.Object).
> if (_object._is_a("IDL:testpkg/n_testpkg:1.0"))
> ^
> n_testpkgHelper.java:31: Class com.sybase.CORBA.ObjectRef not found in type decl
> aration.
> return new _st_n_testpkg((com.sybase.CORBA.ObjectRef)_object);
> ^
> 9 errors


Dave Wolf [Sybase] Posted on 2000-02-13 21:16:39.0Z
Newsgroups: sybase.public.easerver
From: "Dave Wolf [Sybase]" <dwolf@sybase.com>
Subject: Re: PB component from PowerDynamo
Date: Sun, 13 Feb 2000 16:16:39 -0500
Lines: 66
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.25
Message-ID: <347_qxtIbgmd$GA.96@forums.sybase.com>
References: <347_pmId8nhd$GA.96@forums.sybase.com> <347_KgdD41jd$GA.327@forums.sybase.com> <347_YCkvrQmd$GA.223@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:28817
Article PK: 160928

Make sure that you add the Jag classes to your CLASSPATH

set CLASSPATH=%JAGUAR%\html\classes;%CLASSPATH%

Dave Wolf
Internet Applications Division

Gilbert <tech@alvia.com> wrote in message
news:YCkvrQmd$GA.223@forums.sybase.com...
> Thanks for your help.
> I create a simple component with 1 function returning string. When I try
to compile it I got the
> following errors:
>
> D:\Sybase\Jaguar CTS 3.0\html\classes\testpkg>javac *java
> _st_n_testpkg.java:11: Superclass com.sybase.CORBA.ObjectRef of class
testpkg._s
> t_n_testpkg not found.
> class _st_n_testpkg extends com.sybase.CORBA.ObjectRef implements
n_testpkg
> ^
> n_testpkg.java:11: Interface org.omg.CORBA.Object of interface
testpkg.n_testpkg
> not found.
> public interface n_testpkg extends org.omg.CORBA.Object
> ^
> n_testpkgHelper.java:13: Class org.omg.CORBA.portable.InputStream not
found in t
> ype declaration.
> public static n_testpkg read
> ^
> n_testpkgHelper.java:16: Class org.omg.CORBA.portable.InputStream not
found in t
> estpkg.n_testpkg read(org.omg.CORBA.portable.InputStream).
> return narrow(_input.read_Object());
> ^
> n_testpkgHelper.java:19: Class org.omg.CORBA.portable.OutputStream not
found in
> type declaration.
> public static void write
> ^
> n_testpkgHelper.java:23: Class org.omg.CORBA.portable.OutputStream not
found in
> void write(org.omg.CORBA.portable.OutputStream, testpkg.n_testpkg).
> _output.write_Object(_object);
> ^
> n_testpkgHelper.java:26: Class org.omg.CORBA.Object not found in type
declaratio
> n.
> public static n_testpkg narrow
> ^
> n_testpkgHelper.java:29: Class org.omg.CORBA.Object not found in
testpkg.n_testp
> kg narrow(org.omg.CORBA.Object).
> if (_object._is_a("IDL:testpkg/n_testpkg:1.0"))
> ^
> n_testpkgHelper.java:31: Class com.sybase.CORBA.ObjectRef not found in
type decl
> aration.
> return new _st_n_testpkg((com.sybase.CORBA.ObjectRef)_object);
> ^
> 9 errors
>
>