[Design of JBossCache] - Re: Channel creation - mux vs. old style
by manik.surtani@jboss.com
"bstansberry(a)jboss.com" wrote :
| a) Can they parse a deployment descriptor (a la -service.xml, but their format), use it instantiate a pojo (aka CacheLegacyJmxWrapper) and inject config elements into it and then register that pojo in JMX?
|
| If no, then the user is going to have to deal with JMX themselves anyway (programatically). In that case, providing a convenience method doesn't buy much. User still has to provide us a ref to the MBeanServer and the ObjectName of the JChannelFactory. They just avoid the trivial lookup call.
|
Good point. I suppose in most cases there will be some custom "deployer" code to read a JBoss Cache XML file, instantiate the cache and then attach it to JNDI or JMX for use by apps.
The JMX lookup for a JChannel could be done programatically and injected I suppose.
This will be related to what we do for JBCACHE-1023.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040930#4040930
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4040930
18 years, 11 months
[Design of JBoss Portal] - Drag and drop is not working
by javagirl901
hi, i am trying to use drag and drop but it is not working with me.
does anyone a working example here is my jsp code and above the beans im using.
<%@ taglib uri="https://ajax4jsf.dev.java.net/ajax" prefix="a4j"%>
<%@ taglib uri="http://richfaces.ajax4jsf.org/rich" prefix="rich"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<rich:dragIndicator id="indicator"></rich:dragIndicator>
<h:form id="form">
<h:panelGrid columnClasses="panelc" columns="4" width="100%">
<rich:panel style="width:100px">
<f:facet name="header">
<h:outputText value="Source List" />
</f:facet>
<h:dataTable id="src" value="#{dndBean.frameworks}"
var="fm" >
<h:column>
<a4j:outputPanel style="border:1px solid gray;padding:2px;"
layout="block">
<rich:dragSupport dragIndicator=":indicator"
dragType="#{fm.family}" dragValue="#{fm}" dragListener="#{eventBean.processDrag}">
<rich:dndParam name="label" value="#{fm.name}" />
</rich:dragSupport>
<h:outputText value="#{fm.name}"></h:outputText>
</a4j:outputPanel>
</h:column>
</h:dataTable>
</rich:panel>
<rich:panel>
<f:facet name="header">
<h:outputText value="PHP Frameworks" />
</f:facet>
<rich:dropSupport id="php" acceptedTypes="PHP" dropValue="PHP"
dropListener="#{eventBean.processDrop}" reRender="phptable, src">
</rich:dropSupport>
<h:dataTable id="phptable" value="#{dndBean.containerPHP}" var="fm">
<h:column>
<h:outputText value="#{fm.name}"></h:outputText>
</h:column>
</h:dataTable>
</rich:panel>
<rich:panel>
<f:facet name="header">
<h:outputText value=".NET Frameworks" />
</f:facet>
<rich:dropSupport id="dnet" acceptedTypes="DNET" dropValue="DNET"
dropListener="#{eventBean.processDrop}" reRender="dnettable, src">
</rich:dropSupport>
<h:dataTable id="dnettable" value="#{dndBean.containerDNET}" var="fm">
<h:column>
<h:outputText value="#{fm.name}"></h:outputText>
</h:column>
</h:dataTable>
</rich:panel>
<rich:panel>
<f:facet name="header">
<h:outputText value="ColdFusion Frameworks" />
</f:facet>
<rich:dropSupport id="cf" acceptedTypes="CF" dropValue="CF"
dropListener="#{eventBean.processDrop}" reRender="cftable, src">
</rich:dropSupport>
<h:dataTable id="cftable" value="#{dndBean.containerCF}" var="fm">
<h:column>
<h:outputText value="#{fm.name}"></h:outputText>
</h:column>
</h:dataTable>
</rich:panel>
</h:panelGrid>
<a4j:commandButton action="#{dndBean.reset}" value="Start Over"
reRender="src,phptable,cftable,dnettable" />
</h:form>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040869#4040869
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4040869
18 years, 11 months
[Design of Messaging on JBoss (Messaging/JBoss)] - Re: Bug in transactional delivery in an MDB
by timfox
"clebert.suconic(a)jboss.com" wrote :
| And regarding to ACKs, I believe we should treat ACK on XA the as nonTransacted/AutoAck.
Well, this is exactly what I have talked about several times and exactly why this thread was originally started.
Let me summarise:
There is a design flaw in the old ASF stuff such that the message is received from the underlying JMS provider *before* it is passed onto the StdServerSession which then, if appropriate, starts a tx and enlists the session.
Therefore when the message is consumed it is an XA session but is not in a session.
This is why we fallback the behaviour of an XASession that is not enlisted to a local tx and when it is enlisted we convert the work done into the global tx.
Originally we were auto_acking, hence messages received in transacted MDBs aren't received in the context of the tx. Ooops. This was the original bug that triggered the thread.
This problem is explained in detail in Mark Little's transaction book. It is not a problem specific to JBoss. I believe that solving this problem was one of the motivations for JCA1.5 message inflow.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040868#4040868
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4040868
18 years, 11 months
[Design of JBoss Portal] - Drag and drop is not working
by javagirl901
// FrontEnd Plus GUI for JAD
// DeCompiled : DndBean.class
package org.richfaces.demo.dnd;
import java.util.ArrayList;
// Referenced classes of package org.richfaces.demo.dnd:
// Framework
public class DndBean
{
private ArrayList containerPHP;
private ArrayList containerCF;
private ArrayList containerDNET;
private ArrayList frameworks;
public DndBean()
{
}
public ArrayList getContainerCF()
{
return containerCF;
}
public void setContainerCF(ArrayList containerCF)
{
this.containerCF = containerCF;
}
public ArrayList getContainerDNET()
{
return containerDNET;
}
public void setContainerDNET(ArrayList containerDNET)
{
this.containerDNET = containerDNET;
}
public ArrayList getContainerPHP()
{
return containerPHP;
}
public void setContainerPHP(ArrayList containerPHP)
{
this.containerPHP = containerPHP;
}
public ArrayList getFrameworks()
{
if(frameworks == null)
initList();
return frameworks;
}
public void setFrameworks(ArrayList frameworks)
{
this.frameworks = frameworks;
}
public void moveFramework(Object fm, Object family)
{
ArrayList target = null;
if("PHP".equals(family))
target = containerPHP;
else
if("DNET".equals(family))
target = containerDNET;
else
if("CF".equals(family))
target = containerCF;
if(target != null)
{
int ind = frameworks.indexOf(fm);
if(ind > -1)
{
target.add(frameworks.get(ind));
frameworks.remove(ind);
}
}
}
public String reset()
{
initList();
return null;
}
private void initList()
{
frameworks = new ArrayList();
frameworks.add(new Framework("Flexible Ajax", "PHP"));
frameworks.add(new Framework("ajaxCFC", "CF"));
frameworks.add(new Framework("AJAXEngine", "DNET"));
frameworks.add(new Framework("AjaxAC", "PHP"));
frameworks.add(new Framework("AJAXEngine", "DNET"));
frameworks.add(new Framework("MonoRail", "DNET"));
frameworks.add(new Framework("wddxAjax", "CF"));
frameworks.add(new Framework("AJAX AGENT", "PHP"));
frameworks.add(new Framework("FastPage", "DNET"));
frameworks.add(new Framework("JSMX", "CF"));
frameworks.add(new Framework("AJAXEngine", "DNET"));
containerPHP = new ArrayList();
containerCF = new ArrayList();
containerDNET = new ArrayList();
}
}
// FrontEnd Plus GUI for JAD
// DeCompiled : EventBean.class
package org.richfaces.demo.dnd;
import org.ajax4jsf.dnd.Dropzone;
import org.ajax4jsf.dnd.event.DragEvent;
import org.ajax4jsf.dnd.event.DragListener;
import org.ajax4jsf.dnd.event.DropEvent;
import org.ajax4jsf.dnd.event.DropListener;
// Referenced classes of package org.richfaces.demo.dnd:
// DndBean
public class EventBean implements DropListener {
private DndBean dndBean;
public EventBean()
{
}
public void processDrop(DropEvent dropEvent)
{
System.out.println("---- processDrop");
Dropzone dropzone = (Dropzone)dropEvent.getComponent();
dndBean.moveFramework(dropEvent.getDragValue(), dropzone.getDropValue());
}
public DndBean getDndBean()
{
return dndBean;
}
public void setDndBean(DndBean dndBean)
{
this.dndBean = dndBean;
}
}
// FrontEnd Plus GUI for JAD
// DeCompiled : Framework.class
package org.richfaces.demo.dnd;
import org.ajax4jsf.dnd.event.DragEvent;
public class Framework {
private String name;
private String family;
public String getFamily(){
return family;
}
public void setFamily(String family){
this.family = family;
}
public String getName(){
return name;
}
public void setName(String name){
this.name = name;
}
public Framework(String name, String family){
this.name = name;
this.family = family;
}
}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040866#4040866
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4040866
18 years, 11 months
[Design of JBoss Portal] - Drag and drop is not working
by javagirl901
hi i am trying to use the drag and drop support but it is not working with me does any one have a working example???
here is my example:
<%@ taglib uri="https://ajax4jsf.dev.java.net/ajax" prefix="a4j"%>
<%@ taglib uri="http://richfaces.ajax4jsf.org/rich" prefix="rich"%>
<%@ taglib uri="http://java.sun.com/jsf/html" prefix="h"%>
<%@ taglib uri="http://java.sun.com/jsf/core" prefix="f" %>
<rich:dragIndicator id="indicator"></rich:dragIndicator>
<h:form id="form">
<h:panelGrid columnClasses="panelc" columns="4" width="100%">
<rich:panel style="width:100px">
<f:facet name="header">
<h:outputText value="Source List" />
</f:facet>
<h:dataTable id="src" value="#{dndBean.frameworks}"
var="fm" >
<h:column>
<a4j:outputPanel style="border:1px solid gray;padding:2px;"
layout="block">
<rich:dragSupport dragIndicator=":indicator"
dragType="#{fm.family}" dragValue="#{fm}" dragListener="#{eventBean.processDrag}">
<rich:dndParam name="label" value="#{fm.name}" />
</rich:dragSupport>
<h:outputText value="#{fm.name}"></h:outputText>
</a4j:outputPanel>
</h:column>
</h:dataTable>
</rich:panel>
<rich:panel>
<f:facet name="header">
<h:outputText value="PHP Frameworks" />
</f:facet>
<rich:dropSupport id="php" acceptedTypes="PHP" dropValue="PHP"
dropListener="#{eventBean.processDrop}" reRender="phptable, src">
</rich:dropSupport>
<h:dataTable id="phptable" value="#{dndBean.containerPHP}" var="fm">
<h:column>
<h:outputText value="#{fm.name}"></h:outputText>
</h:column>
</h:dataTable>
</rich:panel>
<rich:panel>
<f:facet name="header">
<h:outputText value=".NET Frameworks" />
</f:facet>
<rich:dropSupport id="dnet" acceptedTypes="DNET" dropValue="DNET"
dropListener="#{eventBean.processDrop}" reRender="dnettable, src">
</rich:dropSupport>
<h:dataTable id="dnettable" value="#{dndBean.containerDNET}" var="fm">
<h:column>
<h:outputText value="#{fm.name}"></h:outputText>
</h:column>
</h:dataTable>
</rich:panel>
<rich:panel>
<f:facet name="header">
<h:outputText value="ColdFusion Frameworks" />
</f:facet>
<rich:dropSupport id="cf" acceptedTypes="CF" dropValue="CF"
dropListener="#{eventBean.processDrop}" reRender="cftable, src">
</rich:dropSupport>
<h:dataTable id="cftable" value="#{dndBean.containerCF}" var="fm">
<h:column>
<h:outputText value="#{fm.name}"></h:outputText>
</h:column>
</h:dataTable>
</rich:panel>
</h:panelGrid>
<a4j:commandButton action="#{dndBean.reset}" value="Start Over"
reRender="src,phptable,cftable,dnettable" />
</h:form>
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4040865#4040865
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4040865
18 years, 11 months