I already decided before you answered - I just search since 15 minutes for a 
myFaces + orchestra tutorial or example. Now I have to change my little 
application (to use spring and orchestra) - theres any archetype to create a 
myFaces+spring+orchestra webproject with maven?

Best regards and thx for helping me :)

-----Ursprüngliche Nachricht-----
Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
Gesendet: Montag, 17. März 2008 12:18
An: MyFaces Discussion
Betreff: Re: AW: AW: Bean Scope Problems

All of the libraries I listed will give you (1) and (2).

I have to warn you first that I'm biased; I'm one of the developers of
the Orchestra library.

Orchestra does this scope management, and nothing else. So in my opinion
it's the easiest to learn if that's all you need. It's very new though.
And does require that you use Spring to define the beans you want to
have in conversation scope.

Seam provides a whole bunch of useful JSF enhancements, of which
conversation-scopes are one. It's a very good and well-known library,
and as far as I know you can use just the conversation stuff without the
other features. And there are many books on seam. But because there is
so much stuff, I find it difficult to get info on how to use just
conversation scopes. I'm also not convinced that discarding data when a
user navigates away is easy with Seam; AFAIK an "end" method *must* be
invoked to get rid of data that is no longer wanted (while orchestra
does it completely automatically). Note, however, that I'm not an expert
on Seam.

Spring WebFlow insists that you define your navigation flows using the
spring webflow state-machine syntax; you cannot have conversation scopes
unless you do that first. The website does give some good reasons why
their state-machine approach is useful though..

I *think* Shale Dialogs works like webflow, ie you first need to define
your navigation using its system. And the shale project is not very
active at the moment, so probably the other libs should be investigated
first.

Regards,
Simon

[EMAIL PROTECTED] schrieb:
> Thx for response!
> And with one of that libraries it is possible to set the scope like that:
> 1)page1 ==> load date and present
> 2) switch to another page ==> page1 data get "destroyed" and not longer in
> session
>
> That’s possible? Which library I should use? I just need that scope support,
> so is it legitimate to use another framework but only use a small part of
> that (only scope)?
>
> Well I think I have to research.
>
> regards
>
> -----Ursprüngliche Nachricht-----
> Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] 
> Gesendet: Montag, 17. März 2008 11:48
> An: MyFaces Discussion
> Betreff: Re: AW: Bean Scope Problems
>
> Hi Marcus,
>
> The best solution depends upon the scalability vs performance tradeoff
> you want.
>
> If you want an app that will scale to many thousands of concurrent
> users, then reloading on each request may be best. It adds more load on
> the cpu, but doesn't need memory on the server.
>
> However if you have a smallish number of users but want better
> performance then yes caching the db request data is best. But as you
> say, using the session sucks. For many reasons.
>
> Having data remain in memory across a sequence of operations is called
> "conversation scope", and there are a number of libraries that add
> conversation scope to JSF. The ones I know of are:
> * Apache MyFaces Orchestra
> * JBoss Seam
> * Spring WebFlow
> * Apache Shale Dialog
>
> In all cases, these libraries make it easy for the data to be discarded
> when no longer needed (when the user moves off to some other part of the
> app).
>
> The Apache MyFaces Tomahawk library "t:saveState" tag is like a very
> simple conversation-scope; it works for simple cases but, as you have
> found out, it is not an elegant solution when there are many beans or
> many pages that need to hold data in "conversation scope".
>
> Regards,
> Simon
>
> [EMAIL PROTECTED] schrieb:
>   
>> Sure, to make all beans session need many resources that’s the problem.
>>
>> *Von:* [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED]
>> *Gesendet:* Montag, 17. März 2008 11:20
>> *An:* [email protected]
>> *Betreff:* RE: Bean Scope Problems
>>
>> Is there any reason you want to make the beans request?
>>
>> The values you required for all the request can be put in the session
>> and keep all the beans as request. I mean create sepearet data model
>> and save it in session.
>>                              writer.writeText(""", null);
>>
>> ------------------------------------------------------------------------
>>
>> *From:* [EMAIL PROTECTED]
>> [mailto:[EMAIL PROTECTED]
>> *Sent:* Monday, March 17, 2008 3:47 PM
>> *To:* [email protected]
>> *Subject:* Bean Scope Problems
>>
>> Hi!
>>
>> Every JSP has his own bean and I want that this beans have a scope of
>> request, but if I really set request scope on every request database
>> data get loaded = many database transactions.
>>
>> So whats the correct way?
>>
>> Save database data on a separate bean which have session scope or used
>> t:saveState and other beans get data from this bean or I have to use
>> t:saveState for all beans?
>>
>> I hope you understand my problem – whats the best way do to this?
>>
>> Regards
>>
>> markus
>>
>> The information contained in this electronic message and any
>> attachments to this message are intended for the exclusive use of the
>> addressee(s) and may contain proprietary, confidential or privileged
>> information. If you are not the intended recipient, you should not
>> disseminate, distribute or copy this e-mail. Please notify the sender
>> immediately and destroy all copies of this message and any attachments.
>>
>> WARNING: Computer viruses can be transmitted via email. The recipient
>> should check this email and any attachments for the presence of
>> viruses. The company accepts no liability for any damage caused by any
>> virus transmitted by this email.
>>
>> www.wipro.com
>>
>>     
>
>
>   

Reply via email to