Archives

Embedded DataSource HSQL for Junit Testing

Configure Embedded HSQL DataSource Test WebAppConfiguration with Embedded DataSource

Rate this:

Read More

Inject DataSource to LocalContainerEntityManagerFactoryBean

If you already have a DataSource define you can just inject it into your EntityManagerFactory.

Rate this:

Read More

Jdbc, Hibernate, Jpa, Spring Data setup with no xml

Below is a very easy way in Spring to create DataSources with no XML: 1. DataSource 1.1 Define DataSource Interface 1.2 Implement DataSource Interface 1.3 Test if DataSource is connected 2. Jdbc 2.1 Define Jdbc Configuration 2.2 Define Jdbc Service 2.3 Test Jdbc Service 3. Hibernate 3.1 Define Hibernate Configuration 3.2 Define Hibernate Service 3.3 […]

Rate this:

Read More

Connect to Datasource in VB.Net

Private Sub btnConnect_Click(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles btnConnect.Click Try ConnectionString = “Data Source= ” + txtdatasource.Text + “;Initial Catalog=” + txtinitialcat.Text + “;Integrated Security=SSPI;User ID=sa;Password=test;Connection Timeout=60” MessageBox.Show(ConnectionString) Catch ex As Exception MessageBox.Show(ex.Message) End Try End Sub

Rate this:

Read More