ZENDSVR Prestart jobs

General discussion on Zend Server for IBM System i
Post Reply
peter_connell
Posts: 4
Joined: Wed May 04, 2011 4:17 am

ZENDSVR Prestart jobs

Post by peter_connell » Fri May 06, 2011 5:55 am

I have recently installed product 2ZSVRPI, Zend Server for IBM i 5.0.2 ( PHP 5.3 ).
Using i5_connect() always starts a new PHPJOB in subsystem ZENDSVR.
I have configured ZENDSVR to use prestart jobs via the Start PHP Toolkit service .
The I5_COMD job shows PJ=On but it still submits a new PHPJOB each connect.
Suspiciously, the ZENDSVR subsystem description shows that it has no prestart jobs configured.
How do I get ZENDSVR to use prestart jobs or does this feature not exist in the CE version

yiyujia
Posts: 59
Joined: Tue May 18, 2010 3:02 pm

Re: ZENDSVR Prestart jobs

Post by yiyujia » Wed May 18, 2011 4:01 pm

I guess you can not configure i5_COMD as prestart job to achieve what you want. As I know, for those SQL server prestart jobs, there are corresponding daemon jobs for each type of prestart job. Now, you configure the i5_COMD as prestart job. But, where is the corresponding daemon job for it?

It will be great if you can make one. Otherwise, I think you have to go to easyComm and buy their product, which supplies something like connection pool.

aseiden
Posts: 875
Joined: Thu Apr 09, 2009 5:45 pm

Re: ZENDSVR Prestart jobs

Post by aseiden » Wed May 18, 2011 9:10 pm

Peter, you can also use i5_pconnect(), which will share jobs.

Alan

yiyujia
Posts: 59
Joined: Tue May 18, 2010 3:02 pm

Re: ZENDSVR Prestart jobs

Post by yiyujia » Wed May 18, 2011 9:42 pm

Hi Alan,

you are right. persistent connection make the job be kind of "prestarted".

Btw, I read an article which said Zenf platform use WebFace for i5 toolkit. Does Zend server still use IBM Webface to serve i5 toolkit request?

Thanks and regards,

Yiyu

zend_i5
Posts: 158
Joined: Mon Mar 23, 2009 5:22 pm

Re: ZENDSVR Prestart jobs

Post by zend_i5 » Thu Jun 09, 2011 8:45 am

peter_connell wrote:I have recently installed product 2ZSVRPI, Zend Server for IBM i 5.0.2 ( PHP 5.3 ).
Using i5_connect() always starts a new PHPJOB in subsystem ZENDSVR.
I have configured ZENDSVR to use prestart jobs via the Start PHP Toolkit service .
The I5_COMD job shows PJ=On but it still submits a new PHPJOB each connect.
Suspiciously, the ZENDSVR subsystem description shows that it has no prestart jobs configured.
How do I get ZENDSVR to use prestart jobs or does this feature not exist in the CE version
Here are the steps to define Toolkit prestarted jobs:
1. ADDPJE SBSD(ZENDSVR/ZENDSVR)
PGM(EASYCOM)
JOBD(ZENDSVR/EACJOBD)
CLS(ZENDSVR/I5_COMCLS)
2. Start PHP Toolkit service with PJ =*ON option

zend_i5
Posts: 158
Joined: Mon Mar 23, 2009 5:22 pm

Re: ZENDSVR Prestart jobs

Post by zend_i5 » Thu Jun 09, 2011 8:48 am

yiyujia wrote:Hi Alan,

you are right. persistent connection make the job be kind of "prestarted".

Btw, I read an article which said Zenf platform use WebFace for i5 toolkit. Does Zend server still use IBM Webface to serve i5 toolkit request?

Thanks and regards,

Yiyu
Yes, i5 Toolkit in Zend Server is using WEBFACE server for 5250 Bridge APIs

yiyujia
Posts: 59
Joined: Tue May 18, 2010 3:02 pm

Re: ZENDSVR Prestart jobs

Post by yiyujia » Wed Jun 15, 2011 3:10 pm

zend_i5 wrote: Here are the steps to define Toolkit prestarted jobs:
1. ADDPJE SBSD(ZENDSVR/ZENDSVR)
PGM(EASYCOM)
JOBD(ZENDSVR/EACJOBD)
CLS(ZENDSVR/I5_COMCLS)
2. Start PHP Toolkit service with PJ =*ON option

Is EASYCOM program free for use in Zend Server? What is the limitation if it is free?

erich_hieden
Posts: 393
Joined: Tue Jul 07, 2009 9:01 am

Re: ZENDSVR Prestart jobs

Post by erich_hieden » Wed Jun 15, 2011 3:24 pm

yiyujia wrote:Is EASYCOM program free for use in Zend Server? What is the limitation if it is free?
It's free for use on system i, that's the only limitation I'm aware of.

yiyujia
Posts: 59
Joined: Tue May 18, 2010 3:02 pm

Re: ZENDSVR Prestart jobs

Post by yiyujia » Thu Jun 16, 2011 4:58 pm

Thanks for reply!

May I ask what is the daemon job name for EASYCOM prestart job? I think there should be a daemon job which accept each request and assign it to one of prestarted job?

erich_hieden
Posts: 393
Joined: Tue Jul 07, 2009 9:01 am

Re: ZENDSVR Prestart jobs

Post by erich_hieden » Fri Jun 17, 2011 9:32 am

yiyujia wrote:Thanks for reply!

May I ask what is the daemon job name for EASYCOM prestart job? I think there should be a daemon job which accept each request and assign it to one of prestarted job?
Subsystem ZENDSVR / Job I5_COMD is the deamon job.

Post Reply