users@jersey.java.net

[Jersey] jersey with EJB3 Local injection Issues WAS7

From: Sarath S <saraths007_at_gmail.com>
Date: Tue, 13 Dec 2011 21:10:24 -0500

Hello All,

I am integrating latest version of jersey in my EJB3 project in Websphere
7.I have two issues.

1) From a jersey resource class, I tried to inject using @EJB the local
interface of the EJB, but getting . But when I use the remote inteface of
the bean, its working correctly. I am using the EJBProvider class to make
the @EJB work. Anyone has any idea how to make local injection work?


2) Since local injection is not working, I am using remote injection. But
If I return List<Object> or Object from the remote bean to the jersey
resource class, I am getting a java serialization exception.Any idea how to
fix this. If I change return type of the bean method to "String" it works.

Thanks