This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<transportReceiver name="oracleaq" class="org.apache.axis2.transport.jms.JMSListener"> | |
<parameter name="myQueueConnectionFactory" locked="false"> | |
<parameter name="java.naming.factory.initial" locked="false">oracle.jms.AQjmsInitialContextFactory</parameter> | |
<parameter name="db_url" locked="false">[[Oracle_AQ_JDBC_URL]]</parameter> | |
<parameter name="java.naming.security.principal" locked="false">[[ORacle_AQ_D_bUser]]</parameter> | |
<parameter name="java.naming.security.credentials" locked="false">[[Oracle_AQ_DB_Password]]</parameter> | |
<parameter name="transport.jms.ConnectionFactoryJNDIName" locked="false">QueueConnectionFactory</parameter> | |
<parameter name="transport.jms.ConnectionFactoryType" locked="false">queue</parameter> | |
</parameter> | |
</transportReceiver> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule RomanNumerals do | |
@vals %{ | |
"I" => 1, | |
"V" => 5, | |
"X" => 10, | |
"L" => 50, | |
"C" => 100, | |
"D" => 500, | |
"M" => 1000 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Component | |
@Service | |
public class ContactListAdapterFactory implements AdapterFactory{ | |
@Property(name="adapters") | |
public static final String[] ADAPTER_CLASSES = { | |
ContactList.class.getName() | |
}; | |
@Property(name="adaptables") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@Component | |
@Service | |
public class ContactAdapterFactory implements AdapterFactory{ | |
@Property(name="adapters") | |
public static final String[] ADAPTER_CLASSES = { | |
Contact.class.getName() | |
}; | |
@Property(name="adaptables") |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<sling:adaptTo adaptable="${slingRequest}" adaptTo="com.xicojunior.contacts.models.ContactList" var="contactList" /> | |
<ul class="list-group" id="contact-list"> | |
<c:set var="contacts" value="${contactList.contacts}" /> | |
<c:forEach var="contact" items="${contacts}" > | |
<li class="list-group-item"> | |
<div class="col-xs-12 col-sm-3"> | |
<c:if test="${not empty contact.contactImage }"> | |
<img src="${contact.contactImage}" alt="${contact.name}" class="img-responsive img-circle"> | |
</c:if> | |
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<c:forEach var="contact" items="${contacts}" > | |
<sling:adaptTo adaptable="${contact}" adaptTo="com.xicojunior.contacts.models.Contact" var="contactProps" /> | |
<li class="list-group-item"> | |
<div class="col-xs-12 col-sm-3"> | |
<c:if test="${not empty contactProps.contactImage }"> | |
<img src="${contactProps.contactImage}" alt="${contactProps.name}" class="img-responsive img-circle"> | |
</c:if> | |
</div> | |
<div class="col-xs-12 col-sm-9"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<form action="/content/contactsapp/contacts/*" method="post" enctype="multipart/form-data"> | |
<fieldset class="form-group"> | |
<label for="name">Name</label> | |
<input type="text" class="form-control" id="name" placeholder="Enter your name" name="name"> | |
</fieldset> | |
<fieldset class="form-group"> | |
<label for="email">Email address</label> | |
<input type="email" class="form-control" id="email" placeholder="Enter email" name="email"> | |
<small class="text-muted">We'll never share your email with anyone else.</small> | |
</fieldset> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<localEntry key="smooks_conf" xmlns="http://ws.apache.org/ns/synapse"> | |
<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.0.xsd"> | |
<!--Configure the CSVParser to parse the message into a stream of SAX events. --> | |
<resource-config selector="org.xml.sax.driver"> | |
<resource>org.milyn.csv.CSVParser</resource> | |
<param name="fields" type="string-list">id,name,email,phone</param> | |
<param name="strict" type="boolean">false</param> | |
<param name="ident" type="boolean">true</param> | |
</resource-config> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<localEntry key="smooks_conf" xmlns="http://ws.apache.org/ns/synapse"> | |
<smooks-resource-list xmlns="http://www.milyn.org/xsd/smooks-1.0.xsd"> | |
<!--Configure the CSVParser to parse the message into a stream of SAX events. --> | |
<resource-config selector="org.xml.sax.driver"> | |
<resource>org.milyn.csv.CSVParser</resource> | |
<param name="fields" type="string-list">id,name,email,phone</param> | |
<param name="ident" type="boolean">true</param> | |
</resource-config> | |
</smooks-resource-list> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="UTF-8"?> | |
<proxy name="CSVReadService" startOnLoad="true" trace="disable" | |
transports="vfs" xmlns="http://ws.apache.org/ns/synapse"> | |
<target> | |
<property name="OUT_ONLY" value="true"/> | |
<inSequence> | |
<smooks config-key="smooks_conf"> | |
<input type="text"/> | |
<output type="xml"/> | |
</smooks> |