[
https://issues.jboss.org/browse/TEIID-4356?page=com.atlassian.jira.plugin...
]
Marco Ardito commented on TEIID-4356:
-------------------------------------
Personally, I only need this for Teiid, but I am not that aware of how this kind of
resource is managed by different application server layers.
The oauth2 RA issue I mentioned above is in this thread linked below: after all struggle
before, Ramesh says:
"So, the request for the Access Token is being sent from the Teiid, however the
remote server (mailup) is throwing an exception for that request. There are no details to
see what may be the issue. There is tools like Wireshark that you can use to see what is
being sent and received, but this can get very low level."
see
https://developer.jboss.org/message/960691#960691
Well, my Teiid setup seems ok, but the remote server throws some exception, but I can only
spot that from the squirrel client, and there I only get:
"Error: Remote org.teiid.core.TeiidException: server_error
SQLState: 38000
ErrorCode: 0"
Teiid server log throws more, but Ramesh says even looking this "There are no details
to see what may be the issue".
I will try digging into CFX logging, or wireshark or else but, honestly, I'm a Teiid
user, not a Teiid developer: there should be some way to know if the connectio to a remote
system works or not and, possibly, why... so, whatever works is very welcome. :D
Add asort of connection test for "connection definitions"
of resource adapters
------------------------------------------------------------------------------
Key: TEIID-4356
URL:
https://issues.jboss.org/browse/TEIID-4356
Project: Teiid
Issue Type: Feature Request
Components: Misc. Connectors
Reporter: Marco Ardito
Assignee: Steven Hawkins
Priority: Minor
Could a sort of "connection test" be implemented to verify if a
"connection definition" specified for a resource adapter (eg: file, google, etc)
is working, and can "connect" to the resource it's supposedly pointing to?
Data sources(jdbc) already have this kind of test, and it is quite useful to test if
there's any error in their connection definition.
With resource adapters, one must define connection definitions, but it is not possible to
test them, independently from later requests/queries (eg: reading data from .csv or .xls
files, or oauth web services): one has to build all the chain and really try to get data
from the source, using the vdb, hoping everything is correctly defined...
Recently I am struggling with a custom rest oauth2 RA, and I need to define
- security domain (with client id/secret, tokens, auth uri)
- RA using that domain
- a connection definition for the RA accessing the remote data source
- a VDB using the connection definition
- a client using the VDB to try get data in sql form
any step could be wrong, but only the last allows to check if the whole chain is working,
or not.
For any error or failure, regular users (like me) can't do anything else than double
check everything... a "test connection" button, for the connection definition,
would do wonders to simplify setup debug...
Marco
--
This message was sent by Atlassian JIRA
(v6.4.11#64026)