All the DAO classes I've created we're purely stateless ... All final
fields, immutable values. that's because the only perthread part is the
injected Hibernate session.
Basically, all your services should be singletons unless here's a
compelling reason not to, and there rarely is.
On Friday, Sep
Hi
Are you binding your service in the Module class ?
public static void bind(ServiceBinder binder){
binder.bind(Facade.class, FacadeImpl.class); //In case it is an
interface/impl
binder.bind(ImplBO.class) // In case it is a class
}
regards
Taha
On Sep 15, 2012, at 7:54 AM, Diego Barreto
Hi,
I know that i'm doing something wrong, but I don't know what!
I'm just trying to inject a simple class (Facade for my BO's) in a page,
like:
@inject
private Facade facade;
In my Facade I receive an BO implementation with inject too:
@Inject
private ImplBO implBO;
This code works in other
Thank You Carsten for your explanation. It definitely helps and I'll
definitely check out your suggestions.
Does anybody have any suggestions in regards to DAO's? Should the scope be
set to Perthread or should DAO services be left as singletons? I had an
issue last week with a multi thread import
See my other reply regarding fundamental modifiers of the Java Language.
As for frameworks such as tapestry you are dealing with a Component and
Object Model (COM).
In addition, tapestry uses plastic to induce synthetic methods such as
getters and setters into your classes. See for example Objec
While this is not on topic, you refer to properties and methods of a class
as its fields. Modifiers govern both the access scope and storage scope
and inheritance scope of a given field or method, for example 'public',
'private', 'protected', 'abstract', 'final', or 'static' or default,
which mean
Thanks guys, you have all answered my question. Being relatively new to
programming, I discovered this issue today while seeing data being shared
between sessions. "not something I planned".
Thiago - I don't know what they're called then. My java book said they were
modifiers. You build your gette
I'll guess the question is how to use services at all...
As IOC services are usually singletons changing state via setters will affect
all threads which deal with this service thus data may creep from one session
to another and will introduce concurrency problems immediately. In case a
service i
AFAIK, all service instances are singletons and shared across threads of
the VM unless you declare them perthread as you do with your UserService.
Having multiple independent instances of that service is your actual
problem, as you would have to declare them in source using modifiers,
which is no
On Fri, 14 Sep 2012 16:59:44 -0300, George Christman
wrote:
My bad, I meant modifier. I was setting the modifier with a set method
then accessing the data within the modifer from other methods.
I still don't know what you're talking about. Are you saying modifier as
meaning the same as s
My bad, I meant modifier. I was setting the modifier with a set method then
accessing the data within the modifer from other methods. If I understand
trsvax correctly, do not set the modifer, but rather pass the data in
through my methods. I am setting all services to final and only using
perthread
On Fri, 14 Sep 2012 16:11:57 -0300, George Christman
wrote:
Hello,
Hi!
I'm wondering if there is danger to setting an attribute object in a
service. I notice it tends to stick around and I'm worried it could be
accessed by other user sessions.
What do you mean by attribute in the para
That would be a problem unless the service is perthread. As you say just pass
the object to your method.
To avoid this it's best to just declare all fields in services as final.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/Sevice-State-Stateless-tp5716278p5716279.htm
Hello, I'm wondering if there is danger to setting an attribute object in a
service. I notice it tends to stick around and I'm worried it could be
accessed by other user sessions.
example
public class MyServiceImpl implements MyService {
private SomeObject obj
private void initialize(SomeObjec
Currently, there isn't a way to perform a == using the bytecode API.
On Tue, Sep 4, 2012 at 9:03 AM, Josh Canfield wrote:
> Perhaps I don't understand what you mean by using plastic. Plastic doesn't
> change how equality works. == is reference compare, use .equals if they are
> objects. Are you t
Hello, perhaps this is normal behavior although it wouldn't any sense to me,
but my value encoder seems to be called twice for every new row added to the
AjaxAddRow component. Is this normal? I'm not sure why it is happening.
Sample code.
.tml
Whoops. i think i missed / overlooked some things with regards to session
storage.. the question is not very relevant. My mistake.
--
View this message in context:
http://tapestry.1045711.n5.nabble.com/HttpSession-state-storage-tp5716273p5716274.html
Sent from the Tapestry - User mailing list a
Hi all,
I'm currently debugging some code to look for httpsession storage issues and
i may have overlooked something but it seems to me that specific page state,
that is session variables that only belong to a single page, are always
returned in the session object even if that page is not called/u
18 matches
Mail list logo