serviceBindingManager does not work
afuechsel Jul 21, 2006 3:49 AMHi,
I set up two jboss instances according to the documentation, but they do not seem to work. What surprises me is the log from the boot.log:
07:31:20,945 DEBUG [ServiceCreator] Created bean: jboss.system:service=ServiceBindingManager 07:31:20,945 DEBUG [ServiceConfigurator] ServerName set to p3Server in jboss.system:service=ServiceBindingManager 07:31:20,960 DEBUG [ServiceConfigurator] StoreURL set to file:/D:/jboss-4.0.2/server/p3Server/conf/bindings.xml in jboss.system:service=ServiceBindingManager 07:31:20,960 DEBUG [ServiceConfigurator] StoreFactoryClassName set to org.jboss.services.binding.XMLServicesStoreFactory in jboss.system:service=ServiceBindingManager 07:31:20,960 INFO [ServiceBindingManager] Initializing store 07:31:20,960 INFO [ServiceBindingManager] Using StoreURL: file:/D:/jboss-4.0.2/server/p3Server/conf/bindings.xml 07:31:21,023 DEBUG [XMLServicesStore] parseBinding, name='', host='0.0.0.0', port='1099' 07:31:21,023 DEBUG [XMLServicesStore] parseBinding, name='', host='null', port='8083' 07:31:21,038 DEBUG [XMLServicesStore] parseBinding, name='', host='null', port='4444' 07:31:21,038 DEBUG [XMLServicesStore] parseBinding, name='', host='null', port='4445' 07:31:21,038 DEBUG [XMLServicesStore] parseBinding, name='', host='null', port='1098' 07:31:21,038 DEBUG [XMLServicesStore] parseBinding, name='', host='null', port='1100'
I set up the jboss-service.xml as follows:
<mbean code="org.jboss.services.binding.ServiceBindingManager" name="jboss.system:service=ServiceBindingManager"> <attribute name="ServerName">${jboss.server.name}</attribute> <attribute name="StoreURL">${jboss.server.config.url}/bindings.xml</attribute> <attribute name="StoreFactoryClassName"> org.jboss.services.binding.XMLServicesStoreFactory </attribute> </mbean>
and the bindings.xml like this:
<service-bindings> <server name="p3Server"> ...
However, jboss does not use these settings as one can see in the log above. I am using JBoss 4.0.2 and I need to stay with this version.
Any idea, what I made wrong?
Thanks in advance.