deltaspike-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From εδΈ‰ιƒŽ <mihaish...@163.com>
Subject about directwebremoting-jsf-integration call a managedBean
Date Tue, 01 Oct 2013 04:07:33 GMT
 hi,everyone 

i like seam-remoting very much.
because of the active development of seam3 has been halted,i must use deltaspike instead.

so i cant use seam-remoting now,
so i try to use directwebremoting(directwebremoting and jsf integration) to call managedbean.

i find directwebremoting-jsf-integration not support CDI .like this.
public class Test
{
    @Inject
    private EntityManager entityManager;
    @Named
    @Transactional
    @Admin
    @RemoteMethod
    public String test1(){
        return "kkkk";
    }
   
    @Named
    @RemoteMethod
    public void test2(){
        //...
        String sql="select 'test' ";
        Query query=entityManager.createNativeQuery(sql);
       //...
    }
}
   method test1 run well,but method test2 run to error(may be not support @Inject variable)

im sure dont use seam3 later.
what can i do,thanks everyone!!



Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message