[Messaging, JMS & JBossMQ] - Re: maxMessages
by adrianï¼ jboss.org
"Renen" wrote :
| I would very much like to get better clarity on the definition of maxSession and maxMessages, so if anybody can shed any light, I'm listening!
MaxSessions is the number of concurrent threads delivering messages.
e.g. 15 messages arrive and are delivered concurrently on 15 threads.
MaxMessages is defined in the spec for ServerSessionPool, it is the number
of messages that are received before it delivers the messages.
e.g. 3 messages arrive and are delivered one after the other (in different transactions)
on the same thread.
I'd ignore MaxMessages (leave it a 1).
It is a stupid optimization (slightly reduces context switching)
that increases latency unless you have continous and high throughput of messages.
i.e. one message arrives but it will sit there and not be delivered until MaxMessages
have arrived.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094566#4094566
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094566
18Â years, 9Â months
[JBoss Seam] - Re: @In(required = false,value=
by lcoetzee
Pete,
that is very very cute !!! Works nicely. Thanks.
Another way (using the old approach combined with this new method) which works as well is:
| @In(required = false,value="#{sections.rowIndex}")
| private int selectedSectionIndexNr;
|
|
| public String selectSection() {
| section = sections.get(selectedSectionIndexNr);
| questions = section.getQuestions();
| return "selectedSection";
| }
A follow up question, related to my usage of 1 Datatable over two SFSB's:
With regard to accessing a datatable in two SFSB's... if an item is added to the sections in sectionManagementBean (as injected as shown earlier in sectionManagementBean), it appears as if those changes are not propagated back to the initial bean (questionnaireManagementBean) even though it is still in the same conversation.
Almost as if the Datamodel is not re-outjected.
Is that the intended behavior ?
L
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094561#4094561
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094561
18Â years, 9Â months
[JBossWS] - trouble calling web service
by fjump
HI, i need help please,
i got the following problem:
when i made a call to the web service, appears the error
avax.xml.ws.WebServiceException: java.io.IOException: Could not transmit message
org.jboss.ws.core.jaxws.client.ClientImpl.handleRemoteException(ClientImpl.java:317)
org.jboss.ws.core.jaxws.client.ClientImpl.invoke(ClientImpl.java:255)
org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:164)
org.jboss.ws.core.jaxws.client.ClientProxy.invoke(ClientProxy.java:150)
$Proxy112.update(Unknown Source)
com.blackbulltv.settopbox.web.MainMenu.doGet(MainMenu.java:109)
javax.servlet.http.HttpServlet.service(HttpServlet.java:697)
javax.servlet.http.HttpServlet.service(HttpServlet.java:810)
org.jboss.web.tomcat.filters.ReplyHeaderFilter.doFilter(ReplyHeaderFilter.java:96)
im trying to discover what is the problem but i dont find any solution.
this is the web service call
here is where i made a call to the web service, extracting the URL from a xml file:
BlackBullTvWebServices wsconf = new BlackBullTvWebServices();
String serv = wsconf.getPropertyValue("UpdateServiceURL");
URL url = new URL(serv);
QName qname = new QName("urn:com.blackbulltv.server.ws", "UpdateService");
Service service = Service.create(url,qname);
Update up = (Update)service.getPort(Update.class);
temp = up.update(vVersion,component_name,pType);
this is my xml file, that contain the URL of my web service.
http://192.168.0.17:8080/com.blackbulltv.server/MenuWs?wsdl
urn:com.blackbulltv.server.ws
this is the web service client file:
@WebServiceClient(name = "MainMenuWsService", targetNamespace = "urn:com.blackbulltv.server.ws", wsdlLocation = "http://localhost:8080/Update/MainMenuWs?wsdl")
public class MainMenuWsService
extends Service
{
private final static URL MAINMENUWSSERVICE_WSDL_LOCATION;
static {
URL url = null;
try {
url = new URL("http://localhost:8080/Update/MainMenuWs?wsdl");
} catch (MalformedURLException e) {
e.printStackTrace();
}
MAINMENUWSSERVICE_WSDL_LOCATION = url;
}
public MainMenuWsService(URL wsdlLocation, QName serviceName) {
super(wsdlLocation, serviceName);
}
public MainMenuWsService() {
super(MAINMENUWSSERVICE_WSDL_LOCATION, new QName("urn:com.blackbulltv.server.ws", "MainMenuWsService"));
}
/**
*
* @return
* returns MainMenuWs
*/
@WebEndpoint(name = "MainMenuWsPort")
public MainMenuWs getMainMenuWsPort() {
return (MainMenuWs)super.getPort(new QName("urn:com.blackbulltv.server.ws", "MainMenuWsPort"), MainMenuWs.class);
}
}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4094556#4094556
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4094556
18Â years, 9Â months