You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@qpid.apache.org by "Andrea Gazzarini (JIRA)" <qp...@incubator.apache.org> on 2008/10/30 20:58:44 UTC

[jira] Commented: (QPID-1411) Simplify QMan configuration

    [ https://issues.apache.org/jira/browse/QPID-1411?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12644085#action_12644085 ] 

Andrea Gazzarini commented on QPID-1411:
----------------------------------------

Hi all, according to this issue description I'm going (tomorrow morning) to submit the latest patch of QMan. 
Here are the new features :

*** CONFIGURATION ***

1) QMan configuration file schema has been changed so its no longer possible to define type & access mode mappings.
The reason is that QMan must have a set of predefined mappings in order to work correctly and it makes no sense to let the user configure them. That's applicable for type mappings (association between a code and a management type i.e. 1 - Uint8) and acces mode mappings (association between a code and an access mode i.e. 1 - RC). The only thing that you can configure is the broker(s) data (host, port, virtual host, username, connection pool).

2) QMan bundle comes in this version with no configuration file. 
org/apache/qpid/management/config.xml has been removed : you can supply your own configuration file (containing the broker(s) you want to connect) via command line using the option -Dqman-config=<filename>. Note that this option is valid even if you are using QMan deployed on an Application Server.
If this option is missing QMan starts without any connected broker. Later you can use its administration interface in order to connect it with broker(s)

**** QMAN ADMINISTRATION / MANAGEMENT INTERFACE ****

With this version QMan is itself an MBean and therefore it has an administration / management interface. 
So if you are using JConsole or JBoss JMX Console now you can see another MBean under the Q-MAN domain (Q-MAN: Type=Service).
At the moment there's only one available operation called addBroker(...) that let's you connect QMan with a broker. When you invoke that operation you can have one of the followinf scenarios :

- an exception (wrapped by MBeanException) called BrokerConnectionException : a connection can't be esyabilished.
- an exception (wrapped by MBeanException) called BrokerAlreadyConnectedException : the broker is already connected.
- success : the broker is now connected and after just a moment you should see events & objects coming from connected broker.

Any comment / suggestion would be appreciated...I'd need some suggestions about other operations that should be part of QMan administration interface (stop, start, removeBroker, wtc wtc

Regards,
Andrea

> Simplify QMan configuration 
> ----------------------------
>
>                 Key: QPID-1411
>                 URL: https://issues.apache.org/jira/browse/QPID-1411
>             Project: Qpid
>          Issue Type: Improvement
>          Components: Java Tools
>    Affects Versions: M4
>            Reporter: Arnaud Simon
>             Fix For: M4
>
>
> Currently QMan is configured through a an xml file "config.xml" that must be located in src\main\java\org\apache\qpid\management. This configuration file is use for defining the type mappings and the brokers. 
> I would suggest that we do the following 
> - As default QMan does not connect to any broker 
> - The type mappings are part of the code 
> - Brokers can be configured via a VM parameter "qman-config" pointing on a xml file 

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.