users@woodstock.java.net

Re: Progress bar + EJB as back bean

From: Felipe Jaekel <fkjaekel_at_gmail.com>
Date: Sun, 14 Sep 2008 16:20:54 -0300

Im my case its not suitable to use the database.

Isn't there any other solution?

Thanks,
Felipe

2008/9/10 Federico Vela <fvela_at_paysett.com>

> I synch the values at the database level, so the process EJB updates the
> database, and the progress bar's EJB reads the status from the database. You
> cannot share EJB instances.
>
> HTH
>
> Federico Vela
>
>
>
> Felipe Jaekel wrote:
>
>> I have a stateless session bean injected in a AbstractPageBean. I'm
>> binding the vales the same way I did when using a session managed bean.
>> Debugging the application I can see that the refresh thread is accessing a
>> different instance of the EJB, so the only time the component is actually
>> refreshed is when the task is completed.
>>
>> Any ideas?
>>
>> Thanks,
>> Felipe
>>
>> 2008/9/9 Federico Vela <fvela_at_paysett.com <mailto:fvela_at_paysett.com>>
>>
>> I have done this and it works nicely, have your processing ejb
>> update the progress bar variables through a progress bar facade
>> EJB, and have a separate page (im going to try for a popup) that
>> displays the progress bar through a separate bean, and updates
>> every few seconds.
>>
>> Federico Vela
>>
>>
>>
>>
>> Felipe Jaekel wrote:
>>
>> I'm using an EJB to process business logic from a page.
>>
>> I'd like to use a progress bar, is it possible?
>>
>> I've used the same logic from a JSF Managed Session Bean and
>> it doesn't work. It seems that the component threads creates
>> new EJB instances. I've tried with Stateless and Stateful.
>>
>> Thanks for any help,
>> Felipe
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_woodstock.dev.java.net
>> <mailto:users-unsubscribe_at_woodstock.dev.java.net>
>> For additional commands, e-mail: users-help_at_woodstock.dev.java.net
>> <mailto:users-help_at_woodstock.dev.java.net>
>>
>>
>>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: users-unsubscribe_at_woodstock.dev.java.net
> For additional commands, e-mail: users-help_at_woodstock.dev.java.net
>
>