| Summary: | Support named resource bindings | ||
|---|---|---|---|
| Product: | z_Archived | Reporter: | Justin Spadea <jspadea> |
| Component: | EDT | Assignee: | Justin Spadea <jspadea> |
| Status: | CLOSED FIXED | QA Contact: | |
| Severity: | enhancement | ||
| Priority: | P3 | CC: | chenzhh, jinfahua, jvincens, mheitz, tww, zhuzhi |
| Version: | unspecified | ||
| Target Milestone: | --- | ||
| Hardware: | PC | ||
| OS: | Linux | ||
| Whiteboard: | |||
|
Description
Justin Spadea
Tim / Joe - please correct anything I got wrong, or append anything I left out. I understand named bindings which points to a defined resource in IDE (using any other toolings), for example, a database connection profile defined by the Data tool, a JNDI configured in the local Tomcat server, an EGL service which can be deployed to debug server. But what is "preferences://Service1"? You mentioned a named resource probably point to preference:// and then the value in preferences would be either "jndi://" or something else. Why isn't the named resource directly pointing to "jndi://" etc? I think we may create a new binding type for named binding (instead of adding to the existing SQLBinding or RestBinding). A named resource binding will be just one text field (which saves the URI). Named binding will have its own detail section which only shows the URI. So, you choose what Database binding you are creating, named or explicit, after you created it, you can not switch the type. For the new resouce binding wizard, if we just support a few named binding types, maybe we can list them together with the existing two explicit bindings (rest & sql). The wizard will first show you the choice page like below. [] REST Binding [] EGL Service on Test Server [] SQL Dtabase Binding [] JNDI Binding [] Reference to Workspace Database Connection I do not have a strong preference of how the UI should come, so if you feel the originally propose new wizard gives better user experience, I'm fine with it. Hi Tony, We decided in today's scrum that we will not support preference:// in 0.7.0. This means there is no preference page for configuration, and the overall work is greatly reduced. We can add preference support in 1.0. For a named SQL binding you will use either "jndi://jdbc/SAMPLE" if the application's container will have such a name defined (e.g. running on Tomcat), or "workspace://nameOfConnectionProfile" if running in development mode such as the jetty test server. For a named REST binding you will use either "http://locationOfService" if you want to invoke a deployed service, or "workspace://ProjectName/pkg.ServiceName" if you want to use the jetty test server. As for your suggestion to create a new binding type, we actually want to avoid this. Rather than two versions of each binding type, any binding can be a named binding that uses a URI. When you open the "Add a Resource Binding" wizard you will still see just REST and SQL, and the next pages will let the user decide if they want the binding to be a named binding or not. I'm going to get started on this work this week. ok, please create separate bugs for me if there's changes need me to take care. Thanks. Support for workspace:// was added, and a separate enhancement was opened for preference://, to be implemented post-0.7.0. See bug 360842. Verified |