Re: How to make HttpSession thread-safe????

2005-04-09 Thread leonnewsgroup
Hi BAL,

Thanks for reply.
Does it mean
synchronized(session) {
session.setAttribute(..., );
// do whatever else
}
??

Leon

- Original Message - 
From: "Brian Lee" <[EMAIL PROTECTED]>
To: 
Sent: Saturday, April 09, 2005 4:06 PM
Subject: RE: How to make HttpSession thread-safe


> You can put an object in session and lock on it using synchronized. But
this
> won't work over a cluster.
>
> BAL
>
> >From: "leonnewsgroup" <[EMAIL PROTECTED]>
> >To: "Struts Users Mailing List" 
> >Subject: How to make HttpSession thread-safe
> >Date: Sat, 9 Apr 2005 15:26:30 -0400
> >
> >Hi All,
> >
> >Quick question,
> >What is the strategies to make HttpSession thread-safe?
> >Thanks.
> >
> >Leon
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
>
>
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



How to make HttpSession thread-safe????

2005-04-09 Thread leonnewsgroup
Hi All,

Quick question,
What is the strategies to make HttpSession thread-safe?
Thanks.

Leon

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Re: Struts and EJB integration question?

2005-03-02 Thread leonnewsgroup
Thanks for your reply.
It is better to use a delegate or a manage layer than use a Struts
Action class. And I want to make sure that when I implement the delegate or
manage layer, I shouldn't use J2EE instead of POJO, it is correct?

Tim

- Original Message - 
From: "Erik Weber" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List" 
Sent: Tuesday, March 01, 2005 5:03 PM
Subject: Re: Struts and EJB integration question?


> I think it depends on your service locator design and API. The goals are
> ease of maintenance, reusability/decoupling and performance. Is the
> extra layer going to facilitate reuse of your service locator/EJBs? If
> so then it's probably worth it because it probably won't cost much in
> terms of maintenance and performance (depends on your infrastructure of
> course). Might you have other services that don't require the service
> locator API or a different service locator API? If that's the case,
> again, you'd probably want to have Struts talk to a "manager layer"
> component (or as Robert Taylor suggests -- an app-specific delegate
> right in front of the manager layer component), and let this component
> find and use services directly, etc. This shields Struts from disparate
> APIs.
>
> Erik
>
>
> leonnewsgroup wrote:
>
> >Hi there,
> >
> >I am building a Struts based application with EJB model. I want to know
the
> >strategy of find and call the EJBs in model layer. My model layer is
> >implemented by a stateless or stateful session bean that accesses to
entity
> >beans. and there is a service locator object to find the session beans.
My
> >questions are where to put the code to use the service loactor to find
the
> >session beans? is it in the Struts Action classes or another delegate
class?
> >Thanks.
> >
> >Tim
> >
> >-
> >To unsubscribe, e-mail: [EMAIL PROTECTED]
> >For additional commands, e-mail: [EMAIL PROTECTED]
> >
> >
> >
> >
>
> -
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Struts and EJB integration question?

2005-03-01 Thread leonnewsgroup
Hi there,

I am building a Struts based application with EJB model. I want to know the
strategy of find and call the EJBs in model layer. My model layer is
implemented by a stateless or stateful session bean that accesses to entity
beans. and there is a service locator object to find the session beans. My
questions are where to put the code to use the service loactor to find the
session beans? is it in the Struts Action classes or another delegate class?
Thanks.

Tim

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Tools for JSP

2004-06-23 Thread leonnewsgroup
Hi there,

I was wonder if there is a tool for devloping of JSP pages or is there a way
to quickly produce JSP pages?
Thanks.

James

-
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]