linked from VWPDataSourceIntegration
Tracked by issue 94804 and issue 93949
A visualweb project that contains database rowset bindings has an associated datasource for each rowset bundled in the project. If a project is moved to another machine or the userdir was deleted (drivers and connections are lost) then at design-time, bindings to the rowsets will fail such that when a visualweb page is opened, a Component Error window opens instead of the expected page design. Since visualweb requires live connections to the database at design-time, each project data source must have a corresponding connection. This Resolve Broken Data Sources will help the user restore the driver and or connection. Also, if a project is migrated from Java Studio Creator 2 then the project datasources are restored within the project (the driver and connection are migrated when migrating the userdir settings from Creator 2)
In Creator 2, users could create data sources using the Data Sources node in the Server Navigator. Also, there was a facility to import/export datasources used by the IDE (by saving datasources used a config file) when migrating projects, whether from release to release or machine to machine.
In VWP 5.5, the Server Navigator was removed for the sake of redundancy with the Runtime window. Runtime window is where Application Servers and Database connections are made. Also, there was a limitation in that users could not create their own datasources and import/export to a config file. Instead a new facility to resolve data sources used by projects (when the corresponding database connection was not registered in the Runtime window) was implemented. See Resolving a Data Source; also there's Help topic included with VWP 5.5.
This feature's purpose is to detect when database connections, needed by a visualweb database project, have not been registered in the Services pane and to badge the Data Source References node, add an action to the Data Source References node and add a dialog to help guide a user to register the database connections needed. Once the connections have been registered, the datasources can be registered in the project and server specific info added to the project (setup folder with connection pool configurations).
This feature will also be used by the User settings migration feature for 6.0
This feature is similar to the 5.5. There will be a new Services palette, but only database connections will be listed, not data sources. Data sources will have to be resolved project by project, same as 5.5. See Resolving a Data Source
Migrating a project can be defined as :
This feature will do the following:
More info:
There will be child node under Data Source References, for each data source in the project, (see Travel child node in (figure 1) . The child data sourcenode will not have an action.
Only those data sources which don't have a corresponding Database Connection will be listed in the Resolve Data Source(s) dialog. If a child data source node has a corresponding connection then it won't be badged.
For example, if the project has another data source, named Foo and there is a database connection for Foo in the Services tab then Foo will appear as a child of the Data Source References node, but it won't have a badge (red square in top right corner of the image). Also, Foo will not be listed in the Resolve Data Source(s) dialog.
VWProjects (Data Source References node to be provided by the Project implementation)
Use Case A. User has a project developed in Java Studio Creator 2 or VWP 5.5 that uses rowsets - pages with components bound to rowsets and wants to import this project in Shortfin.
Use Case B. User has developed a new Visual Web application that contains a rowsets.If another user wants to use this project or the developer has removed the userdir then the data sources will not be found
Here's the steps required for both use cases to resolve missing data connections:
![]() |
As a result, the project's pages that have components that bind to rowsets will rebind successfully, automagically and the project can be deployed successfully.
If a user cleans up the App Server by deleting domain1 or removing connections then by choosing to Resolve Data Sources, the connection resources are added to the project so it can be deployed successfully.
Parameters for connecting to the Travel database
+ User ID = travel
+ Password = travel
+ Database URL = jdbc:derby://localhost:1527/travel
| OutputDBMsg.GIF | ![]() |
33246 bytes |
| ResDatabaseProbs.jpg | ![]() |
193945 bytes |
| ResDatabaseProbs.png | ![]() |
8211 bytes |
| ResDatabaseProbs.png.jpg | ![]() |
8211 bytes |
| addconnection.GIF | ![]() |
19060 bytes |
| addconnection.JPG | ![]() |
35545 bytes |
| datasource_alert.JPG | ![]() |
25409 bytes |
| javadb_connection_props.GIF | ![]() |
23167 bytes |
| new_database_connection.JPG | ![]() |
34995 bytes |
| new_jdbc_driver.JPG | ![]() |
23911 bytes |
| resolve_datasources.JPG | ![]() |
24689 bytes |
| resolve_datasources1.JPG | ![]() |
23752 bytes |