[JBoss Messaging] - Poor performance after replacing JBossMQ
by omerlin
Hello,
Trying to improve the performance on our application, i tried to replace the plumbering - as i saw the performance should be signifantly better with JBossMessaging.
We use the JBoss4.0.4GA .
I followed the How-to wiki and had to change some lines of code (I should open a minor bug on the queue.send function ) and achieved functional tests.
But when i tried to stress my application with our homemade stress tool l was very deceived - all was very slow.
I would like to know if our architecture is not responsible of this poor performance :
We use 1 queue with many selector (20 in my test) based on a hash on the selector identifier. We have so 20 sequencer scaning for message in one queue.
I read this is a not-performant way of processing message (JBMessaging-275) - but is it normal that we have a so obvious difference with JBossMQ ?
Olivier
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973811#3973811
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973811
19 years, 7 months
[JBoss Seam] - Re: Drop Down Menu Using Seam and Facelets
by yj4jboss
Hello Denis,
I had declared getModel() in the interface.....I could only get your code to work by doing the following changes:
|
| public Map<String,Object> model = new TreeMap<String,Object>();
|
| // Instead of public Map<String,Object> model;
|
|
|
| public void fillMaps(){
|
| //model = new TreeMap<String,Object>();
|
| model.clear();
| model.put("2004","-1"); // Add 2004 for test element if needed
|
| for (Object o: yearList) {
| String label = o.toString();
| model.put(label, o );
| }
|
|
| }
|
|
|
| public Map<String,Object> getModel(){ // f:selectItems value
| log.debug("Initializing Model");
| log.debug("Model Size = "+model.size());
| getYearList(); // retrieves all years and places it in yearList
| fillMaps();
| return model;
| }
|
My code in my searchbox.xhtml page is as follows:
|
| <h:form>
|
|
| <h:selectOneMenu value="#{companySearch.criterion.year}" converter="#{companySearch.converter}">
| <f:selectItems value="#{companySearch.model}"/>
| </h:selectOneMenu>
|
| <h:commandButton action="#{companySearch.findCompaniesByYearWithFinancialStatements}"
| value="Search Company"
| class="formButton" style="width: 166px;"/>
|
|
| </h:form>
|
|
Though this works by listing All Years in the drop down menu, there are two problems that i face:
(1) value specified in <h:selectOneMenu> is not selected as default
( I tested this with another example)
(2) When submitting the form, the submitted value is returned as null
| 2006-09-25 10:49:01,863 DEBUG [accountingAudit.actions.CompanySearchBean] criterion =null
|
However, if i use a plain <h:inputText> to submit this value, the search is carried out correctly.
Could you please enlighten me on these two issues ....I am using this for a small application and do not want to use custom annotation as long as your code can get me working ;0)
Thnx in advance
Cheers,
Yogesh
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3973804#3973804
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3973804
19 years, 7 months