This content has been marked as final.
Show 2 replies
-
1. Re: Getting Properties form Session Bean
andre.eugenio Oct 6, 2008 2:20 PM (in response to ajanz)Why not just inject the SessioBean ?
@In SessionBean beanName;
In your code
Session
is the name of the bean (@Name) ? -
2. Re: Getting Properties form Session Bean
ajanz Oct 6, 2008 2:34 PM (in response to ajanz)Ok i tried
@In SessionBean Session;
the session bean is defined
@Stateful
@Name("Session")
@Scope(value = ScopeType.SESSION)
@Synchronized(timeout = 10000)
public class SessionBean implements Session {
but i got error
caused by: java.lang.IllegalArgumentException: Can not set de.soaworkflow.session.SessionBean field de.soaworkflow.session.UploadBean.Session to org.javassist.tmp.java.lang.Object_$$_javassist_2
at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:146)
at sun.reflect.UnsafeFieldAccessorImpl.throwSetIllegalArgumentException(UnsafeFieldAccessorImpl.java:150)
at sun.reflect.UnsafeObjectFieldAccessorImpl.set(UnsafeObjectFieldAccessorImpl.java:63)
at java.lang.reflect.Field.set(Field.java:657)
at org.jboss.seam.util.Reflections.set(Reflections.java:64)
... 73 more