October 19, 2004

Create a Database Connection by Passing a DataSource Object

If the DataSource object is not null, a connection is picked up from the connection pool of the datasource. Else, direct connection to the database is created by DriverManager. import javax.sql.DataSource;import java.sql.Connection;import java.sql.DriverManager;public Connection getConnection(DataSource dataSource) { String url = “Your_database_url”; String driver = “Your_database_driver”; String username = “Your_database_user”; String

C# to Get Edit-and-Continue in VS 2005

n Monday morning, S. “Soma” Somasegar, Microsoft’s corporate vice president for the developer division, made the unexpected announcement, via his official MSDN-hosted Web log (http://blogs.msdn.com/somasegar/), that C# will get the much-loved edit-and-continue (E&C) feature in Visual Studio 2005. While it has been known for some time that E&C would be