cancel
Showing results for 
Search instead for 
Did you mean: 

Performance problem calling service controller

Former Member
0 Kudos

Hi,

first of all, I'm a really Web Dynpro Newbie, so please be careful with me

My problem is following. I'm trying to boost performance of our business Web Dynpro project. The starting time is very high. The first view, which is displayed, calls a method of a service controller which just returns a string. With logging I found out, that between the calling of the service controller with "wdThis.wdGetXXXServiceController().getSomething()" and the wdDoInit() of the "XXXService", there is a delay of 5-10 seconds.

So, i have no idea, what is done in this seconds. The wdDoInit should the first code be called, or not?

Maybe someone has one idea. I'm afraid, that it will not be possible to post lot more of code, because I cannot locate the problem.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

hi

the code generated automatically when you use service controller , gets placed in

component controller init() and a execute method gets created , so its not mandotary that

you write the code in the init() , you can even write the code in the execute create , if so you seem that there delay in the time using service controller , you can even have your manual code written .

I guess there should not be any performance criteria coming in picture just because of using service controller , and is you find that , write the code . manually .

Former Member
0 Kudos

I'm not sure, that I understood you correctly, sorry!

> so its not mandotary that you write the code in the init()

The code in the init method is irrelevant for the delay. The single code line "wdThis.wdGetXXXServiceController().getSomething()" needs 5-10 seconds.

So my question is what is done by the framework if I first time access a service. My first assumption was, that the wdDoInit() method of the service takes much time, but this is not the case! The wdDoInit() of the service is called AFTER the 5-10 seconds delay. So waht is done by the framework before the service instantiation?