Sunday, December 09, 2012

Handling JSF Exceptions in CDI based applications


If jsf and cdi are used in an application, jsf lifecycle methods that aborts the jsf lifecycle must not be called in jsf phase listeners.

CDI integrated with JSF using a JSF phase listener, resources such as conversation context are reseved by CDI in beforephase method that called in restore view phase. Also CDI resources released in afterPhase method of phase listener during render response phase. When you reach to render response phase resources released unconditionally  by CDI. 
 
If we call methods such as responseComplete that aborts the calling of afterPhase methods, resources released in after phase methods is not released and CDI resource locks unreleased . You may encounter with ConversationBusyException during the next request.



2 Comments:

Blogger Killtan Roy said...

I absolutely adore your blog. It is exquisite and you have a great writing style.
Congratulations on your Demne design: you must be so proud of yourself. I have a thing about buttons too.last time I'm visit write my essay site I got so many new information and proves to be operating rapid and qualitative with every order. All the orders our writers get are important to us and each consumer is precious. resources which include communique context are reseed by using CDI in beforephase technique that called in repair view section. also CDI resources launched in after Phase approach of segment listener for the duration of render response section.

10:14 PM  
Blogger Eldora Morris said...

You have used a different writing style here. It looks really nice and the way you have presented the topic was truly amazing. Best essay writing service

11:47 PM  

Post a Comment

<< Home