[EJB/JBoss] - MQSeries with JBoss
by archmisha
Hi,
I am new to ejb / jboss.
Will appretiate your help considerably.
I am trying to create a simple Message Driven Bean test, that connects to MQSeries queue.
Currently i have a simple java class that is able to connect and read a message.
What I dont understand is what files / descriptors i need to make: jboss.xml, application.xml, ejb-jar.xml etc
And what should be put into them
I am using ejb3 and Intellij IDEA.
So far it wont recognize ejb-jar tag in the xml.
I created a class and annotated it with @MessageDriven
But jboss.xml wont recognize my ejb-name value.
I can seem to find any step by step simple tutorial or explanation f how to handle this.
Please any help.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4221351#4221351
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4221351
17 years
[Security & JAAS/JBoss] - Re: Mixing CLIENT-CERT and BASIC authentication
by alexanders
Not sure this question is in scope of the forum.
Two things you need to describe in your web.xml:
1) Security constraint mapped to some url pattern and requires some role.
2) Role mapped to security domain.
So you need to configure your web.xml as following:
Two different security constraints mapped each to its url pattern
e.g.
<url-pattern>/*_cert_requred_*</url-pattern>
requires some role: "CertProtected"
<url-pattern>/*_passwd_requred_*</url-pattern>
requires some role: "PasswordProtected"
Best way to do this - separate your app to subcontexts:
<url-pattern>/cert_requred/*</url-pattern>
<url-pattern>/passwd_requred/*</url-pattern>
Then you need to map each role to its JAAS domain.
If you are mapping some security constraints to one url pattern (/*)... The result is depending on implementation. In best case you will got working the last constraint.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4221346#4221346
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4221346
17 years