[
https://issues.jboss.org/browse/TEIIDDES-2804?page=com.atlassian.jira.plu...
]
Barry LaFond commented on TEIIDDES-2804:
----------------------------------------
When deploying a VDB, Designer will first check to see if any source model DS's are
already deployed. This means checking if the JNDI-NAME exists in the DS list.
The default behavior for Designer is to us the *model name* as the default DS/JNDI name.
In your case, both projects used the default.
In practice, I think users will either already have DS's deployed on the server with
specific JNDI names. Designer allows setting theJNDI name on a model as well as changing
it once added to a VDB.
So the errors you are getting are correct.... and the default behavior is confusing and
will lead to these errors.
Guess the default behavior on Import could be to force the user to defined a specific JNDI
name before the model is saved? If a running default server is detected, the wizard could
check whether a JNDI name exists or not and warn the user?
Resource adapter is not refreshed after I hit execute VDB
---------------------------------------------------------
Key: TEIIDDES-2804
URL:
https://issues.jboss.org/browse/TEIIDDES-2804
Project: Teiid Designer
Issue Type: Bug
Affects Versions: 10.0
Reporter: Matus Makovy
I have a VDB with source model that references a data source (resource adapter - flat
file) with name that already exists on server. Let's say the name is
"adapter1".
After I hit execute on VDB, it is deployed and I can submit a query. Submitting query
reports an error that a flat file is not found. When I look to standalone.xml, the
resource adapter "adapter1" is not changed and there is still the old one with
wrong path to file. (both RA are of the same type - file)
It looks like when I execute a VDB, TD checks if there is data source (resource adapter)
with name specified in VDB. If there is such data source it doesn't check other
properties of the data source (RA) (at least it looks like that, maybe it checks the type
of RA).
Or is this a server issue ?
This may seem like a crazy use case, but when you go through the "import from flat
file" wizard twice (with different projects) and don't change the model names you
end up with two projects with same source model names. Default source model name in the
wizard is "SourceModel" and I think TD uses source model name as data source
name for VDB.
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)