[Design of Messaging on JBoss (Messaging/JBoss)] - Simplifying the JBM beans deployment
by timfox
I came across an issue when writing an automatic failover example using JMS.
Currently when we start a backup node, it doesn't actually activate until its live node has contacted it and told it to activate, this is because the live node needs to send it it's node id since live and backup must have the same node id.
However with the way beans are currently created in the jbm-standalone-beans.xml file. The deployers are created and injected and everything is started, but this means the deployers start deploying stuff on the backup node before the live node has activated it, so it fails.
I'm considering simplifying our beans file and removing most of the beans, so we really just have MessagingServerBean and a JMSServerBean. All the deployers, configuration etc can just be internal objects of this beans and do not have to be exposed in the beans file.
We can then control the dependent beans lifecycles directly from inside MessagingServerBean/JMSServerBean.
Comments please?
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4224310#4224310
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4224310
17 years
[Design of Messaging on JBoss (Messaging/JBoss)] - Java EE examples
by ataylor
Ive added a couple of Java EE examples so heres how to run them.
firstly you need a jboss AS 5.1 instance running. You'll need to check out Branch5.x and built it from scratch.
Once you have the AS built build the JBM distro, 'ant distro', and cd into ' build/messaging-2.0.0.BETA1-SNAPSHOT/AS/' and type ant. This will create a jbm2_default profile for you. you can then start the AS instance.
The examples have an app that is deployed, mdb,ejb or whatever. This can be done by setting the JBOSS_HOME env property and running ant deploy from the examples dir. After that run ant to run the actual client example and the ant undeploy to undeploy the app.
Ive seen a weird error sometimes with jboss security not picking up the users/roles files from conf/props. I'm guessing this is an AS prob. A clean svn co may fix this.
This is just a starter template so change it as you see fit.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4224281#4224281
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4224281
17 years
[Design of JBoss jBPM] - Re: HTML Formatted Emails
by alex.guizar@jboss.com
"kukeltje" wrote : The webarchive/ear/AS classpath should be one as well. Hierarchical just like with actionhandlers
Right. We can use relative URLs for this as well. If the resource is not present in the archive we look in the classpath using the context class loader.
As an alternative, we can use a classpath: prefix as in Spring.
classpath:some/resource/path/myTemplate.txt
anonymous wrote : The difficulty we encountered once is images from css (e.g. background etc). Those needed real file references afaik. I'm just not sure anymore if that was the apache mail component or the sun 'flyingsaucer' html->pdf renderer (would be a nice addition though)
We can deal with more specific problems like this later on, or count on the help of someone in the community -wink, wink-.
View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=4224203#4224203
Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=4224203
17 years