|
Key
This line was removed.
This word was removed. This word was added.
This line was added.
|
Changes (8)
View Page History!delete.png|thumbnail! Delete server
The following form is displayed, when you click on edit server attributes: !server-form.png|thumbnail!
!server-form.png|thumbnail!
You will found in this form several general server attributes like, host, port,
h1. Other configuration points:
In the Petals Webconsole you can find several interesting points like:
* Server configuration.
* Remote component configuration.
* General Webconsole properties.
{column}
\\
{column:width=350px}
{panel}{toc}\\ {panel}\\
{column}\\
{section}
h1. Server configuration clarification
Petals Webconsole contain an automatic mechanism that it allows to try to connect to a server declared into the webconsole.xml file,
this file is located into /WEB-INF/classes/webconsole.xml and its associated XML schema (webconsole.xsd).
h3. Server connection configuration through Webconsole interface
By clicking on the following button:
!Manage-connection-menu.png|thumbnail!
You can access in the Petals Webconsole the management view of servers declared into webconsole.xml, management
functionalities available are:
* Create new server.
* Delete old server.
* Modify declared server.
* Switch the current server connection.
You can add a new server by clicking on _Add server_ in the server management view:
!add-servers.png|thumbnail!
This action displays to you the server creation form:
!8.png|thumbnail!
For the moment just stay focused on the _general server properties_ because the _RMI component_
_properties_ part will be addressed in the +Remote component configuration+ part of this documentation.
In the general server properties part the following server parameters must be defined:
* The hostname or ip address of the new Petals server.
* The JMX connection port of the server.
* The JMX login connection of the server.
* The JMX password connection of the server.
When you submit the form a new server should be created in _server list_ and this server should be also _added into the_
_webconsole.xml_, if it isn't +already defined+.
You can also modify server properties by editing the desired server (by clicking on details icon: !loupe.png|thumbnail! in the server list):
!details-servers.png|thumbnail!
After clicking on the link you return to the creation server form but this time in order to change +current server+
+properties+ and not to create a new server.
Another good feature is to allow to remove an old server if it isn't necessary for the moment in the server list,
this removal can be performed by clicking on the following icon: !Delete-server.jpg|thumbnail!
(!) *Warning:* If you have stacktrace due to failed connections, please verify if at least one declared server
in the webconsole.xml can be acceded. Other careful point, we recommend to you that don't keep this
configuration file empty (keep at least one server in order to allow the webconsole to try a connection, even
if the Petals ESB node is down).
You can also switch or connect to one server of the list, by only clicking on the connection icon:
!connect-servers.png|thumbnail!
It's useful in order to change of current Petals Domain.
When you try a new server connection and if the connection is available, the Petals Webconsole
allows you to save the complete recovered topology.
!persist-topology.png|thumbnail!
h3. Server connection configuration through webconsole.xml
add/remove _Server_ XML element in order to add/remove a server in configuration file.
{code:title=webconsole.xml}<ns:Servers xmlns:ns="org.ow2.petals.tools.webconsole.xmlbeans"
{code:title=webconsole.xml}<ns:Servers xmlns:ns="org.ow2.petals.tools.webconsole.xmlbeans"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="org.ow2.petals.tools.webconsole.xmlbeans webconsole.xsd ">
<ns:Server port="7700" login="petals" password="petals" host="localhost">
<installedrmicomponent>true</installedrmicomponent>
<rmiport>1099</rmiport>
<rmicontext>RMIComponentContext</rmicontext>
</ns:Server>
xsi:schemaLocation="org.ow2.petals.tools.webconsole.xmlbeans webconsole.xsd ">
<ns:Server port="7700" login="petals" password="petals" host="localhost">
<installedrmicomponent>true</installedrmicomponent>
<rmiport>1099</rmiport>
<rmicontext>RMIComponentContext</rmicontext>
</ns:Server>
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="org.ow2.petals.tools.webconsole.xmlbeans webconsole.xsd ">
<ns:Server port="7700" login="petals" password="petals" host="localhost" domain="default" name="0">
<installedrmicomponent>false</installedrmicomponent>
<rmiport>1091</rmiport>
<rmicontext>RMIComponentContext</rmicontext>
</ns:Server>
xsi:schemaLocation="org.ow2.petals.tools.webconsole.xmlbeans webconsole.xsd ">
<ns:Server port="7700" login="petals" password="petals" host="localhost" domain="default" name="0">
<installedrmicomponent>false</installedrmicomponent>
<rmiport>1091</rmiport>
<rmicontext>RMIComponentContext</rmicontext>
</ns:Server>
</ns:Servers>{code}
section 14.9 Cache-Control
connections +establish with Petals ESB+, in the connection pool into Petals Webconsole.
h4. Logger setting
The Webconsole _use log4j implementation_ for application logger. You can set the
logging level for each package that you like, example:
{code:lang=xml}<logger name="org.ow2.petals.tools.webconsole" additivity="false">
<level value="error" />
<appender-ref ref="stdoutVerbose" />
</logger>
<logger name="org.ow2.petals.tools.webconsole.services.utils" additivity="false">
<level value="debug" />
<appender-ref ref="stdoutVerbose" />
</logger>{code}
You can precise the +package+ that you target by "*name*" attribute of the logger "*node*" example "_org.ow2.petals.tools.webconsole, org.ow2.petals.tools.webconsole.services.utils, ..._"
and you can precise the +logging level+ with the "*value*" attribute of the "*level*" node example "_error, debug, ..._"
logging level for each package that you like, example:
{code:lang=xml}<logger name="org.ow2.petals.tools.webconsole" additivity="false">
<level value="error" />
<appender-ref ref="stdoutVerbose" />
</logger>
<logger name="org.ow2.petals.tools.webconsole.services.utils" additivity="false">
<level value="debug" />
<appender-ref ref="stdoutVerbose" />
</logger>{code}
You can precise the +package+ that you target by "*name*" attribute of the logger "*node*" example "_org.ow2.petals.tools.webconsole, org.ow2.petals.tools.webconsole.services.utils, ..._"
and you can precise the +logging level+ with the "*value*" attribute of the "*level*" node example "_error, debug, ..._"
h4. Error message settings
{code:title=Error message properties}number_format_error=Number format error
{code:title=Error message properties}number_format_error=Number format error