You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@deltaspike.apache.org by 十三郎 <mi...@163.com> on 2013/10/01 06:07:33 UTC
about directwebremoting-jsf-integration call a managedBean
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!!
Re: about directwebremoting-jsf-integration call a managedBean
Posted by Gerhard Petracek <ge...@gmail.com>.
@jason: +1 (esp. for jax-rs)
regards,
gerhard
2013/10/1 Jason Porter <li...@gmail.com>
> We found remoting to be used by very few people and didn't see a point in
> continuing development for it via deltaspike (sorry you were in that boat).
> You may be interested in CDI and JAX-RS or even looking into Errai as
> possible solutions going forward.
>
>
> On Mon, Sep 30, 2013 at 10:07 PM, 十三郎 <mi...@163.com> wrote:
>
> > 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!!
> >
> >
> >
>
>
> --
> Jason Porter
> http://en.gravatar.com/lightguardjp
>
Re: about directwebremoting-jsf-integration call a managedBean
Posted by Jason Porter <li...@gmail.com>.
We found remoting to be used by very few people and didn't see a point in
continuing development for it via deltaspike (sorry you were in that boat).
You may be interested in CDI and JAX-RS or even looking into Errai as
possible solutions going forward.
On Mon, Sep 30, 2013 at 10:07 PM, 十三郎 <mi...@163.com> wrote:
> 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!!
>
>
>
--
Jason Porter
http://en.gravatar.com/lightguardjp