[Design of JBoss ESB] - quickstart CVS to XML transform
by akfs
The for-each in the smooks-res.xml returns only the first csv-record from the csv file even though there are multiple csv records in there.
here is my xml-xml configuration
<resource-config target-profile="from-type:text/xml:inter-Pcard-xml AND to-type:text/xml:Pcard-xml" selector="csv-set">
| <resource type="xsl" ><![CDATA[
| <xsl:for-each select="csv-record">
| <Pcard>
| <txnNumber><xsl:value-of select="./txnNumber"/></txnNumber>
| <postDate><xsl:value-of select="./postDate"/></postDate>
| <amount><xsl:value-of select="./amount"/></amount>
| <fqa><xsl:value-of select="./fqa"/></fqa>
| <reference><xsl:value-of select="./reference"/></reference>
| <itemDesc><xsl:value-of select="./itemDesc"/></itemDesc>
| <purchaseDate><xsl:value-of select="./purchaseDate"/></purchaseDate>
| <itemPrice><xsl:value-of select="./itemPrice"/></itemPrice>
| <embossedName><xsl:value-of select="./embossedName"/></embossedName>
| <ccNumber><xsl:value-of select="./ccNumber"/></ccNumber>
| </Pcard>
| </xsl:for-each>
|
| ]]>
| </resource>
| <param name="is-xslt-templatelet">true</param>
| </resource-config>
The CSV xml has all the entries in it. but the for-each returns back the first entry.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113965#4113965
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113965
16 years, 5 months
[Design of JBoss/Tomcat Integration] - Re: Custom protocol handler class
by eg_jboss
Thanks for the reply, but did not work, here is outline of my class to handle custom protocols and I set the system property as -Djava.protocol.handler.pkgs=com.acme.protocol.handler.CustomProtocolUHandler
Can you please suggest what could be wrong?
Thanks again.
package com.acme.protocol.handler;
import java.net.*;
//import java.util.*;
import sun.misc.*;
import com.rsa.ssl.*;
import java.io.File;
public class CustomProtocolHandler implements URLStreamHandlerFactory
{
public URLStreamHandler createURLStreamHandler(String protocol)
{
protocol = protocol.toLowerCase();
//We are also returning our handler for handling of dummy protocols like javascript: or about:blank
if(protocol.startsWith("myhttp"))
{
return m_protocolHandler;
}
else
{
return null;
}
}
public static void main(String[] args )
{
System.out.println("main Method called");
try
{
CustomProtocolHandler customProtocolURLStreamHandler = new CustomProtocolHandler();
java.net.URL.setURLStreamHandlerFactory(customProtocolURLStreamHandler);
}
catch(Exception e)
{
System.err.println("Exception while setting the URLStreamHandlerFactory object"+e );
}
}
}
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113918#4113918
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113918
16 years, 5 months
[Design of POJO Server] - Re: BSH script from client
by alesj
Added jboss-structure.xml
| <structure>
| <context>
| <path name=""/>
| <metaDataPath>
| <path name="META-INF"/>
| <path name="jmx/interceptors"/>
| <path name="jmx/interceptors/scripts"/>
| </metaDataPath>
| <classpath>
| <path name=""/>
| </classpath>
| </context>
| </structure>
|
to interceptors-mbeans.sar, which fixed the Bsh problem:
| C:\projects\jboss5\trunk\testsuite>build -Dtest=org.jboss.test.jmx.test.DeployXMBeanUnitTestCase one-test
| Calling ..\tools\bin\ant.bat -Dtest org.jboss.test.jmx.test.DeployXMBeanUnitTestCase one-test
| Buildfile: build.xml
| Overriding previous definition of reference to apache.commons.classpath
| Overriding previous definition of reference to sax.classpath
| Overriding previous definition of reference to xdoclet.task.classpath
| Overriding previous definition of reference to gjt.jpl-util.classpath
| Overriding previous definition of reference to opennms.joesnmp.classpath
| Overriding previous definition of reference to jacorb.idl.classpath
| Overriding previous definition of reference to sleepycat.classpath
| Overriding previous definition of reference to apache.tomcat55.classpath
| Overriding previous definition of reference to trove.classpath
| Overriding previous definition of reference to qdox.classpath
| Overriding previous definition of reference to javassist.classpath
| Overriding previous definition of reference to hibernate3.classpath
| Overriding previous definition of reference to odmg.classpath
| Overriding previous definition of reference to cglib.classpath
| Overriding previous definition of reference to ejb3-persistence.classpath
| Overriding previous definition of reference to spring.classpath
| Overriding previous definition of reference to apache.ant.classpath
| Overriding previous definition of reference to jboss.test.classpath
|
| one-test:
| [junit] Running org.jboss.test.jmx.test.DeployXMBeanUnitTestCase
| [junit] Found log4j.xml: file:/C:/projects/jboss5/trunk/testsuite/output/resources/log4j.xml
| [junit] Tests run: 11, Failures: 0, Errors: 0, Time elapsed: 6,11 sec
|
| BUILD SUCCESSFUL
| Total time: 17 seconds
|
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4113886#4113886
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4113886
16 years, 5 months