Hi Dani,
I guess that you talk about the Shibboleth SSO ?
I think that you can support Shibboleth using servicemix-bean component.
Using this component, you can register a bean (spring like) in the NMR.
Maybe you can do a bean like that:
public class ShibbolethBean implements MessageExchangeListener {
@Resource
private DeliveryChannel channel;
public void onMessageExchange(MessageExchange exchange) throws
MessagingException {
if (exchange.getStatus() == ExchangeStatus.ACTIVE) {
NormalizedMessage message = exchange.getMessage("in");
Source content = message.getContent();
// transform in message to Shibboleth message
// and send to Shibboleth
// populate the content with Shibboleth response
message.setContent(content);
exchange.setMessage(message, "out");
channel.send(exchange);
}
}
}
after you define it using a xbean.xml like this:
<beans xmlns:bean="http://servicemix.apache.org/bean/1.0"
xmlns:my="http://www.example.org/my">
<bean:endpoint service="my:SSO" endpoint="shibboleth"
bean="#shibbolethBean"/>
<bean id="shibbolethBean" class="my.ShibbolethBean"/>
</beans>
Like this, you can bind a central SSO service into ServiceMix. Your
application can use this central SSO service. This SSO service can use a
shibboleth backend (using the bean) but you can change the backend
(using a WebService or another bean for example).
Anyway, you can achieve the same using a Shibboleth component. Depending
of the Shibboleth point of view, it can be a SE or a BC.
Regards
JB
silgurd wrote:
Hi JB:
My intention is to develop a service engine for handling Shibboleth messages
and to make some job with them.
Exist a service engine that do this?
Thanks
Regards
Dani
----------------------------------------------------------------------------------
Jean-Baptiste Onofré wrote:
Hi Dani,
My first question is: are you sure that you need to implement a service
engine component ?
A service engine is a component such as servicemix-cxf-se,
servicemix-quartz, servicemix-exec, etc.
If you need a new SE, it means that you need to do something not cover
by the existing SEs.
Most of the time, the users create a SU based on a component.
So, my other question is: what your service needs to do that it's not
cover by existing SEs ?
Thanks
Regards
JB
silgurd wrote:
Hi:
I'm trying to develop some JBI service engines by following the
hello-world-se tutorial, but it is incomplete and out of date in most of
cases.
I have looked for some guide to develop this kind of components in
Internet,
but I get nothing interesting.
Somebody knows some developer guide for it??
Dani