lunes, 29 de diciembre de 2008

levantar IP que apunte a la loopback interface en ubuntu

Comandos mágicos para que las IPs 10.1.0.2 y 10.1.0.3 apunten a la loopback interface:

sudo ifconfig lo up
sudo ifconfig lo 127.0.0.1
sudo ifconfig lo:0 10.1.0.2
sudo ifconfig lo:1 10.1.0.3

sudo route add -host 127.0.0.1 lo
sudo route add -host 10.1.0.2 lo:0
sudo route add -host 10.1.0.3 lo:1

y así sucesivamente para agregar las IPs que se quiera

miércoles, 10 de diciembre de 2008

Cuidado con acceder a BD dentro un rowhandler ibatis

IDbConnection documentation says:

Note that while a DataReader is open, the Connection is in use exclusively by that DataReader. You will not be able to execute any commands for the Connection, including creating another DataReader, until the original DataReader is closed