Post your bean code. I think the container allows an illegal construct.
You can't use the same interface both as local and remote.
So either:
@Stateless
| @Remote(MyStatelessRemote.class)
| @Local(MyStatelessLocal.class)
| public class MyStatelessBean
or
@Stateless
| public class
Heres my code:
inteface (business interface) is unannotated:
public interface OrderService {...}
my slsb is annotated as follows:
@Stateless
@Local
@Remote
@TransactionManagement(TransactionManagementType.CONTAINER)
@TransactionAttribute(TransactionAttributeType.REQUIRED)
public class
As I suspected. You must specify an interface when annotating a session bean
with @Remote or @Local.
I've opened a bug: http://jira.jboss.com/jira/browse/EJBTHREE-1025
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4070102#4070102
Reply to the post :
I apologize. I did not notice that in your example you are specifying the
interface classes for each annotation. I just saw that the bean can be
annotated with both @local and @remote, and so I thought I was doing it right.
By using two interfaces it works fine. Thanks for your time and effort.
Nope, because of the different semantics. A remote is always called by value, a
local is called by reference. It would lead to strange inconsistencies.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4070226#4070226
Reply to the post :
Alright. Thanks.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4070248#4070248
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4070248
___
jboss-user mailing list
can anybody please reply to the question. i am unable to get a handle for the
local proxy even when one is available , even after trying all combinations of
@ejb attributes. i am stuck.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4069667#4069667
Reply to
http://jira.jboss.com/jira/browse/EJBTHREE-663
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4069097#4069097
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4069097
___
jboss-user
sorry for less details in my earlier post.
in my case my SLSbean is annotated both @local and @remote, not the business
interface. but still only the remote proxy is injected, even when i add the
attribute: name=earName/beanName/local to the @annotation.
Is this expected behavior?
View the