[jboss-dev-forums] [Design of JBoss ESB] - AS5 changes
beve
do-not-reply at jboss.com
Wed May 13 08:07:07 EDT 2009
I've been working on getting ESB4.x working on AS5 and this requires some changes to the codebase apart from the addition of deployers for AS5.
We have a number of mbeans defined in jbossesb.sar/META-INF/jboss-service.xml. Some of them lookup an mbean named ServerConfig only find out the server data directory or the server tmp directory. This causes problems with AS 5 as the ServerConfig class has changed.
For AS 5 I've added a property to the mbeans that can be set in the configuration:
| <mbean code="org.jboss.soa.esb.listeners.config.JBoss4ESBDeployer" name="jboss.esb:service=ESBDeployer">
| <attribute name="ServerTempDir">${jboss.server.temp.dir}</attribute>
| <depends>jboss.esb:service=ESBRegistry</depends>
| <depends>jboss.esb:service=JuddiRMI</depends>
| </mbean>
|
So adding the ServerTmpDir property we can by pass the lookup:
| if (serverTmpDir != null)
| {
| tmpDir = new File(serverTmpDir);
| }
| else
| {
| final ServerConfig config = (ServerConfig) MBeanProxyExt.create(ServerConfig.class, ServerConfigImplMBean.OBJECT_NAME);
| tmpDir = config.getServerTempDeployDir();
| }
|
This is quite ugly (but can be cleaned up) and it would be cleaner to always use the properties instead. This might cause problems though if users upgrade only jbossesb-rosetta.jar and don't update their configuration files. Leaving this as is will cover both.
Should we support only properties or both options do you think?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4230807#4230807
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4230807
More information about the jboss-dev-forums
mailing list