Does anyone else have any ideas? This was easy to do with EJB 2.x.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4195612#4195612
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4195612
Ok, I'm sorry, I misunderstood your initial question. I cannot help you
further.
Wolfgang
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4195388#4195388
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4195388
That is what you do to declare your roles. I have already done that. I need
to declare my role references because the roles that I have hardcoded in my
beans might not necessarily be the roles used in the deployment.
View the original post :
Hi,
you don't need to specify your session beans in ejb-jar.xml, if you just want
to declare the roles. The beans can still use annotations.
Here is a sample:
?xml version=1.0 encoding=UTF-8?
| ejb-jar id=ejb-jar_ID version=3.0
xmlns=http://java.sun.com/xml/ns/javaee;
|
I tried to create the ejb-jar.xml but it requires me to also define the
ejb-class, session-type, transaction-type, etc. Shouldn't this all be defined
from the annotations? It seems redundant to me. Is this the only way to
define security role references?
I've tried in jboss.xml and
Thanks for your help, I'll give that a try and let you know.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4193848#4193848
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4193848
It should be no problem to merge annotations and ejb-jar.xml.
Best regards
Wolfgang
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4193501#4193501
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4193501
You could try to add this to ejb-jar.xml in the EJB JAR instead (just a
guess).
Hope this helps
Wolfgang
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4193064#4193064
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4193064
Thanks Wolfgang, but I don't have an ejb-jar.xml since I am using annotations.
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=4193089#4193089
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4193089