Changing up the datasource name in a Netbeans project
Friday, 23 March 2007
In your personal directory, there is a Netbeans configuration file called context.xml, it has a list of datasources and their jdbc URLs
C:\Documents And Settings\Chui\.netbeans\5.5\context.xml
<context name="java:comp">
<context name="env">
<context name="jdbc">
<object name="TravelPack" class="com.sun.rave.sql.DesignTimeDataSource">
<arg class="java.lang.Boolean" value="false"/>
<arg class="java.lang.String"/>
<arg class="java.lang.Boolean" value="true"/>
<arg class="java.lang.String" value="org.apache.derby.jdbc.ClientDriver"/>
<arg class="java.lang.String" value="jdbc:derby://localhost:1527/travel"/>
<arg class="java.lang.String"/>
<arg class="java.lang.String" value="travel"/>
<arg class="java.lang.String" value="D536B001AA3434DE"/>
</object>
Start up Netbeans, in your session bean, each of the CachedRowSet has a named datasource in the property sheet, you may need to change it:
And that’s it!