[JBoss Seam] - Re: Injection and remoting
by gllambi
Thank you very much for the fast reply.
"sbryzak2" wrote : The login() method in your example is clearly intended to be invoked within a JSF context - it adds messages via FacesMessages and returns an action string. Remoting is not intended to be used to call action methods such as this.
|
I'm new to Remoting and Ajax, can you give me a good example when to use it?
anonymous wrote :
| If however this is just an experiment to see how remoting works, and you're wondering why "cliente" isn't being injected from your form, it's because remoting calls need to explicitly specify any parameters that you require to be passed. I.e. your login method prototype would need to be:
|
| | public String login(Cliente client)
| |
|
| On the client side you would need to create a new Cliente object and populate it with the username and password, then pass this object as a parameter in your remote call.
So it's not posible to inject it with the @In annotation?
Thanks a lot!
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985748#3985748
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985748
19Â years, 7Â months
[EJB 3.0] - Re: SerializationException when attempting to activate/passi
by redyz
Hi,
I got the SerializationException problem when JBoss 4.0.4 tries to activate a stateful session bean that was passivated (and hence serialized to a file unser [JBOSS-DIR]/server/all/tmp/sessions directory). I am not using enum. The error is as follows:
Exception in thread "AWT-EventQueue-0" java.lang.RuntimeException: org.jboss.serial.exception.SerializationException: Could not create instance of org.hibernate.ejb.QueryImpl - org.hibernate.ejb.QueryImpl
at org.jboss.ejb3.stateful.StatefulBeanContext.extractBeanAndInterceptors(StatefulBeanContext.java:365)
at org.jboss.ejb3.stateful.StatefulBeanContext.getInstance(StatefulBeanContext.java:309)
at org.jboss.ejb3.stateful.StatefulInstanceInterceptor.invoke(StatefulInstanceInterceptor.java:75)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.security.AuthenticationInterceptor.invoke(AuthenticationInterceptor.java:78)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.ENCPropagationInterceptor.invoke(ENCPropagationInterceptor.java:47)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.asynchronous.AsynchronousInterceptor.invoke(AsynchronousInterceptor.java:106)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.stateful.StatefulContainer.dynamicInvoke(StatefulContainer.java:308)
at org.jboss.aop.Dispatcher.invoke(Dispatcher.java:106)
at org.jboss.aspects.remoting.AOPRemotingInvocationHandler.invoke(AOPRemotingInvocationHandler.java:82)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:828)
at org.jboss.remoting.ServerInvoker.invoke(ServerInvoker.java:681)
at org.jboss.remoting.transport.socket.ServerThread.processInvocation(ServerThread.java:358)
at org.jboss.remoting.transport.socket.ServerThread.dorun(ServerThread.java:412)
at org.jboss.remoting.transport.socket.ServerThread.run(ServerThread.java:239)
at org.jboss.remoting.RemoteClientInvoker.invoke(RemoteClientInvoker.java:190)
at org.jboss.remoting.Client.invoke(Client.java:525)
at org.jboss.remoting.Client.invoke(Client.java:488)
at org.jboss.aspects.remoting.InvokeRemoteInterceptor.invoke(InvokeRemoteInterceptor.java:55)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.tx.ClientTxPropagationInterceptor.invoke(ClientTxPropagationInterceptor.java:61)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.aspects.security.SecurityClientInterceptor.invoke(SecurityClientInterceptor.java:55)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.remoting.IsLocalInterceptor.invoke(IsLocalInterceptor.java:65)
at org.jboss.aop.joinpoint.MethodInvocation.invokeNext(MethodInvocation.java:101)
at org.jboss.ejb3.stateful.StatefulRemoteProxy.invoke(StatefulRemoteProxy.java:133)
at $Proxy4.report(Unknown Source)
at uk.co.MyCompany.a.b.MyStatefulBean.report(MyStatefulBean.java:49)
Somehow the deserialization in JBoss is not working??
Any help greatly appreciated.
redyz
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985743#3985743
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985743
19Â years, 7Â months