[JBossCache] - Re: JBossCache over a JGroups Multiplexer Channel
by belaï¼ jboss.com
Look at chapter 6.3 of the JGroups manual at http://www.jgroups.org/javagroupsnew/docs/manual/html/user-advanced.html#....
You'll need to create 2 MuxChannels, 1 per service that wants to share the channel. Also, there are unit tests in the JGroups src distro that show you how to use the Multiplexer, or take a look at ChannelMultiplexer.java for a demo.
You could also look into the JBoss source code (JBoss 5, CVS head): ClusterPartition.java:
protected void createService()
throws Exception
{
log.debug("Creating Multiplexer Channel for partition " + getPartitionName() +
" using stack " + getMultiplexerStack());
channel = (JChannel) getMultiplexer().createMultiplexerChannel(getMultiplexerStack(), getPartitionName());
if(use_debugger && debugger == null)
{
debugger=new Debugger(channel);
debugger.start();
}
channel.setOpt(Channel.AUTO_RECONNECT, new Boolean(true));
channel.setOpt(Channel.AUTO_GETSTATE, new Boolean(true));
log.debug("Creating HAPartition");
partition = createPartition();
// JBAS-2769 Init partition in create
log.debug("Initializing ClusterPartition: " + partition);
partition.init();
log.debug("ClusterPartition initialized");
}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985796#3985796
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985796
19Â years, 7Â months
[JBossWS] - WS does not understand my Client
by micho
Hello,
I try to call a webservice with the signatur:
public int addzwo(int a, int b, int c);
and get the following exception,
java.lang.NumberFormatException: For input string: ""
I tried it with a webservice that accepts strings as Parameters
@WebMethod
| public String concat(String a, String b)
| { return a+b; }
This works.
If I look at the SOAP Call I can see, that the int Parameters are coded as href and then referenced with a multiref Tag.
What do I have to tell the webservice (EJB3 style) that it unterstands this kind of int parameters.
SOAP call
| <soapenv:Envelope
| xmlns:soapenv="http://schemas.xmlsoap.org/soap/envelope/"
| xmlns:xsd="http://www.w3.org/2001/XMLSchema"
| mlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
| <soapenv:Body>
| <ns1:addzwo soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xmlns:ns1="http://server/jaws">
| <int_1 href="#id0"/>
| <int_2 href="#id1"/>
| <int_3 href="#id2"/>
| </ns1:addzwo>
|
| <multiRef id="id2" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:int" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
| 4
| </multiRef>
| <multiRef id="id0" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:int" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
| 8
| </multiRef>
| <multiRef id="id1" soapenc:root="0" soapenv:encodingStyle="http://schemas.xmlsoap.org/soap/encoding/" xsi:type="xsd:int" xmlns:soapenc="http://schemas.xmlsoap.org/soap/encoding/">
| 2
| </multiRef></soapenv:Body></soapenv:Envelope>
WSDL
?
| <definitions name="SessionTestBeanService" targetNamespace="http://server/jaws">
| <types/>
| ?
| <message name="SessionTestBean_getZaehlerResponse">
| <part name="result" type="xsd:int"/>
| </message>
| ?
| <message name="SessionTestBean_addzwo">
| <part name="int_1" type="xsd:int"/>
| <part name="int_2" type="xsd:int"/>
| <part name="int_3" type="xsd:int"/>
| </message>
| ?
| <message name="SessionTestBean_add">
| <part name="int_1" type="xsd:int"/>
| <part name="int_2" type="xsd:int"/>
| </message>
| <message name="SessionTestBean_getZaehler"/>
| ?
| <message name="SessionTestBean_addzwoResponse">
| <part name="result" type="xsd:int"/>
| </message>
| ?
| <message name="SessionTestBean_addResponse">
| <part name="result" type="xsd:int"/>
| </message>
| ?
| <portType name="SessionTestBean">
| ?
| <operation name="add" parameterOrder="int_1 int_2">
| <input message="tns:SessionTestBean_add"/>
| <output message="tns:SessionTestBean_addResponse"/>
| </operation>
| ?
| <operation name="addzwo" parameterOrder="int_1 int_2 int_3">
| <input message="tns:SessionTestBean_addzwo"/>
| <output message="tns:SessionTestBean_addzwoResponse"/>
| </operation>
| ?
| <operation name="getZaehler">
| <input message="tns:SessionTestBean_getZaehler"/>
| <output message="tns:SessionTestBean_getZaehlerResponse"/>
| </operation>
| </portType>
| ?
| <binding name="SessionTestBeanBinding" type="tns:SessionTestBean">
| <soap:binding style="rpc" transport="http://schemas.xmlsoap.org/soap/http"/>
| ?
| <operation name="add">
| <soap:operation soapAction=""/>
| ?
| <input>
| <soap:body namespace="http://server/jaws" use="literal"/>
| </input>
| ?
| <output>
| <soap:body namespace="http://server/jaws" use="literal"/>
| </output>
| </operation>
| ?
| <operation name="addzwo">
| <soap:operation soapAction=""/>
| ?
| <input>
| <soap:body namespace="http://server/jaws" use="literal"/>
| </input>
| ?
| <output>
| <soap:body namespace="http://server/jaws" use="literal"/>
| </output>
| </operation>
| ?
| <operation name="getZaehler">
| <soap:operation soapAction=""/>
| ?
| <input>
| <soap:body namespace="http://server/jaws" use="literal"/>
| </input>
| ?
| <output>
| <soap:body namespace="http://server/jaws" use="literal"/>
| </output>
| </operation>
| </binding>
| ?
| <service name="SessionTestBeanService">
| ?
| <port binding="tns:SessionTestBeanBinding" name="SessionTestBeanPort">
| <soap:address location="http://nbmicho:8080/beans/SessionTestBean"/>
| </port>
| </service>
| </definitions>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985794#3985794
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985794
19Â years, 7Â months
[JBoss Seam] - Seam & t:panelTabbedPane
by sherkan777
Hi!
I try to use t:panelTabbedPane 7 Seam 1.2, and get following error:
<t:tabChangeListener> Tag Library supports namespace: http://myfaces.apache.org/tomahawk, but no tag was defined for name: tabChangeListener
| Can anyone help me to resolve this problem?
|
| Source code is here:
|
| <t:panelTabbedPane selectedIndex="#{homeAction.selectedTabIndex}"
| styleClass="tabbedPane"
| width="100%"
| bgcolor="#FFFFCC"
| activeTabStyleClass="activeTab"
| inactiveTabStyleClass="inactiveTab"
| activeSubStyleClass="activeSub"
| inactiveSubStyleClass="inactiveSub"
| tabContentStyleClass="tabContent"
| serverSideTabSwitch="true">
|
| <t:panelTab id="tab1" label="label1">
| <f:subview id="tab1" rendered="#{homeAction.selectedTabIndex == 0}">
| <ui:include src="/WEB-INF/includes/expertQuestions.xhtml"/> </f:subview>
| </t:panelTab>
|
| <t:panelTab id="tab2" label="label2">
| <f:subview id="other" rendered="#{homeAction.selectedTabIndex == 1}">
| <ui:include src="/WEB-INF/includes/expertMenu.xhtml"/>
| </f:subview>
| </t:panelTab>
| <t:tabChangeListener type="pl.fargo.expert.business.HomeAction"/>
| </t:panelTabbedPane>
|
| public int getSelectedTabIndex() {
| return selectedTabIndex;
| }
|
| public void setSelectedTabIndex(int selectedTabIndex) {
| this.selectedTabIndex = selectedTabIndex;
| }
|
| public void processTabChange(TabChangeEvent event) throws AbortProcessingException {
| System.out.println("called index: " + event.getNewTabIndex() + " " + event.getPhaseId());
| this.selectedTabIndex = event.getNewTabIndex();
| }
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3985789#3985789
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3985789
19Â years, 7Â months