[JBoss Messaging] - Re: Exception when starten 2nd node
by timfox
I think all this information is in the user guide, or has been answered several times already in different threads on this forum (have a search), but here goes again:
"mbreuer" wrote : How to deploy a clustered queue to jboss as? Which attributes must be set in a clustered environment,which in a non clustered environment?
|
The "clustered" attribute on the queue/topic determines whether the queue or topic is clustered. Clustered queues/topics must be deployed on all nodes of the cluster. The easiest way to do this is to use the farm service.
anonymous wrote :
| Following example: a clustered mdb on two nodes, putting 10000 messages into it and let the mdg work. The mdb logs out the message?
| What happens? Only one node is working on the queue, the second does nothing. Adding a sleep(100) to the onMessage() does a wonder, both nodes are processing the mdb.
|
| I explained me this behavior in follwoing way:
| - mdb always use local jms connections
| - message sucker distributes messages to other nodes (there must be an association between mdb throughput and distribution)
|
Yes, you're almost right. The queue will always favour local consumers if they are able to cope with the load, if they are busy with work, then it will get distributed to other nodes. This is an optimal use of processing resources - there's no point in sending to other nodes if the local node has spare cycles. This behaviour can be turned off (see user guide).
anonymous wrote :
| Now this sounds easy, but there a so many find grained parameters:
| - deploy queue clustered or non clustered
|
Yes, it's easy - if you want it clustered set clustered to true, if not set to false
anonymous wrote :
| - deploy queue as ha singleton or not
|
JBM does not normally use HASingleton - but if you want it to work like JBoss MQ you can, there's a FAQ on this
The distribution contains a set of examples including clustering and failover example which demonstrate how this is configured and how it works.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4163155#4163155
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4163155
17 years, 9 months
[JBossWS] - SOLUTION! (yeah, for reals)
by tomstrummer
Ok! I was actually able to convert the rpc/encoded WSDL to rpc/literal. So I use my modified WSDL against the service rather than their rpc/encoded one. I realized the response is valid rpc/literal, just with some added xsi:type attributes.
First step: convert the WSDL:
Convert the <soap:body attribute to use="literal" and remove the encodingStyle attribute.
Second step: convert any complexTypes to not extend soapenc:Array:
Any types that use <xs:restriction base="soapenc:Array"> can be changed to this:
For a loosely-typed array (JAXB will map it to a List):
| <xs:complexType name="VariantArray">
| <xs:complexContent>
| <xs:extension base="ns1:GlxNode">
| <xs:sequence>
| <xs:any namespace="##any" minOccurs="0" maxOccurs="unbounded" processContents="lax" />
| </xs:sequence>
| </xs:extension>
| </xs:complexContent>
| </xs:complexType>
|
or for a typed List:
| <xs:complexType name="StringArray">
| <xs:complexContent>
| <xs:extension base="ns1:GlxNode">
| <xs:sequence>
| <xs:element name="String" type="xs:string" minOccurs="0" maxOccurs="unbounded" />
| </xs:sequence>
| </xs:extension>
| </xs:complexContent>
| </xs:complexType>
|
Just chose your own "base" type to extend or just create a new ComplexType.
Note also that I ended up switching to Metro (JAX-WS) 1.2 rather than JBossWS. But using JBossWS as a client seemed to work as well.
This is a bit of a pain but still a hell of a lot better than not being able to consume an RPC/encoded service or being stuck using Axis 1. Hope this helps someone as I couldn't find any other solution in all my searching.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4163152#4163152
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4163152
17 years, 9 months
Delivery Status Notification (Failure)
by postmaster@lists.jboss.org
This is an automatically generated Delivery Status Notification.
Unable to deliver message to the following recipients, because the message was forwarded more than the maximum allowed times. This could indicate a mail loop.
excel.xlsaminaamina(a)technodom.kz
17 years, 9 months
[JBoss Messaging] - Re: Exception when starten 2nd node
by mbreuer
How to deploy a clustered queue to jboss as? Which attributes must be set in a clustered environment,which in a non clustered environment?
In which way does a message driven bean implement load balancing? How can i perform smoke tests with my cluster?
Following example: a clustered mdb on two nodes, putting 10000 messages into it and let the mdg work. The mdb logs out the message?
What happens? Only one node is working on the queue, the second does nothing. Adding a sleep(100) to the onMessage() does a wonder, both nodes are processing the mdb.
I explained me this behavior in follwoing way:
- mdb always use local jms connections
- message sucker distributes messages to other nodes (there must be an association between mdb throughput and distribution)
Now this sounds easy, but there a so many find grained parameters:
- deploy queue clustered or non clustered
- deploy queue as ha singleton or not
- a combination of both
So what I really need is a guide how to configure queues, mdb's and jboss messaging in a clustered/non clustered environment. How to smoke test?
How failsafe is the configuration, which problem may occur in worse case?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4163150#4163150
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4163150
17 years, 9 months
Delivery Status Notification (Failure)
by postmaster@lists.jboss.org
This is an automatically generated Delivery Status Notification.
Unable to deliver message to the following recipients, because the message was forwarded more than the maximum allowed times. This could indicate a mail loop.
kizaipvssuwgzkybkil(a)technodom.kz
17 years, 9 months
[Installation, Configuration & DEPLOYMENT] - struts 1.0 app on jboss 4.2.2 Unable to find setter method f
by grich
I am trying to port a sturts 1.0 app from weblogic to jboss 4.2.2. when loading the first page of the app I get the following error:
org.apache.jasper.JasperException: /CGP/customer.jsp(541,6) Unable to find setter method for attribute: onClick
org.apache.jasper.compiler.DefaultErrorHandler.jspError(DefaultErrorHandler.java:40)
org.apache.jasper.compiler.ErrorDispatcher.dispatch(ErrorDispatcher.java:407)
org.apache.jasper.compiler.ErrorDispatcher.jspError(ErrorDispatcher.java:148)
org.apache.jasper.compiler.Generator$GenerateVisitor.evaluateAttribute(Generator.java:2736)
org.apache.jasper.compiler.Generator$GenerateVisitor.generateSetters(Generator.java:2965)
org.apache.jasper.compiler.Generator$GenerateVisitor.generateCustomStart(Generator.java:2169)
org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1689)
org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1507)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2338)
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2388)
org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1705)
org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1507)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2338)
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2388)
org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1705)
org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1507)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2338)
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2388)
org.apache.jasper.compiler.Generator$GenerateVisitor.visit(Generator.java:1705)
org.apache.jasper.compiler.Node$CustomTag.accept(Node.java:1507)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2338)
org.apache.jasper.compiler.Node$Visitor.visitBody(Node.java:2388)
org.apache.jasper.compiler.Node$Visitor.visit(Node.java:2394)
org.apache.jasper.compiler.Node$Root.accept(Node.java:489)
org.apache.jasper.compiler.Node$Nodes.visit(Node.java:2338)
org.apache.jasper.compiler.Generator.generate(Generator.java:3374)
org.apache.jasper.compiler.Compiler.generateJava(Compiler.java:210)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:306)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:286)
org.apache.jasper.compiler.Compiler.compile(Compiler.java:273)
org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:566)
org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:316)
org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:336)
org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.apache.struts.action.RequestProcessor.doForward(RequestProcessor.java:1014)
org.apache.struts.action.RequestProcessor.processForwardConfig(RequestProcessor.java:417)
org.apache.struts.action.RequestProcessor.processActionForward(RequestProcessor.java:390)
org.apache.struts.action.RequestProcessor.process(RequestProcessor.java:271)
org.apache.struts.action.ActionServlet.process(ActionServlet.java:1292)
org.apache.struts.action.ActionServlet.doGet(ActionServlet.java:492)
javax.servlet.http.HttpServlet.service(HttpServlet.java:690)
javax.servlet.http.HttpServlet.service(HttpServlet.java:803)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
The line causing the problem looks like this:
<html:submit styleClass="normalButton" styleId="save" property="action" value="Save" onClick="return validateAllForCust(document.customerForm)"/>
Thanks for any help.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4163147#4163147
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4163147
17 years, 9 months