You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@servicemix.apache.org by goldi <go...@freenet.de> on 2007/03/27 15:48:31 UTC

Securing Message Transfer!

Hi everybody,

I have configured a „JmsInUsingJCABinding“ component exposing a topic. To
this topic subscribe some clients outside of the ESB using the ActiveMQ API.
Everything works fine. Now I want to secure this component, so that just
clients can subscribe to the topic who have an expected login. I know that I
can make a component secure while setting 

<sm:authorizationEntry service="my:Service" roles="myClients"/> 

this in the “secure.xml” and I know that I have to set login and password in
the propertie files.

But I don’t know where I have to set login and password on the client side.
The following doesn’t work: 

ActiveMQConnectionFactory connectionFactory = new
ActiveMQConnectionFactory(user, password, url);

(Doesn't work means that I can't access the topic anymore.)

Greets André

-- 
View this message in context: http://www.nabble.com/Securing-Message-Transfer%21-tf3473189s12049.html#a9692726
Sent from the ServiceMix - User mailing list archive at Nabble.com.


Re: Securing Message Transfer!

Posted by Bruce Snyder <br...@gmail.com>.
On 3/27/07, goldi <go...@freenet.de> wrote:
>
> Hi everybody,
>
> I have configured a „JmsInUsingJCABinding" component exposing a topic. To
> this topic subscribe some clients outside of the ESB using the ActiveMQ API.
> Everything works fine. Now I want to secure this component, so that just
> clients can subscribe to the topic who have an expected login. I know that I
> can make a component secure while setting
>
> <sm:authorizationEntry service="my:Service" roles="myClients"/>
>
> this in the "secure.xml" and I know that I have to set login and password in
> the propertie files.
>
> But I don't know where I have to set login and password on the client side.
> The following doesn't work:
>
> ActiveMQConnectionFactory connectionFactory = new
> ActiveMQConnectionFactory(user, password, url);

If you want to secure the topic via ActiveMQ and the topic, see the
ActiveMQ security documentation:

http://activemq.apache.org/security.html

If you want to secure the component via ServiceMix, see the ServiceMix
security documentation:

http://incubator.apache.org/servicemix/security.html

Bruce
-- 
perl -e 'print unpack("u30","D0G)U8V4\@4VYY9&5R\"F)R=6-E+G-N>61E<D\!G;6%I;\"YC;VT*"
);'

Apache Geronimo - http://geronimo.apache.org/
Apache ActiveMQ - http://activemq.org/
Apache ServiceMix - http://servicemix.org/
Castor - http://castor.org/