[JBoss Messaging] - Problems changing defaultds
by viniciuscarvalho
Hello there! my previous question http://www.jboss.com/index.html?module=bb&op=viewtopic&t=115867
I was asking about a bridge config, still can't get it to work. I noticed that I was running with defaulds and that might be the problem (RELIABLE might be related to the isolation level, at least I wonder).
So I decided to change the datasource for messaging. Reading the docs I've noticied that it is attached to the DefaultDS name (argh!!!) I needed my own DS name, chaning the DefaultDS to mysql would bring me more pain than solutions (uuid-generators ... all that depends on it, don't want to touch it for now).
Ok, changed the persistence service, point it to mysqlDS, and put a mysql-ds.xml setting isolation level to READ_COMMITTED.
Ran on a series of problems :(
First, it start complaining about jgroups (???), ok, so I put jgroups on my lib dir.
Now, the bridge complains about the queues not being found. That might be more a dependency issue (as pointed by Tim on a post that I read and lost the url ;) ) But what intrigues me is, why after changing the datasource it complains about my queues dependencies?
I was really hopping to use jboss-messaging on the project, but I'm running short on time on all these configurations.
Best regards
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4073564#4073564
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4073564
18Â years, 11Â months
[EJB 3.0] - Re: regardig jboss-beans.xml
by jc7442
I do that kind of things for JBoss configuration. I use the SystemProperty service.
In your -service.xml file you can use variable. For example:
<mbean code="org.jboss.naming.NamingService"
| name="jboss:service=Naming"
| xmbean-dd="resource:xmdesc/NamingService-xmbean.xml">
| ...
| <attribute name="Port">${port.jnp}</attribute>
| . ..
| <attribute name="BindAddress">${jboss.bind.address}</attribute>
| ...
| <attribute name="RmiPort">${port.rmi}</attribute>
|
|
Here I have three variables.
I configure the SystemPropertyService to read system property from a property file. This service will replace in xml files, variable with property from property file:
| <mbean code="org.jboss.varia.property.SystemPropertiesService"
| name="jboss:type=Service,name=SystemProperties">
|
| <!--
| | Load properties from each of the given comma seperated URLs-->
|
| <attribute name="URLList">c:\jboss\server\configuration\ports.properties </attribute>
|
|
| <!--
| | Set raw properties file style properties.
|
| <attribute name="Properties">
|
| my.project.property=This is the value of my property
| my.project.anotherProperty=This is the value of my other property
|
| </attribute>
|
| -->
|
| </mbean>
|
I use that for all the ports used by my JBoss.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4073559#4073559
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4073559
18Â years, 11Â months