Posts

Showing posts from January, 2013

Setting SVN (subversion) http proxy

If you are behind a firewall and have a http proxy on your network you probably will need some extra configuration to be able to download subversion repositories that are outside your network. SVN does not honor the http_proxy environment variable so you will have to set your subversion http proxy into a configuration file called "servers". This file should be under the subversion local data folder. On linux, this file is under ~/.subversion. On windows it should be under %APPDATA%\Subversion Open the file and add the following lines: [global] http-proxy-host=[my.host.name.for.my.proxy] http-proxy-port=[my.hot.http.port.number] http-proxy-username=[username] http-proxy-password=[password] 1) If you do not use username and password, comment them using the # 2) you host name should not contain the http scheme (enter just the host name). Good luck.

MULE ESB 3.3 - Your java component reading properties from a property file

The problem: I had a mule XML configuration file defining some property files that is loaded by mule container, like this: <context:property-placeholder location="classpath:my-mule-app.properties,classpath:my-mule-app-override.properties" /> and I I had a java component that need to read the value of  a property called jbc.url. That property is on my my-mule-app.properties. Ok, I am pretty sure there are a few other ways to solve this problem but I came up with a very simple solution for that so I want to share (besides that, several ways that I found on the web did not work for me, including using @Value from Spring or using the registry from muleContext). Anyways, here is what worked: This is what I had to add on the flow file configuration file when declaring my java component: <component doc:name="AgeHandler"> <singleton-object class="com.citi.isg.java.components.AgeHandler"> <property value="${jdbc.u