Skip to content

Instantly share code, notes, and snippets.

View marianocapurro's full-sized avatar

Mariano Capurro marianocapurro

  • MuleSoft
  • Buenos Aires, Argentina
View GitHub Profile
@marianocapurro
marianocapurro / devkit-studio-categories.java
Created May 13, 2013 01:02
All available Categories configurations for DevKit modules
import org.mule.api.annotations.Category;
// Endpoint
@Category(name = "org.mule.tooling.category.endpoints", description = "Endpoints")
// Scope
@Category(name = "org.mule.tooling.category.scopes", description = "Scopes")
// Component
@Category(name = "org.mule.tooling.category.core", description = "Components")
@Connector(name = "ldap", schemaVersion = "3.4", friendlyName="LDAP", minMuleVersion="3.4", description="LDAP Connector that allows you to connect to any LDAP server and perform every LDAP operation")
@Category(name = "org.mule.tooling.category.core", description = "Components")
public class LDAPConnector
{
...
}
@marianocapurro
marianocapurro / start-mule34-debugger.sh
Created January 11, 2013 02:36
Starting Mule 3.4 with remote debugger support
# Allow remote debugger connections (Default port is 6666)
Mule-3.4$ bin/mule -M-Dmule.debug.enable=true
# Change debugger port
Mule-3.4$ bin/mule -M-Dmule.debug.enable=true -M-Dmule.debug.port=8888
# Disable timeouts
Mule-3.4$ bin/mule -M-Dmule.debug.enable=true -M-Dmule.timeout.disable=true
@marianocapurro
marianocapurro / input.groovy
Created August 8, 2012 18:22
DataMapper Input POJO Preview Example
import org.mulesoft.dmia.example.InputPojo
InputPojo sample = new InputPojo()
sample.description = "Sample Description"
sample.id = 1000
sample.creationTimestamp = System.currentTimeMillis()
sample.value1 = "Sample Name"
sample.value2 = "Sample un-used value"
return sample
@marianocapurro
marianocapurro / multiple-placeholder-error
Created December 16, 2011 14:24
Multiple PropertyPlaceholder Error
[12-16 11:06:23] ERROR DefaultMuleApplication [WrapperListener_start_runner]: null
org.springframework.beans.factory.BeanDefinitionStoreException: Invalid bean definition with name 'jdbcDataSource' defined in URL [file:/Users/mariano/Development/sap-transport/mule-standalone-3.2.1-SNAPSHOT/apps/idocsender/mule-config.xml]: Could not resolve placeholder 'database.driver'
at org.springframework.beans.factory.config.PropertyPlaceholderConfigurer.processProperties(PropertyPlaceholderConfigurer.java:272)
at org.springframework.beans.factory.config.PropertyResourceConfigurer.postProcessBeanFactory(PropertyResourceConfigurer.java:75)
</code>
@marianocapurro
marianocapurro / multiple-placeholder-config.xml
Created December 16, 2011 14:22
Multiple PropertyPlaceholder Configuration
<mule ...>
...
<!-- SAP & JDBC Configuration -->
<spring:bean id="sapProperties" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<!-- Added to support multiple placeholders -->
<spring:property name="ignoreUnresolvablePlaceholders" value="true" />
<spring:property name="location" value="classpath:sap.properties"/>
</spring:bean>
<spring:bean id="jdbcProperties" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
@marianocapurro
marianocapurro / invalid-multiple-placeholder-config.xml
Created December 16, 2011 14:15
Invalid Multiple PropertyPlaceholder Configuration
<mule ...>
...
<!-- SAP & JDBC Configuration -->
<spring:bean id="sapProperties" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<spring:property name="location" value="classpath:sap.properties"/>
</spring:bean>
<spring:bean id="jdbcProperties" class="org.springframework.beans.factory.config.PropertyPlaceholderConfigurer">
<spring:property name="location" value="classpath:jdbc.properties"/>
</spring:bean>