[JBoss Messaging] - Jboss Messaging 1.4.0 SP3 and Message Redistribution / Perfo
by daniel.gaiottino
Hi,
Im using Jboss 4.2.3 and I've been working to set up Jboss Messaging in a cluster and can't seem to get reliable Message Redistribution working.
I have an app that puts alot of messages on a queue (1000+). The queue is clustered according to the JMX console (I've even looked in the JBM_POSTOFFICE table) but I'm not seeing any message redistribution to the MDBs on my clustered server. Instead the first server which put all the messages on the queue processes all of them.
I've read that the local queue will be prioritized but I'm seeing a significant load spike on the first server while it's processing the messages so I would expect it to hand some over to the other JBoss to share the load.
I've played around with the ClusterPullConnectionFactory setting PrefetchSize to 1 but that had no effect. I even tried setting the SupportsLoadBalancing to true even though this is not recommended but I didn't see a different behaviour.
Another thing I haven't been able to find is where to configure the MaxPoolSize of the MDBs (I thought reducing this might make it share the load) but setting MaximumSize to 5 for message-driven-bean in standardjboss.xml had no effect. It's still set to the default of 15. Where do I chance this?
Things I've noticed:
- I'm running mysql clustered and both Jboss servers use this database. In JBM_POSTOFFICE I have 2 entries for my clustered queue. Same name but different NODE_ID. Both have CLUSTERED set to Y. Does JBoss bridge these 2 queues to create the clustered queue?
- In the JMX consoles even though I have the queue clustered, and the MDB deployed on both machines, ConsumerCount is 1 on both. I was hoping to see 1 for each machine in the cluster (so 2).
I'm running out of ideas to test to I decided to write for some help on the forums. Hopefully someone will be able to shed some light on why I cant get Message Redistribution working properly.
Cheers,
- Daniel
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4169302#4169302
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4169302
17 years, 11 months
Re: Problem when deploying Portlet in JBoss Portal
by samk@twinix.com
See Thread at: http://www.techienuggets.com/Detail?tx=21631 Posted on behalf of a User
We are also facing the same problem.If any solution is found,Please forward it to lalitjangra(a)integarmicro.com.
In Response To:
I've an error during my portlet's deployment. I didn't find what's the mistake, it's certainly a small detail in the configuration, but...
The error in the server's console :
18:19:21,188 INFO [TomcatDeployer] deploy, ctxPath=/myPortlet-0.1-SNAPSHOT, warUrl=.../tmp/deploy/tmp54329myPortlet-0.1-SNAPSHOT-exp.war/
| 18:19:21,438 ERROR [STDERR] org.jboss.portal.portlet.container.PortletInitializationException: The portlet MyPortlet threw a runtime exception during init
| 18:19:21,438 ERROR [STDERR] at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.start(PortletContainerImpl.java:264)
| 18:19:21,438 ERROR [STDERR] at org.jboss.portal.portlet.impl.container.PortletApplicationContextImpl.startPortletApplication(PortletApplicationContextImpl.java:130)
| 18:19:21,438 ERROR [STDERR] at org.jboss.portal.portlet.deployment.jboss.PortletAppDeployment.start(PortletAppDeployment.java:150)
| 18:19:21,438 ERROR [STDERR] at org.jboss.portal.core.deployment.jboss.PortletAppDeployment.start(PortletAppDeployment.java:95)
| 18:19:21,438 ERROR [STDERR] at org.jboss.portal.server.deployment.jboss.DeploymentContext.start(DeploymentContext.java:99)
| ...
| ...
| 18:19:21,469 ERROR [STDERR] Caused by: java.lang.ClassCastException: ch.softcomponent.bg.MyPortlet
| 18:19:21,469 ERROR [STDERR] at org.jboss.portal.portlet.impl.jsr168.PortletContainerImpl.start(PortletContainerImpl.java:231)
| 18:19:21,469 ERROR [STDERR] ... 73 more
| 18:19:21,485 WARN [PortletAppDeployment] Failed to create instance MyPortletInstance of portlet /myPortlet-0.1-SNAPSHOT.MyPortlet because portlet /myPortlet-0.1-SNAPSHOT.MyPortlet is not available
The test environment : jboss-portal-2.6.3.GA-bundled
web.xml
<?xml version="1.0" encoding="UTF-8"?>
| <web-app id="WebApp_ID"
| version="2.4"
| xmlns="http://java.sun.com/xml/ns/j2ee"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd">
| </web-app>
portlet.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
| <portlet-app version="1.0"
| xmlns="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd"
| xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
| xsi:schemaLocation="http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd http://java.sun.com/xml/ns/portlet/portlet-app_1_0.xsd">
| <portlet>
| <description xml:lang="FR">Mon portlet</description>
| <portlet-name>MyPortlet</portlet-name>
|
| <portlet-class>ch.softcomponent.bg.MyPortlet</portlet-class>
| <supports>
| <mime-type>text/html</mime-type>
| <portlet-mode>VIEW</portlet-mode>
| </supports>
| <portlet-info>
| <title>Mon portlet</title>
| <short-title>Portlet</short-title>
| <keywords>bg,portlet</keywords>
| </portlet-info>
| </portlet>
| </portlet-app>
portlet-instances.xml
<?xml version="1.0" encoding="UTF-8" standalone="yes"?>
| <deployments>
| <deployment>
| <instance>
| <instance-id>MyPortletInstance</instance-id>
| <portlet-ref>MyPortlet</portlet-ref>
| </instance>
| </deployment>
| </deployments>
myportlet-object.xml >> right name for this file ??
<?xml version="1.0" encoding="UTF-8"?>
| <deployments>
| <deployment>
| <if-exists>overwrite</if-exists>
| <parent-ref>default.default</parent-ref>
| <window>
| <window-name>Ma fenetre</window-name>
| <instance-ref>MyPortletInstance</instance-ref>
| <region>center</region>
| <height>1</height>
| </window>
| </deployment>
| </deployments>
17 years, 11 months
[Installation, Configuration & DEPLOYMENT] - Re: Trying to deploy Railo as war file
by am2605
I deleted the jar file, and tried again but still haven't had much success.
This has started appearing in the output though, and looks a likely culprit to me...
| 2008-08-07 23:19:30,015 ERROR [org.apache.catalina.core.ContainerBase.[jboss.web].[localhost].[/railo]] (main) Exception sending context initialized event to listener instance of class org.jboss.web.jsf.integration.config.JBossJSFConfigureListener
| java.lang.LinkageError: loader constraint violation: when resolving overridden method "org.apache.xerces.jaxp.SAXParserImpl.getParser()Lorg/xml/sax/Parser;" the class loader (instance of org/jboss/classloader/spi/base/BaseClassLoader) of the current class, org/apache/xerces/jaxp/SAXParserImpl, and its superclass loader (instance of <bootloader>), have different Class objects for the type org/xml/sax/Parser used in the signature
| at org.apache.xerces.jaxp.SAXParserFactoryImpl.newSAXParser(Unknown Source)
| at com.sun.faces.config.ConfigureListener$WebXmlProcessor.scanForFacesServlet(ConfigureListener.java:487)
| at com.sun.faces.config.ConfigureListener$WebXmlProcessor.<init>(ConfigureListener.java:459)
| at com.sun.faces.config.ConfigureListener.contextInitialized(ConfigureListener.java:135)
| at org.jboss.web.jsf.integration.config.JBossJSFConfigureListener.contextInitialized(JBossJSFConfigureListener.java:71)
| at org.apache.catalina.core.StandardContext.listenerStart(StandardContext.java:3862)
| at org.apache.catalina.core.StandardContext.start(StandardContext.java:4356)
| at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeployInternal(TomcatDeployment.java:346)
| at org.jboss.web.tomcat.service.deployers.TomcatDeployment.performDeploy(TomcatDeployment.java:139)
| at org.jboss.web.deployers.AbstractWarDeployment.start(AbstractWarDeployment.java:431)
| at org.jboss.web.deployers.WebModule.startModule(WebModule.java:112)
| at org.jboss.web.deployers.WebModule.start(WebModule.java:90)
| at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
| at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
| at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
| at java.lang.reflect.Method.invoke(Method.java:597)
| at org.jboss.mx.interceptor.ReflectedDispatcher.invoke(ReflectedDispatcher.java:157)
| at org.jboss.mx.server.Invocation.dispatch(Invocation.java:96)
| at org.jboss.mx.server.Invocation.invoke(Invocation.java:88)
| at org.jboss.mx.server.AbstractMBeanInvoker.invoke(AbstractMBeanInvoker.java:264)
| at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:668)
| at org.jboss.system.microcontainer.ServiceProxy.invoke(ServiceProxy.java:206)
| at $Proxy35.start(Unknown Source)
| at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:42)
| at org.jboss.system.microcontainer.StartStopLifecycleAction.installAction(StartStopLifecycleAction.java:37)
| at org.jboss.dependency.plugins.action.SimpleControllerContextAction.simpleInstallAction(SimpleControllerContextAction.java:62)
| at org.jboss.dependency.plugins.action.AccessControllerContextAction.install(AccessControllerContextAction.java:71)
| at org.jboss.dependency.plugins.AbstractControllerContextActions.install(AbstractControllerContextActions.java:51)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
| at org.jboss.system.microcontainer.ServiceControllerContext.install(ServiceControllerContext.java:271)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1392)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:784)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:912)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:834)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:624)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:442)
| at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:88)
| at org.jboss.deployers.vfs.deployer.kernel.BeanMetaDataDeployer.deploy(BeanMetaDataDeployer.java:46)
| at org.jboss.deployers.spi.deployer.helpers.AbstractSimpleRealDeployer.internalDeploy(AbstractSimpleRealDeployer.java:62)
| at org.jboss.deployers.spi.deployer.helpers.AbstractRealDeployer.deploy(AbstractRealDeployer.java:50)
| at org.jboss.deployers.plugins.deployers.DeployerWrapper.deploy(DeployerWrapper.java:174)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:970)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.doInstallParentFirst(DeployersImpl.java:991)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.install(DeployersImpl.java:911)
| at org.jboss.dependency.plugins.AbstractControllerContext.install(AbstractControllerContext.java:348)
| at org.jboss.dependency.plugins.AbstractController.install(AbstractController.java:1392)
| at org.jboss.dependency.plugins.AbstractController.incrementState(AbstractController.java:784)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:912)
| at org.jboss.dependency.plugins.AbstractController.resolveContexts(AbstractController.java:834)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:672)
| at org.jboss.dependency.plugins.AbstractController.change(AbstractController.java:455)
| at org.jboss.deployers.plugins.deployers.DeployersImpl.process(DeployersImpl.java:594)
| at org.jboss.deployers.plugins.main.MainDeployerImpl.process(MainDeployerImpl.java:541)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.loadProfile(ProfileServiceBootstrap.java:257)
| at org.jboss.system.server.profileservice.ProfileServiceBootstrap.start(ProfileServiceBootstrap.java:135)
| at org.jboss.bootstrap.AbstractServerImpl.start(AbstractServerImpl.java:409)
| at org.jboss.Main.boot(Main.java:209)
| at org.jboss.Main$1.run(Main.java:544)
| at java.lang.Thread.run(Thread.java:619)
| 2008-08-07 23:19:30,015 ERROR [org.apache.catalina.core.StandardContext] (main) Error listenerStart
| 2008-08-07 23:19:30,015 ERROR [org.apache.catalina.core.StandardContext] (main) Context [/railo] startup failed due to previous errors
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4169297#4169297
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4169297
17 years, 11 months
Considered UNSOLICITED BULK EMAIL, apparently from you
by Content-filter@localhost
A message from <jboss-user(a)lists.jboss.org> to:
-> dieckhofforder(a)mobil-profi.de
was considered unsolicited bulk e-mail (UBE).
Our internal reference code for your message is 04682-10/wokCMdyoTPMF
The message carried your return address, so it was either a genuine mail
from you, or a sender address was faked and your e-mail address abused
by third party, in which case we apologize for undesired notification.
We do try to minimize backscatter for more prominent cases of UBE and
for infected mail, but for less obvious cases of UBE some balance
between losing genuine mail and sending undesired backscatter is sought,
and there can be some collateral damage on both sides.
According to a 'Received:' trace, the message originated at: [189.30.19.170],
[192.168.40.60] ([192.168.40.60])
Return-Path: <jboss-user(a)lists.jboss.org>
Subject:
=?windows-1251?B?MjAwOCDjLi3h6Oft5fHs5e3zIC0g7u/y6Ozo5+D26P8g5+Dw7+vg8g==?=
=?windows-1251?B?7fv1IO3g6+7j7uIg1vTVw8jFLg==?=
Delivery of the email was stopped!
17 years, 11 months
[JBoss jBPM] - Weird setting of variables to ActionHandler and TaskControll
by frantisek.kocun@gmail.com
Hi,
in TaskControllerHandler I set variables through public set method. It is because I need to set a collection of something, so I parse it in setMethod.
public class TaskController implements TaskControllerHandler {
private static Pattern PATTERN = Pattern.compile(";");
protected String[] transientVariables;
public void setPersistentVariables(String persistentVariables) {
this.persistentVariables = PATTERN.split(persistentVariables);
}
But in ActionHandler set method doesn't work and I need to do it this way
public class StartAction implements ActionHandler {
private static Pattern PATTERN = Pattern.compile(";");
String persistentVariables;
and parse persistentVariables later. Why set method doesn't work and if I use name of field in xml which doesn't exist or is private I get no error. It would be more safe to get an error always if field is not accesible or doesn't exist and to use set method if is available (or to require set method).
Thanks Fero
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4169296#4169296
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4169296
17 years, 11 months