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=bb&op=viewtopic&p=4195612#4195612
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=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=bb&op=viewtopic&p=4195388#4195388
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=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 :
http://www.jboss.com/index.html?module=bb&op=viewto
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:
| http://java.sun.com/xml/ns/javaee";
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
| xsi:schemaLocation="htt
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 jboss-app
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=bb&op=viewtopic&p=4193848#4193848
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=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=bb&op=viewtopic&p=4193501#4193501
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4193501
_
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=bb&op=viewtopic&p=4193089#4193089
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4193089
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=bb&op=viewtopic&p=4193064#4193064
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4