Posts

Showing posts from November, 2014

So you think you got a bad luck in developing with JSF today huh?!

Well, Whatever you think, I think you aren't really in a worst case more than this guy :D
http://stackoverflow.com/a/19927795

Define and use a datasource under the Websphere Application Server Liberty

Image
Bellow how to define and use a datasource on your workspace.

Create a directory be used as a shared lib for the Oracle JDBC JAR. For example C:\temp_jars and add the ojdbc14.jar and class12.jar to it.Open server.xml under the Websphere Application Server Liberty Profile and add the bellow two tags:<dataSource id="oracle" jndiName="jdbc/oracle"> <jdbcDriver libraryRef="OracleLib"/> <properties.oracle URL="jdbc:oracle:thin:@//localhost:1521/test" password="{xor}KzosKw==" user="test"/> </dataSource><library description="Oracle JDBC Driver" id="OracleLib" name="Oracle JDBC"> <fileset dir="C:\temp_jars" includes="ojdbc14.jar class12.jar"/> </library> Notice that the password attribute is encoded. You can encode the password through a security utility under the Websphere Application Server Liberty Profile bin directory.

To use th…