import-bot (20212) [Avatar] Offline
#1
[Originally posted by shaikindia]


I am reading the e-book edition of Taming Jaguar. An excellent resource on
Jaguar. Well done Mike.

Pls clarify me the following :

1. U have advised to use JagSleep() method from libjdispatch.dll in PB Service
components. But, this is for NT platform. I would like to write a PB service
component on Jaguar/Solaris. Could u please tell me the Library name and
Method i should use under Solaris ? Also tell me the syntax for declaring and
using it ?

2. Is PB Component (Standard) Thread Safe or not ?

3. During my development, I have set the properties for all my stateless PB
components (Standard) under Jaguar 3.6/Solaris as follows. Kindly advise me
whether i can go ahead with the same properties in Production also ? Any
additional properties should i set ?
Bind Thread - Off
Concurency - On
Instance Pooling - On
Auto-Demarcation/De-Activation - On

Thanks,
Shaik
import-bot (20212) [Avatar] Offline
#2
Re: Questions about PB components ?
[Originally posted by mbarlotta]

See anwsers in message

>
> I am reading the e-book edition of Taming Jaguar. An excellent resource on
> Jaguar. Well done Mike.

Thanks - if you really like it please let others know
If possible a review on Amazon is always appreciated!

>
> 1. U have advised to use JagSleep() method from libjdispatch.dll in PB Service
> components. But, this is for NT platform. I would like to write a PB service
> component on Jaguar/Solaris. Could u please tell me the Library name and
> Method i should use under Solaris ? Also tell me the syntax for declaring and
> using it ?

Same as on NT except the "DLL" is libjdispatch.so

>
> 2. Is PB Component (Standard) Thread Safe or not ?

Depends on what you mean. A PB component can not handle being "multi-entrant"
- that is several requests cannot be processed through an instance at one
time.

PB component classes can have many instances in memory and be run at the same
time and are thread safe themselves.


>
> 3. During my development, I have set the properties for all my stateless PB
> components (Standard) under Jaguar 3.6/Solaris as follows. Kindly advise me
> whether i can go ahead with the same properties in Production also ? Any
> additional properties should i set ?
> Bind Thread - Off

If you use a DataStore as an instance variable this must be turned on for that
component

> Concurency - On

Absolutely

> Instance Pooling - On

Yep!

> Auto-Demarcation/De-Activation - On

Yep!!
import-bot (20212) [Avatar] Offline
#3
Re: Questions about PB components ?
[Originally posted by shaikindia]


Mike,

Just now i finished my review in Amazon for 'Taming Jagauar' with the highest
rating (5 Stars).

If 50 concurrent requests come for a method in PB Standard component, Jaguar
will create 50 instances in kernel ? How a Java component will handle this 50
concurrent requests ? Java component will serve 50 requests thru a single
component instance or it will create 50 instances ? Pls clarify ...

Regarding Bind Thread :- I am using an instance variable for datastore. Can i
turn on the Bind Thread on Jaguar/Solaris ? Somebody told me that, Bind thread
must be enabled only on NT. Is it true ? Pls clarify ...

Thanks,
Shaik

> See anwsers in message
>
> >
> > I am reading the e-book edition of Taming Jaguar. An excellent resource on
> > Jaguar. Well done Mike.
>
> Thanks - if you really like it please let others know
> If possible a review on Amazon is always appreciated!
>
> >
> > 1. U have advised to use JagSleep() method from libjdispatch.dll in PB
Service
> > components. But, this is for NT platform. I would like to write a PB service
> > component on Jaguar/Solaris. Could u please tell me the Library name and
> > Method i should use under Solaris ? Also tell me the syntax for declaring
and
> > using it ?
>
> Same as on NT except the "DLL" is libjdispatch.so
>
> >
> > 2. Is PB Component (Standard) Thread Safe or not ?
>
> Depends on what you mean. A PB component can not handle being "multi-entrant"
> - that is several requests cannot be processed through an instance at one
> time.
>
> PB component classes can have many instances in memory and be run at the same
> time and are thread safe themselves.
>
>
> >
> > 3. During my development, I have set the properties for all my stateless PB
> > components (Standard) under Jaguar 3.6/Solaris as follows. Kindly advise me
> > whether i can go ahead with the same properties in Production also ? Any
> > additional properties should i set ?
> > Bind Thread - Off
>
> If you use a DataStore as an instance variable this must be turned on for that
> component
>
> > Concurency - On
>
> Absolutely
>
> > Instance Pooling - On
>
> Yep!
>
> > Auto-Demarcation/De-Activation - On
>
> Yep!!
import-bot (20212) [Avatar] Offline
#4
Re: Questions about PB components ?
[Originally posted by mbarlotta]

Shaik
>
> Just now i finished my review in Amazon for 'Taming Jagauar' with the highest
> rating (5 Stars).
>

Thanks for the review & very kind words - they are appreciated.

-Mike

> If 50 concurrent requests come for a method in PB Standard component, Jaguar
> will create 50 instances in kernel ? How a Java component will handle this 50
> concurrent requests ? Java component will serve 50 requests thru a single
> component instance or it will create 50 instances ? Pls clarify ...

Providing they are both "standard" components w/ concurrency enabled each (PB
& Java) will create 50 instances in this situation.

>
> Regarding Bind Thread :- I am using an instance variable for datastore. Can i
> turn on the Bind Thread on Jaguar/Solaris ? Somebody told me that, Bind thread
> must be enabled only on NT. Is it true ? Pls clarify ...

With Solaris I am not 100% sure...

>
> Thanks,
> Shaik
>
import-bot (20212) [Avatar] Offline
#5
Re: Questions about PB components ?
[Originally posted by jasonweiss]

Bind Thread is indeed only an issue on Windows OS's because of something
called Thread Local Storage, or TLS. DataWindow technology on Windows
machines leverage TLS,and thereby require Bind Thread. This setting is not an
issue on any Unix box, because TLS is exclusively a Redmondian thing smilie

HTH,

Jason Weiss


> Shaik
> >
> > Just now i finished my review in Amazon for 'Taming Jagauar' with the
highest
> > rating (5 Stars).
> >
>
> Thanks for the review & very kind words - they are appreciated.
>
> -Mike
>
> > If 50 concurrent requests come for a method in PB Standard component, Jaguar
> > will create 50 instances in kernel ? How a Java component will handle this
50
> > concurrent requests ? Java component will serve 50 requests thru a single
> > component instance or it will create 50 instances ? Pls clarify ...
>
> Providing they are both "standard" components w/ concurrency enabled each (PB
> & Java) will create 50 instances in this situation.
>
> >
> > Regarding Bind Thread :- I am using an instance variable for datastore.
Can i
> > turn on the Bind Thread on Jaguar/Solaris ? Somebody told me that, Bind
thread
> > must be enabled only on NT. Is it true ? Pls clarify ...
>
> With Solaris I am not 100% sure...
>
> >
> > Thanks,
> > Shaik
> >