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.

Jaguar / PB service component stops unexpectedly

12 posts in General Discussion (old) Last posting was on 2000-02-29 20:16:26.0Z
Ken Ewald Posted on 2000-02-24 21:52:45.0Z
Newsgroups: sybase.public.easerver
From: "Ken Ewald" <ewaldk@jcdc.jobcorps.org>
Organization: Wintelligent[207.43.246.2]
X-Newsreader: AspNNTP 1.41 (Advent 2000, Inc.)
Subject: Jaguar / PB service component stops unexpectedly
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Date: Thu, 24 Feb 2000 16:52:45 -0500
Lines: 17
NNTP-Posting-Host: 207.156.232.4
Message-ID: <347_x$Xl7Fxf$GA.151@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27886
Article PK: 154597

I have a simple PB object that is deployed as a Jaguar service component using
the Jaguar Component Wizard. Using EAS 3.5.

According to srv.log, sometimes it starts and runs, and other times it starts,
runs and stops without any notification as to why. This happens by simply
starting the Jaguar server. I have error traps throughout the code with any
errors being logged via the ErrorLogging object, but no error messages appear in
the log. I have tested the logging by inserting log messages to indicate
progress, and those messages do get into the log.

Any ideas about why Jaguar would stop the service immediately after it has
started?

Thanks,
Ken


Ken Ewald Posted on 2000-02-24 23:19:26.0Z
Newsgroups: sybase.public.easerver
From: "Ken Ewald" <ewaldk@jcdc.jobcorps.org>
Organization: Wintelligent[207.43.246.2]
X-Newsreader: AspNNTP 1.41 (Advent 2000, Inc.)
Subject: Re: Jaguar / PB service component stops unexpectedly
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Date: Thu, 24 Feb 2000 18:19:26 -0500
Lines: 22
NNTP-Posting-Host: 207.156.232.4
Message-ID: <347_PHciX2xf$GA.151@forums.sybase.com>
References: <347_x$Xl7Fxf$GA.151@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27856
Article PK: 154594

Second posting - help!!!

Thanks

On Thu, 24 Feb 2000 16:52:45 -0500,
in powersoft.public.easerver

Ken Ewald <ewaldk@jcdc.jobcorps.org> wrote:
>I have a simple PB object that is deployed as a Jaguar service component using
>the Jaguar Component Wizard. Using EAS 3.5.
>
>According to srv.log, sometimes it starts and runs, and other times it starts,
>runs and stops without any notification as to why. This happens by simply
>starting the Jaguar server. I have error traps throughout the code with any
>errors being logged via the ErrorLogging object, but no error messages appear
in
>the log. I have tested the logging by inserting log messages to indicate
>progress, and those messages do get into the log.
>
>Any ideas about why Jaguar would stop the service immediately after it has
>started?
>
>Thanks,
>Ken

Ken


Jim O'Neil [Sybase] Posted on 2000-02-25 04:18:45.0Z
Newsgroups: sybase.public.easerver
Date: Thu, 24 Feb 2000 23:18:45 -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: Jaguar / PB service component stops unexpectedly
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 42
NNTP-Posting-Host: nomad6-15.sybase.com 157.133.176.15
Message-ID: <347_38B602A5.793D8221@sybase.com>
References: <347_x$Xl7Fxf$GA.151@forums.sybase.com> <347_PHciX2xf$GA.151@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27843
Article PK: 159546


Ken Ewald wrote:

> Second posting - help!!!
>
> Thanks
>
> On Thu, 24 Feb 2000 16:52:45 -0500,
> in powersoft.public.easerver
> Ken Ewald <ewaldk@jcdc.jobcorps.org> wrote:
> >I have a simple PB object that is deployed as a Jaguar service component using
> >the Jaguar Component Wizard. Using EAS 3.5.
> >
> >According to srv.log, sometimes it starts and runs, and other times it starts,
> >runs and stops without any notification as to why. This happens by simply
> >starting the Jaguar server. I have error traps throughout the code with any
> >errors being logged via the ErrorLogging object, but no error messages appear
> in
> >the log. I have tested the logging by inserting log messages to indicate
> >progress, and those messages do get into the log.
> >
> >Any ideas about why Jaguar would stop the service immediately after it has
> >started?
> >
> >Thanks,
> >Ken
>
> Ken

What's happening within the component(s)? Is it a shared service component or are
you running multiple instances? I have seen this occur the context of making
Oracle connections and we're looking to the Oracle interface now as the possible
culprit; however, there really was no indication in the log of where the problem
was. Turn on trace and debug properties on the component and see if you get a
message logged in srv.log about there being a system error - my guess is that the
VM somehow crashed in the process and we're just not getting any feedback about
why. It may be a matter of whittling the code down to localize what chunk is
actually causing the failure.
--
Jim O'Neil
Senior Technical Support Engineer
Sybase, Inc


Ken Ewald Posted on 2000-02-25 16:50:54.0Z
Newsgroups: sybase.public.easerver
From: "Ken Ewald" <ewaldk@jcdc.jobcorps.org>
Organization: Wintelligent[207.43.246.2]
X-Newsreader: AspNNTP 1.41 (Advent 2000, Inc.)
Subject: Re: Jaguar / PB service component stops unexpectedly
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Date: Fri, 25 Feb 2000 11:50:54 -0500
Lines: 60
NNTP-Posting-Host: 207.156.232.4
Message-ID: <347_Dop66B7f$GA.276@forums.sybase.com>
References: <347_x$Xl7Fxf$GA.151@forums.sybase.com> <347_PHciX2xf$GA.151@forums.sybase.com> <347_38B602A5.793D8221@sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27805
Article PK: 159152

It is a shared service component. The database connectivity works ok. This
component is essentially caching the PFC messages table. The database engine is
Informix 9.

Feedback from the Jaguar/Powerbuilder VM is definitely in need of improvement.
System errors such as null object references give absolutely no usable
information. I'm sure you are correct in saying that we are not getting any
feedback about the cause of this problem.

Thanks for suggesting tracing. I haven't used that feature of PB yet and will
try it out.

On Thu, 24 Feb 2000 23:18:45 -0500,
in powersoft.public.easerver

Jim O'Neil [Sybase] <joneil@sybase.com> wrote:
>Ken Ewald wrote:
>
>> Second posting - help!!!
>>
>> Thanks
>>
>> On Thu, 24 Feb 2000 16:52:45 -0500,
>> in powersoft.public.easerver
>> Ken Ewald <ewaldk@jcdc.jobcorps.org> wrote:
>> >I have a simple PB object that is deployed as a Jaguar service component
using
>> >the Jaguar Component Wizard. Using EAS 3.5.
>> >
>> >According to srv.log, sometimes it starts and runs, and other times it
starts,
>> >runs and stops without any notification as to why. This happens by simply
>> >starting the Jaguar server. I have error traps throughout the code with any
>> >errors being logged via the ErrorLogging object, but no error messages
appear
>> in
>> >the log. I have tested the logging by inserting log messages to indicate
>> >progress, and those messages do get into the log.
>> >
>> >Any ideas about why Jaguar would stop the service immediately after it has
>> >started?
>> >
>> >Thanks,
>> >Ken
>>
>> Ken
>
>What's happening within the component(s)? Is it a shared service component or
are
>you running multiple instances? I have seen this occur the context of making
>Oracle connections and we're looking to the Oracle interface now as the
possible
>culprit; however, there really was no indication in the log of where the
problem
>was. Turn on trace and debug properties on the component and see if you get a
>message logged in srv.log about there being a system error - my guess is that
the
>VM somehow crashed in the process and we're just not getting any feedback about
>why. It may be a matter of whittling the code down to localize what chunk is
>actually causing the failure.
>--
>Jim O'Neil
>Senior Technical Support Engineer
>Sybase, Inc
>
>

Ken


Jim O'Neil [Sybase] Posted on 2000-02-25 18:01:24.0Z
Newsgroups: sybase.public.easerver
Date: Fri, 25 Feb 2000 13:01:24 -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: Jaguar / PB service component stops unexpectedly
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 79
NNTP-Posting-Host: joneil-nt.sybase.com 204.167.42.111
Message-ID: <347_38B6C373.FBD2E92B@sybase.com>
References: <347_x$Xl7Fxf$GA.151@forums.sybase.com> <347_PHciX2xf$GA.151@forums.sybase.com> <347_38B602A5.793D8221@sybase.com> <347_Dop66B7f$GA.276@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27793
Article PK: 159144


Ken Ewald wrote:

> It is a shared service component. The database connectivity works ok. This
> component is essentially caching the PFC messages table. The database engine is
> Informix 9.
>
> Feedback from the Jaguar/Powerbuilder VM is definitely in need of improvement.
> System errors such as null object references give absolutely no usable
> information. I'm sure you are correct in saying that we are not getting any
> feedback about the cause of this problem.
>
> Thanks for suggesting tracing. I haven't used that feature of PB yet and will
> try it out.
>
> On Thu, 24 Feb 2000 23:18:45 -0500,
> in powersoft.public.easerver
> Jim O'Neil [Sybase] <joneil@sybase.com> wrote:
> >Ken Ewald wrote:
> >
> >> Second posting - help!!!
> >>
> >> Thanks
> >>
> >> On Thu, 24 Feb 2000 16:52:45 -0500,
> >> in powersoft.public.easerver
> >> Ken Ewald <ewaldk@jcdc.jobcorps.org> wrote:
> >> >I have a simple PB object that is deployed as a Jaguar service component
> using
> >> >the Jaguar Component Wizard. Using EAS 3.5.
> >> >
> >> >According to srv.log, sometimes it starts and runs, and other times it
> starts,
> >> >runs and stops without any notification as to why. This happens by simply
> >> >starting the Jaguar server. I have error traps throughout the code with any
> >> >errors being logged via the ErrorLogging object, but no error messages
> appear
> >> in
> >> >the log. I have tested the logging by inserting log messages to indicate
> >> >progress, and those messages do get into the log.
> >> >
> >> >Any ideas about why Jaguar would stop the service immediately after it has
> >> >started?
> >> >
> >> >Thanks,
> >> >Ken
> >>
> >> Ken
> >
> >What's happening within the component(s)? Is it a shared service component or
> are
> >you running multiple instances? I have seen this occur the context of making
> >Oracle connections and we're looking to the Oracle interface now as the
> possible
> >culprit; however, there really was no indication in the log of where the
> problem
> >was. Turn on trace and debug properties on the component and see if you get a
> >message logged in srv.log about there being a system error - my guess is that
> the
> >VM somehow crashed in the process and we're just not getting any feedback about
> >why. It may be a matter of whittling the code down to localize what chunk is
> >actually causing the failure.
> >--
> >Jim O'Neil
> >Senior Technical Support Engineer
> >Sybase, Inc
> >
> >
>
> Ken

Just to clarify - tracing is not provided by PB, it's provided by Jaguar 3.5 for any
component type. Don't expect a LOT more information, but it may lead us to
something. Have you ensured that your shared service component has Concurrency
turned OFF (com.sybase.jaguar.component.thread.safe=no)? With this scenario (PB as
a shared/service component), you realize that once you get the run loop going (if
indeed that's what you are doing), you will not be able to make any other calls to
the component until run completes.
--
Jim O'Neil
Senior Technical Support Engineer
Sybase, Inc


Ken Ewald Posted on 2000-02-25 20:01:23.0Z
Newsgroups: sybase.public.easerver
From: "Ken Ewald" <ewaldk@jcdc.jobcorps.org>
Organization: Wintelligent[207.43.246.2]
X-Newsreader: AspNNTP 1.41 (Advent 2000, Inc.)
Subject: Re: Jaguar / PB service component stops unexpectedly
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Date: Fri, 25 Feb 2000 15:01:23 -0500
Lines: 98
NNTP-Posting-Host: 207.156.232.4
Message-ID: <347_OfoDXs8f$GA.274@forums.sybase.com>
References: <347_x$Xl7Fxf$GA.151@forums.sybase.com> <347_PHciX2xf$GA.151@forums.sybase.com> <347_38B602A5.793D8221@sybase.com> <347_Dop66B7f$GA.276@forums.sybase.com> <347_38B6C373.FBD2E92B@sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27778
Article PK: 159132

Jim,

I set the component type to service in PB's component wizard. However, the
component was generated with Concurrency turned on. Is this correct behavior
for the wizard?

Also, I have no code at all in the run() method. In the start() method, I
instantiate some instance variables that I want to remain populated with
messages from the messages table. There is no code in the stop() method. I
destroy the instances in the destructor event. Since this is a service object,
the activate/deactivate events are of no use.




On Fri, 25 Feb 2000 13:01:24 -0500,
in powersoft.public.easerver

Jim O'Neil [Sybase] <joneil@sybase.com> wrote:
>Ken Ewald wrote:
>
>> It is a shared service component. The database connectivity works ok. This
>> component is essentially caching the PFC messages table. The database engine
is
>> Informix 9.
>>
>> Feedback from the Jaguar/Powerbuilder VM is definitely in need of
improvement.
>> System errors such as null object references give absolutely no usable
>> information. I'm sure you are correct in saying that we are not getting any
>> feedback about the cause of this problem.
>>
>> Thanks for suggesting tracing. I haven't used that feature of PB yet and
will
>> try it out.
>>
>> On Thu, 24 Feb 2000 23:18:45 -0500,
>> in powersoft.public.easerver
>> Jim O'Neil [Sybase] <joneil@sybase.com> wrote:
>> >Ken Ewald wrote:
>> >
>> >> Second posting - help!!!
>> >>
>> >> Thanks
>> >>
>> >> On Thu, 24 Feb 2000 16:52:45 -0500,
>> >> in powersoft.public.easerver
>> >> Ken Ewald <ewaldk@jcdc.jobcorps.org> wrote:
>> >> >I have a simple PB object that is deployed as a Jaguar service component
>> using
>> >> >the Jaguar Component Wizard. Using EAS 3.5.
>> >> >
>> >> >According to srv.log, sometimes it starts and runs, and other times it
>> starts,
>> >> >runs and stops without any notification as to why. This happens by
simply
>> >> >starting the Jaguar server. I have error traps throughout the code with
any
>> >> >errors being logged via the ErrorLogging object, but no error messages
>> appear
>> >> in
>> >> >the log. I have tested the logging by inserting log messages to indicate
>> >> >progress, and those messages do get into the log.
>> >> >
>> >> >Any ideas about why Jaguar would stop the service immediately after it
has
>> >> >started?
>> >> >
>> >> >Thanks,
>> >> >Ken
>> >>
>> >> Ken
>> >
>> >What's happening within the component(s)? Is it a shared service component
or
>> are
>> >you running multiple instances? I have seen this occur the context of
making
>> >Oracle connections and we're looking to the Oracle interface now as the
>> possible
>> >culprit; however, there really was no indication in the log of where the
>> problem
>> >was. Turn on trace and debug properties on the component and see if you get
a
>> >message logged in srv.log about there being a system error - my guess is
that
>> the
>> >VM somehow crashed in the process and we're just not getting any feedback
about
>> >why. It may be a matter of whittling the code down to localize what chunk
is
>> >actually causing the failure.
>> >--
>> >Jim O'Neil
>> >Senior Technical Support Engineer
>> >Sybase, Inc
>> >
>> >
>>
>> Ken
>
>Just to clarify - tracing is not provided by PB, it's provided by Jaguar 3.5
for any
>component type. Don't expect a LOT more information, but it may lead us to
>something. Have you ensured that your shared service component has Concurrency
>turned OFF (com.sybase.jaguar.component.thread.safe=no)? With this scenario
(PB as
>a shared/service component), you realize that once you get the run loop going
(if
>indeed that's what you are doing), you will not be able to make any other calls
to
>the component until run completes.
>--
>Jim O'Neil
>Senior Technical Support Engineer
>Sybase, Inc
>
>

Ken


Jim O'Neil [Sybase] Posted on 2000-02-25 22:27:00.0Z
Newsgroups: sybase.public.easerver
Date: Fri, 25 Feb 2000 17:27:00 -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: Jaguar / PB service component stops unexpectedly
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 48
NNTP-Posting-Host: joneil-nt.sybase.com 204.167.42.111
Message-ID: <347_38B701B4.25C639C9@sybase.com>
References: <347_x$Xl7Fxf$GA.151@forums.sybase.com> <347_PHciX2xf$GA.151@forums.sybase.com> <347_38B602A5.793D8221@sybase.com> <347_Dop66B7f$GA.276@forums.sybase.com> <347_38B6C373.FBD2E92B@sybase.com> <347_OfoDXs8f$GA.274@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27769
Article PK: 159124


Ken Ewald wrote:

> Jim,
>
> I set the component type to service in PB's component wizard. However, the
> component was generated with Concurrency turned on. Is this correct behavior
> for the wizard?
>
> Also, I have no code at all in the run() method. In the start() method, I
> instantiate some instance variables that I want to remain populated with
> messages from the messages table. There is no code in the stop() method. I
> destroy the instances in the destructor event. Since this is a service object,
> the activate/deactivate events are of no use.
>

PB components should never be SHARED and CONCURRENT and yes the wizards don't deploy
this correctly, but it's been reported and in the system as a deficiency. You can't
change the concurrency property from the PB project, unfortunately, so if it's a
shared component, you have to remember to change it in Jaguar Manager. I believe
that PB by default will deploy a service component as also being shared, but that's
also somewhat incorrect since you can also have service components that aren't
shared.

Now, if you don't have code in the run method, then the service WILL stop. Upon
startup Jaguar will invoke the start() function and then the run() function.
Typically run() will have some sort of 'endless' loop that performs background
processing on a periodic basis (using JagSleep to yield its thread), if there's no
'run' then essentially the service component is done and so I'd say what you are
seeing is expected behavior.

It sounds like what you really want is a SHARED component to cache your message data
and that shared component should be initialized perhaps at startup by the service
component, or perhaps the service component could periodically refresh the data in
the SHARED component versus just setting it up once.
--
Jim O'Neil
Senior Technical Support Engineer
Sybase, Inc


Evan Ireland Posted on 2000-02-28 22:27:55.0Z
Newsgroups: sybase.public.easerver
Date: Tue, 29 Feb 2000 11:27:55 +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: "Jim O'Neil [Sybase]" <joneil@sybase.com>
Subject: Re: Jaguar / PB service component stops unexpectedly
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 30
NNTP-Posting-Host: vpn-eme-029.sybase.com 130.214.8.29
Message-ID: <347_38BAF66B.7E8577B9@sybase.com>
References: <347_x$Xl7Fxf$GA.151@forums.sybase.com> <347_PHciX2xf$GA.151@forums.sybase.com> <347_38B602A5.793D8221@sybase.com> <347_Dop66B7f$GA.276@forums.sybase.com> <347_38B6C373.FBD2E92B@sybase.com> <347_OfoDXs8f$GA.274@forums.sybase.com> <347_38B701B4.25C639C9@sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27622
Article PK: 158993


"Jim O'Neil [Sybase]" wrote:
>
> PB components should never be SHARED and CONCURRENT and yes the wizards don't deploy
> this correctly, but it's been reported and in the system as a deficiency. You can't
> change the concurrency property from the PB project, unfortunately, so if it's a
> shared component, you have to remember to change it in Jaguar Manager. I believe
> that PB by default will deploy a service component as also being shared, but that's
> also somewhat incorrect since you can also have service components that aren't
> shared.

By enabling the Bind Thread option in PB, you can get the Concurrency disabled
automatically. The server uses a bit of simple deduction to determine that
Bind Thread is not comatible with Concurrency, and thereby disables Concurrency.

However, I would recommend that Service components not be Shared. Separate the
logic into two components, one Shared and one a Service.
________________________________________________________________________________

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


Ken Ewald Posted on 2000-02-28 23:11:32.0Z
Newsgroups: sybase.public.easerver
From: "Ken Ewald" <ewaldk@jcdc.jobcorps.org>
Organization: Wintelligent[207.43.246.2]
X-Newsreader: AspNNTP 1.41 (Advent 2000, Inc.)
Subject: Re: Jaguar / PB service component stops unexpectedly
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Date: Mon, 28 Feb 2000 18:11:32 -0500
Lines: 47
NNTP-Posting-Host: 207.156.232.4
Message-ID: <347_UfXCnEkg$GA.201@forums.sybase.com>
References: <347_x$Xl7Fxf$GA.151@forums.sybase.com> <347_PHciX2xf$GA.151@forums.sybase.com> <347_38B602A5.793D8221@sybase.com> <347_Dop66B7f$GA.276@forums.sybase.com> <347_38B6C373.FBD2E92B@sybase.com> <347_OfoDXs8f$GA.274@forums.sybase.com> <347_38B701B4.25C639C9@sybase.com> <347_38BAF66B.7E8577B9@sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27620
Article PK: 158992

On Tue, 29 Feb 2000 11:27:55 +1300,
in powersoft.public.easerver

Evan Ireland <eireland@sybase.com> wrote:
>"Jim O'Neil [Sybase]" wrote:
>>
>> PB components should never be SHARED and CONCURRENT and yes the wizards don't
deploy
>> this correctly, but it's been reported and in the system as a deficiency.
You can't
>> change the concurrency property from the PB project, unfortunately, so if
it's a
>> shared component, you have to remember to change it in Jaguar Manager. I
believe
>> that PB by default will deploy a service component as also being shared, but
that's
>> also somewhat incorrect since you can also have service components that
aren't
>> shared.
>
>By enabling the Bind Thread option in PB, you can get the Concurrency disabled
>automatically. The server uses a bit of simple deduction to determine that
>Bind Thread is not comatible with Concurrency, and thereby disables
Concurrency.
>
>However, I would recommend that Service components not be Shared. Separate the
>logic into two components, one Shared and one a Service.
>_______________________________________________________________________________
_
>
>Evan Ireland Sybase EA Server Engineering
eireland@sybase.com
> Wellington - New Zealand +64 4

934-5856

Evan,

If I can't share a service component, then what good is it? I thought a service
component was intented to be shared so that many other components/clients could
access a common set of data.

Why would I need two components to do the work of one? We do not anticipate
needing to refresh the messages data in the component any more often than when
the Jaguar server is re-started (which is now very often), so why would I need a
service component to refresh the shared component?

Thanks,


Ken


Evan Ireland Posted on 2000-02-29 20:16:26.0Z
Newsgroups: sybase.public.easerver
Date: Wed, 01 Mar 2000 09:16:26 +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: Ken Ewald <ewaldk@jcdc.jobcorps.org>
Subject: Re: Jaguar / PB service component stops unexpectedly
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 27
NNTP-Posting-Host: vpn-eme-047.sybase.com 130.214.8.47
Message-ID: <347_38BC291A.1C924CCA@sybase.com>
References: <347_x$Xl7Fxf$GA.151@forums.sybase.com> <347_PHciX2xf$GA.151@forums.sybase.com> <347_38B602A5.793D8221@sybase.com> <347_Dop66B7f$GA.276@forums.sybase.com> <347_38B6C373.FBD2E92B@sybase.com> <347_OfoDXs8f$GA.274@forums.sybase.com> <347_38B701B4.25C639C9@sybase.com> <347_38BAF66B.7E8577B9@sybase.com> <347_UfXCnEkg$GA.201@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27473
Article PK: 158865


Ken Ewald wrote:
>
> If I can't share a service component, then what good is it? I thought a service
> component was intented to be shared so that many other components/clients could
> access a common set of data.
>
> Why would I need two components to do the work of one? We do not anticipate
> needing to refresh the messages data in the component any more often than when
> the Jaguar server is re-started (which is now very often), so why would I need a
> service component to refresh the shared component?

I had assumed that you had a loop in the service component's 'run' method. If
you do not, then it is fine for the component to be both a service component
and a shared component, but please enable Bind Thread to workaround the fact
that PB won't let you disable the Concurrency option.
________________________________________________________________________________

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


Ken Ewald Posted on 2000-02-28 23:04:56.0Z
Newsgroups: sybase.public.easerver
From: "Ken Ewald" <ewaldk@jcdc.jobcorps.org>
Organization: Wintelligent[207.43.246.2]
X-Newsreader: AspNNTP 1.41 (Advent 2000, Inc.)
Subject: Re: Jaguar / PB service component stops unexpectedly
Mime-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Date: Mon, 28 Feb 2000 18:04:56 -0500
Lines: 86
NNTP-Posting-Host: 207.156.232.4
Message-ID: <347_zRdv6Akg$GA.295@forums.sybase.com>
References: <347_x$Xl7Fxf$GA.151@forums.sybase.com> <347_PHciX2xf$GA.151@forums.sybase.com> <347_38B602A5.793D8221@sybase.com> <347_Dop66B7f$GA.276@forums.sybase.com> <347_38B6C373.FBD2E92B@sybase.com> <347_OfoDXs8f$GA.274@forums.sybase.com> <347_38B701B4.25C639C9@sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27621
Article PK: 158994

On Fri, 25 Feb 2000 17:27:00 -0500,
in powersoft.public.easerver

Jim O'Neil [Sybase] <joneil@sybase.com> wrote:
>Ken Ewald wrote:
>
>> Jim,
>>
>> I set the component type to service in PB's component wizard. However, the
>> component was generated with Concurrency turned on. Is this correct behavior
>> for the wizard?
>>
>> Also, I have no code at all in the run() method. In the start() method, I
>> instantiate some instance variables that I want to remain populated with
>> messages from the messages table. There is no code in the stop() method. I
>> destroy the instances in the destructor event. Since this is a service
object,
>> the activate/deactivate events are of no use.
>>
>
>PB components should never be SHARED and CONCURRENT and yes the wizards don't
deploy
>this correctly, but it's been reported and in the system as a deficiency. You
can't
>change the concurrency property from the PB project, unfortunately, so if it's
a
>shared component, you have to remember to change it in Jaguar Manager. I
believe
>that PB by default will deploy a service component as also being shared, but
that's
>also somewhat incorrect since you can also have service components that aren't
>shared.
>
>Now, if you don't have code in the run method, then the service WILL stop.
Upon
>startup Jaguar will invoke the start() function and then the run() function.
>Typically run() will have some sort of 'endless' loop that performs background
>processing on a periodic basis (using JagSleep to yield its thread), if there's
no
>'run' then essentially the service component is done and so I'd say what you
are
>seeing is expected behavior.
>
>It sounds like what you really want is a SHARED component to cache your message
data
>and that shared component should be initialized perhaps at startup by the
service
>component, or perhaps the service component could periodically refresh the data
in
>the SHARED component versus just setting it up once.
>--
>Jim O'Neil
>Senior Technical Support Engineer
>Sybase, Inc
>
>

Jim,

I've changed the service component to a shared one by doing the following:

Put the start() method code into the constructor event.
Removed the start(), run() and stop() methods.
Did a full rebuild in PB.
Removed the IDL and package from Jaguar via the manager.
Deployed to Jaguar via a new PB component wizard project, setting the component
type to shared.

Did full rebuilds of the server and client apps and redeployed the server
component that calls the shared component.

The constructor event fires when the client app starts, as it should. It
returns the messages table rows into the client side PFC cache as it should.

There is a public method in the shared component that is used by other
components to get a particular message out of a datastore in the shared
component. When this method is called, I get a CORBA 94 error. But, the Jaguar
runtime monitor shows one instance of the shared component as being active,
which is what I would expect.

Also, the PB - Jaguar Component wizard set the instance properties of the
component to: Concurrency, Bind Thread and Sharing all on. I've tried different
combinations, to no avail. What should these be set to in order to use the
component as a shared object that populates it's data at create time and does
not need to be refreshed?

Thanks,


Ken


Jim O'Neil [Sybase] Posted on 2000-02-29 04:26:40.0Z
Newsgroups: sybase.public.easerver
Date: Mon, 28 Feb 2000 23:26:40 -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: Jaguar / PB service component stops unexpectedly
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Lines: 105
NNTP-Posting-Host: nomad6-46.sybase.com 157.133.176.46
Message-ID: <347_38BB4A7F.6B00FE46@sybase.com>
References: <347_x$Xl7Fxf$GA.151@forums.sybase.com> <347_PHciX2xf$GA.151@forums.sybase.com> <347_38B602A5.793D8221@sybase.com> <347_Dop66B7f$GA.276@forums.sybase.com> <347_38B6C373.FBD2E92B@sybase.com> <347_OfoDXs8f$GA.274@forums.sybase.com> <347_38B701B4.25C639C9@sybase.com> <347_zRdv6Akg$GA.295@forums.sybase.com>
Path: forums-1-dub!forums-1-dub!forums-master.sybase.com!forums.sybase.com
Xref: forums-1-dub sybase.public.easerver:27573
Article PK: 158954


Ken Ewald wrote:

> On Fri, 25 Feb 2000 17:27:00 -0500,
> in powersoft.public.easerver
> Jim O'Neil [Sybase] <joneil@sybase.com> wrote:
> >Ken Ewald wrote:
> >
> >> Jim,
> >>
> >> I set the component type to service in PB's component wizard. However, the
> >> component was generated with Concurrency turned on. Is this correct behavior
> >> for the wizard?
> >>
> >> Also, I have no code at all in the run() method. In the start() method, I
> >> instantiate some instance variables that I want to remain populated with
> >> messages from the messages table. There is no code in the stop() method. I
> >> destroy the instances in the destructor event. Since this is a service
> object,
> >> the activate/deactivate events are of no use.
> >>
> >
> >PB components should never be SHARED and CONCURRENT and yes the wizards don't
> deploy
> >this correctly, but it's been reported and in the system as a deficiency. You
> can't
> >change the concurrency property from the PB project, unfortunately, so if it's
> a
> >shared component, you have to remember to change it in Jaguar Manager. I
> believe
> >that PB by default will deploy a service component as also being shared, but
> that's
> >also somewhat incorrect since you can also have service components that aren't
> >shared.
> >
> >Now, if you don't have code in the run method, then the service WILL stop.
> Upon
> >startup Jaguar will invoke the start() function and then the run() function.
> >Typically run() will have some sort of 'endless' loop that performs background
> >processing on a periodic basis (using JagSleep to yield its thread), if there's
> no
> >'run' then essentially the service component is done and so I'd say what you
> are
> >seeing is expected behavior.
> >
> >It sounds like what you really want is a SHARED component to cache your message
> data
> >and that shared component should be initialized perhaps at startup by the
> service
> >component, or perhaps the service component could periodically refresh the data
> in
> >the SHARED component versus just setting it up once.
> >--
> >Jim O'Neil
> >Senior Technical Support Engineer
> >Sybase, Inc
> >
> >
> Jim,
>
> I've changed the service component to a shared one by doing the following:
>
> Put the start() method code into the constructor event.
> Removed the start(), run() and stop() methods.
> Did a full rebuild in PB.
> Removed the IDL and package from Jaguar via the manager.
> Deployed to Jaguar via a new PB component wizard project, setting the component
> type to shared.
>
> Did full rebuilds of the server and client apps and redeployed the server
> component that calls the shared component.
>
> The constructor event fires when the client app starts, as it should. It
> returns the messages table rows into the client side PFC cache as it should.
>
> There is a public method in the shared component that is used by other
> components to get a particular message out of a datastore in the shared
> component. When this method is called, I get a CORBA 94 error. But, the Jaguar
> runtime monitor shows one instance of the shared component as being active,
> which is what I would expect.
>
> Also, the PB - Jaguar Component wizard set the instance properties of the
> component to: Concurrency, Bind Thread and Sharing all on. I've tried different
> combinations, to no avail. What should these be set to in order to use the
> component as a shared object that populates it's data at create time and does
> not need to be refreshed?
>
> Thanks,
>
> Ken

BindThread will disable concurrency if sharing is on, so you're ok with the
properties. I'm not sure what a 94 error is, what's the exception that is thrown?
CORBA_INTERNAL? CORBA_MARSHAL? Any other information in the server error log? In
general though, the design pattern you've got is fine.

I'm a little confused by: "The constructor event fires when the client app starts,
as it should." You're making an explicit CreateInstance() call here right? say in
the application open or something?

--
Jim O'Neil
Senior Technical Support Engineer
Sybase, Inc