I personally don't like the word "broker proxy" for this as what're we're
defining don't feel like proxies to me. Instead we're *describing* (instead
of defining) an existing broker. So maybe:
<brokers>
<broker name=".." class=".." uri=".." username=".." password="..">
<property name="">...</property>*
</broker>
</brokers>
- I don't see why we need yet another (random) namespace being used!!!!!
- I suggest using attributes for the required info and only using properties
as a standardized extension mechanism
We of course need to integrate the secure vault stuff right out of the box
for passwords. I don't know how that works in a case like this - can someone
please show how the secure vault would fit into this?
Sanjiva.
On Mon, Nov 29, 2010 at 11:42 AM, Amila Suriarachchi <[email protected]> wrote:
> hi,
>
> Broker Proxy is a component which users can be used to configure the broker
> details. Most of the time it is used to store the
> connection details of the Brokers out side the WSO2 Carbon product. These
> brokers can be in different types eg. ws-event, jms etc..
>
> The configuration file looks like this,
>
> <brokerProxyConfiguration xmlns="http://wso2.org/carbon/brokerproxy">
> <brokerProxyType name="ws-event"
>
> class="org.wso2.carbon.brokerproxy.core.internal.ws.WSBrokerProxyTypeFactory">
> <property name="uri"></property>
> <property name="username"></property>
> <property name="password"></property>
> </brokerProxyType>
> <brokerProxy name="wsEventServerProxy" type="ws-event">
> <property name="uri">
> https://localhost:9444/services/EventBrokerService</property>
> <property name="username">admin</property>
> <property name="password">admin</property>
> </brokerProxy>
> </brokerProxyConfiguration>
>
> The types section is used to define different types of brokers with there
> properties. So we can plug any type of broker just implementing relevant
> classes and adding an entry here.
>
> Then actual broker details can be given in broker proxy configuration.
> Later we can add a UI to configure them.
>
> OSGI interface looks like this,
>
> public interface BrokerProxyService {
>
> public List<BrokerProxyTypeDto> getBrokerProxyTypes();
>
> public void addBrokerProxy(BrokerProxy brokerProxy);
>
> public void removeBrokerProxy(BrokerProxy brokerProxy);
>
> public List<BrokerProxy> getAllBrokerProxies();
>
> public void subscribe(String brokerProxyName,
> String topicName,
> BrokerProxyListener brokerProxyListener)
> throws
> BPEventProcessingException;
>
> public void publish(String brokerProxyName,
> String topicName,
> OMElement message) throws
> BPEventProcessingException;
>
> }
>
> thanks,
> Amila.
>
>
>
> _______________________________________________
> Carbon-dev mailing list
> [email protected]
> https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev
>
>
--
Sanjiva Weerawarana, Ph.D.
Founder, Chairman & CEO; WSO2, Inc.; http://wso2.com/
email: [email protected]; phone: +94 11 763 9614; cell: +94 77 787 6880 | +1
650 265 8311
blog: http://sanjiva.weerawarana.org/
Lean . Enterprise . Middleware
_______________________________________________
Carbon-dev mailing list
[email protected]
https://wso2.org/cgi-bin/mailman/listinfo/carbon-dev