Serialization works fine in my test project but i created an issue for the
AppScoped problem! ;)
2014-06-19 0:27 GMT+02:00 Thomas Andraschko :
> I will provide an example on friday!
>
>
> 2014-06-18 19:30 GMT+02:00 Romain Manni-Bucau :
>
> +1
>>
>> Le mercredi 18 juin 2014, Karl Kildén a écrit
I will provide an example on friday!
2014-06-18 19:30 GMT+02:00 Romain Manni-Bucau :
> +1
>
> Le mercredi 18 juin 2014, Karl Kildén a écrit :
> > Feels like it should default to @ApplicationScoped? I see no reason why
> not
> > at least
> >
> >
> > On 18 June 2014 13:12, Thomas Andraschko
> >
+1
Le mercredi 18 juin 2014, Karl Kildén a écrit :
> Feels like it should default to @ApplicationScoped? I see no reason why
not
> at least
>
>
> On 18 June 2014 13:12, Thomas Andraschko
> wrote:
>
>> or: @Repository(scope = ApplicationScoped.class)
>>
>>
>> 2014-06-18 12:25 GMT+02:00 Thomas And
There was never an intention to restrict repositories to dependent scope.
If there's a general problem with scopes requiring serialization then I
guess it's a bug in the data module. If I remember correctly it also
depends on the CDI container, OWB seemed to be stricter here.
But as Gerhard mentio
Hi Gerhard,
i know this and the serialization isn't my problem.
I would just like to set the scope of an repository!
Regards,
Thomas
2014-06-18 14:59 GMT+02:00 Gerhard Petracek :
> hi thomas,
>
> you can set org.apache.myfaces.SERIALIZE_STATE_IN_SESSION to false.
> (since jsf 2.2 that's the de
hi thomas,
you can set org.apache.myfaces.SERIALIZE_STATE_IN_SESSION to false.
(since jsf 2.2 that's the default anyway - see
javax.faces.SERIALIZE_SERVER_STATE)
however, it would be great, if you provide a demo-application which
illustrates the issue.
regards,
gerhard
2014-06-18 14:36 GMT+02
So how can i scope my repository? If i add a @ApplicationScoped to my
repository (interface or abstract class), i get weird exceptions.
@Serialization
The exception is from myfaces view serialization that
AnnotationMetadataExtractor isn't serializable. So therefore somewhere the
repository holds a
@thomas h.:
yes - at least there isn't a known issue with the partial-bean-module...
@thomas a.:
it sounds like a different issue, however, we need at least a stack-trace
(or even better a test-case which illustrates the issue).
regards,
gerhard
2014-06-18 13:50 GMT+02:00 Thomas Hug :
> You c
You can scope partial beans just like any other bean (@Gerhard, correct me
if I'm wrong) - e.g. like this example here in the JDF [1].
For the serialization issue I'd have to check. The partial bean
InvocationHandler is a Serializable [2]. Can you paste a stacktrace
somewhere?
[1]
https://github.
Feels like it should default to @ApplicationScoped? I see no reason why not
at least
On 18 June 2014 13:12, Thomas Andraschko
wrote:
> or: @Repository(scope = ApplicationScoped.class)
>
>
> 2014-06-18 12:25 GMT+02:00 Thomas Andraschko >:
>
> > Hi Thomas,
> >
> > my problem is that when i injec
or: @Repository(scope = ApplicationScoped.class)
2014-06-18 12:25 GMT+02:00 Thomas Andraschko :
> Hi Thomas,
>
> my problem is that when i inject it in a ViewScoped bean, it tries to
> serialize it but it isn't serializable.
> Could we make it configurable? Maybe we could declerate the scope on
Hi Thomas,
my problem is that when i inject it in a ViewScoped bean, it tries to
serialize it but it isn't serializable.
Could we make it configurable? Maybe we could declerate the scope on the
repo:
@Repository
@ApplicationScoped
public abstract class MyRepository extends
AbstractEntityRepositor
Hi Thomas
We made some efforts to get rid of scope-related parts in the impl, but I
don't think there's anything speakin' against a @NormalScoped repo -
PartialBeans do support that.
Cheers,
Thomas
On Wed, Jun 18, 2014 at 11:37 AM, Thomas Andraschko <
andraschko.tho...@gmail.com> wrote:
> Hi,
>
Hi,
AFAICS repositories are non-scoped, right?
Isn't it possible to make them appscoped?
Regards,
Thomas
14 matches
Mail list logo