2008/8/4 Arif Rachim <[EMAIL PROTECTED]>:
> Initialization can be expensive, method execution can be expensive as
> well. Problemnya kalau method execution expensive di ejb bisa dipecah2
> karena method tsb tidak perlu di lock, sedangkan lightweight ioc,
> thread harus menunggu sampai proses yg lock object tsb selesai.

Saya nggak bilang kalo execution nggak expensive. Tapi semua itu relatif,
tergantung dari problemnya. Kita juga bisa buat remove synchronize block
completely.
Contoh, ganti dari singleton -> request/session/prototype scope. Semuanya punya
kelebihan dan kekurangannya.

Regards,
Edward Yakop

Reply via email to