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.

How to call a jaguar component from another componet ?

4 posts in General Discussion (old) Last posting was on 2000-03-10 16:50:42.0Z
Ewak Posted on 2000-03-10 06:07:32.0Z
Newsgroups: sybase.public.easerver
From: "Ewak" <ewak@md2.vsnl.net.in>
Subject: How to call a jaguar component from another componet ?
Date: Fri, 10 Mar 2000 11:37:32 +0530
Lines: 18
X-Newsreader: Microsoft Outlook Express 4.72.3612.1700
X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3612.1700
NNTP-Posting-Host: 203.197.139.24
Message-ID: <347_5QPrxdli$GA.74@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:26714
Article PK: 157700

Hi,

How to call the function in a jaguar component
from another jaguar component. ?

ie, when I call the jaguar component function via proxy from pb,
the called component's function should perform some other logic (available
in other component) by calling the other jaguar component internally.

So that my pb applicaion call only one component instead of call the two or
multiple
component.

Thanks in advance


Dean Jones [Team Sybase] Posted on 2000-03-10 16:50:42.0Z
Newsgroups: sybase.public.easerver
From: "Dean Jones [Team Sybase]" <dean_no_spam_@powerobjects.com>
Subject: Re: How to call a jaguar component from another componet ?
Date: Fri, 10 Mar 2000 10:50:42 -0600
Lines: 45
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: modem7.outtech.com 216.207.144.237
Message-ID: <347_7Hbj#Eri$GA.71@forums.sybase.com>
References: <347_5QPrxdli$GA.74@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:26664
Article PK: 157662

You can use the transactionserver object or create a new connection and call
createinstance.

transactionserver ts

this.GetContextService("transactionserver", ts )
ts.CreateInstance( ln_component, "mypackage/mycomponent" )

HTH

--

Dean Jones, CPD Professional
Team Sybase
PowerTeam, Inc.

Seminar on April 26 and 27, Don't Miss it!
www.powerobjects.com/seminar

http://www.powerobjects.com

Ewak <ewak@md2.vsnl.net.in> wrote in message
news:5QPrxdli$GA.74@forums.sybase.com...
> Hi,
>
> How to call the function in a jaguar component
> from another jaguar component. ?
>
> ie, when I call the jaguar component function via proxy from pb,
> the called component's function should perform some other logic (available
> in other component) by calling the other jaguar component internally.
>
> So that my pb applicaion call only one component instead of call the two
or
> multiple
> component.
>
> Thanks in advance
>
>
>
>


Paul Sheehan Posted on 2000-03-10 14:31:40.0Z
Newsgroups: sybase.public.easerver
From: "Paul Sheehan" <psheehan@si-ecc.com>
Subject: Re: How to call a jaguar component from another componet ?
Date: Fri, 10 Mar 2000 09:31:40 -0500
Lines: 28
Organization: SI-ECC
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: 208.225.111.47
Message-ID: <347_A1XM12pi$GA.201@forums.sybase.com>
References: <347_5QPrxdli$GA.74@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:26691
Article PK: 157685

Get the server component to create an instance of the second component,
using CreateInstance() then execute the function call.

Regards, Paul

Ewak <ewak@md2.vsnl.net.in> wrote in message
news:5QPrxdli$GA.74@forums.sybase.com...
> Hi,
>
> How to call the function in a jaguar component
> from another jaguar component. ?
>
> ie, when I call the jaguar component function via proxy from pb,
> the called component's function should perform some other logic (available
> in other component) by calling the other jaguar component internally.
>
> So that my pb applicaion call only one component instead of call the two
or
> multiple
> component.
>
> Thanks in advance
>
>
>
>


Jim O'Neil [Sybase] Posted on 2000-03-10 14:23:09.0Z
Newsgroups: sybase.public.easerver
Date: Fri, 10 Mar 2000 09:23:09 -0500
From: "Jim O'Neil [Sybase]" <joneil@sybase.com>
Organization: Sybase, Inc.
X-Mailer: Mozilla 4.7 [en]C-CCK-MCD (WinNT; U)
X-Accept-Language: en
MIME-Version: 1.0
Subject: Re: How to call a jaguar component from another componet ?
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 22
NNTP-Posting-Host: joneil-nt.sybase.com 204.167.42.111
Message-ID: <347_38C9054D.E5FF854C@sybase.com>
References: <347_5QPrxdli$GA.74@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:26694
Article PK: 157688


Ewak wrote:

> Hi,
>
> How to call the function in a jaguar component
> from another jaguar component. ?
>
> ie, when I call the jaguar component function via proxy from pb,
> the called component's function should perform some other logic (available
> in other component) by calling the other jaguar component internally.
>
> So that my pb applicaion call only one component instead of call the two or
> multiple
> component.
>
> Thanks in advance

Use the getContextService function in the first component to get a handle to
the TransactionServer context. With a TransactionServer variable you can
invoke CreateInstance() just as you would from a connection object from the
client. Once you've created the instance, you can make the intercomponent
calls.
--
Jim O'Neil
Senior Technical Support Engineer
Sybase, Inc