Changing up the datasource name in a Netbeans project
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 SettingsChui.netbeans5.5context.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!
About this entry
You’re currently reading “ Changing up the datasource name in a Netbeans project ,” an entry on Chui's Counterpoint
- Published:
- 3.23.07 / 8pm
- Category:
- Netbeans
No comments
Jump to comment form | comments rss [?] | trackback uri [?]