-
1. Re: How to connect to a running server?
blafond Jul 30, 2013 10:56 AM (in response to rareddy)The Teiid Server configuration references/integrates with an AS/EAP configuration which has some hooks but not the right ones to just "add to their Server editor", hence our own.
If you've created and started an AS/EAP Server and then tried to set up/add Teiid component to it, I'm not sure if that will work... without restarting? I know the "connection" it's looking for is a Teiid server, not a generic running AS.
Barry
-
2. Re: How to connect to a running server?
blafond Jul 30, 2013 11:22 AM (in response to blafond)I just tested the following:
1) Launched with new/empty workspace (JBDS 7.0 GA + Teiid Designer 8.2 Alpha2)
2) Created new server via Servers View link (EAP 6.1 + Teiid 8.4 Final)
3) Started Server
4) Used Guides view "Model JDBC Source" action set
5) Got to Preview Data action and it worked fine
-
3. Re: How to connect to a running server?
rareddy Jul 30, 2013 1:54 PM (in response to blafond)The Teiid Server configuration references/integrates with an AS/EAP configuration which has some hooks but not the right ones to just "add to their Server editor", hence our own.
What are the hooks? and why can't we work with JBoss Tools folks to fix whatever is needed. Having Teiid specific one is source of the confusion. We should absolutely need to get rid of this dialog for supporting Teiid 8.x servers, if need to support older 7.x servers you can keep it for *just* that. If I am missing something, please explain.
If you've created and started an AS/EAP Server and then tried to set up/add Teiid component to it, I'm not sure if that will work... without restarting? I know the "connection" it's looking for is a Teiid server, not a generic running AS.
I am not asking for AS/EAP installed, and Teiid installation without restarting. What I am saying is I configured Designer to use Teiid Server as mention in your next post, and it is working. Now, quit/exit the Designer and restart and now "preview" does not work, and it complains about the above error I mention in the original post. I have NOT seen a straight forward way to connect back to server to make preview work. My gripe is, when I already configured AS Server it in my previous session, why are you making keep connecting again, connect to the server configuration from my previous setting. In relative terms, when my phone sees the hotspot which I connected to it previously, it makes connection under the covers when I am in the range. The same should apply here.
Thanks
Ramesh..
-
4. Re: How to connect to a running server?
blaine.mincey Jul 30, 2013 4:16 PM (in response to rareddy)Hey guys. For what it is worth, I just started getting this error within the last hour and just found this post. I am running the same setup as Ramesh. Everything was working earlier and then after a restart, Teiid Designer cannot connect to the local running server. Seems that everything else works until I try to run a preview and get the "This action requires a running server - please connect and retry".
-
5. Re: How to connect to a running server?
rareddy Jul 30, 2013 4:25 PM (in response to blaine.mincey)Blaine,
I accidently found this under "servers" view, there is a "Teiid Server configuration" under the
server configuration. I think I double clicked or right clicked to refresh. Which was intutive at all.
Ramesh..
-
6. Re: How to connect to a running server?
blafond Jul 30, 2013 4:30 PM (in response to rareddy)Ramesh, Blaine,
Yes, the right-click Refresh action does instantiate the "Teiid Server API" component that Designer uses.
We'll work this issue.
Barry
-
7. Re: How to connect to a running server?
blaine.mincey Jul 30, 2013 4:31 PM (in response to rareddy)Thanks Ramesh! I would have been looking for that all day.
In case anyone else hits this, when you find the "Teiid Server Configuration" option beneath your defined server in the "Servers" view, simply right-click and select "Refresh". That worked.
I agree that it was not very intuitive. I see that being a common action. I would rather be able to click on the defined server and refresh or add a button to the servers view for it.
-
8. Re: How to connect to a running server?
phantomjinx Jul 31, 2013 6:04 AM (in response to blaine.mincey)Ramesh, Blaine,
Your issue suggests a problem with the JBoss server starting and notifying Designer internals that the Teiid Admin client should connect to the Teiid Server.
The normal course of events is that once the JBoss server (parent server) has started then a reconnection to its Teiid Server is made. This is the course of events:
- Start JBoss Server with start button;
- JBoss Server starts and once it has established the START state, notifies all listeners;
- The singleton TeiidParentServerListener receives the notification, checks the state of the parent server (is STARTED) and acts to reconnect the Teiid Admin Client to the Teiid Server.
Repeating your use-case, I have successfully observed this behaviour, with no recourse to using the refresh button. However, it is confirmed that there are occasions when this is not going smoothly in that, maybe:
- the JBoss Server is not correctly notifying the TeiidParentServerListener;
- the TeiidParentServerListener is not correctly reconnecting to the Teiid Server
Therefore, I have opened https://issues.jboss.org/browse/TEIIDDES-1813 so could you post any logs that may have been generated on restarting Designer as well as anything else that may help us repeat the problem?
Many thanks
Paul
-
9. Re: How to connect to a running server?
rareddy Jul 31, 2013 7:03 AM (in response to phantomjinx)Paul,
The order of operations is exactly as you mentioned. In my case the server is remotely or externally managed (still I need to issue start command). I do not see any log/error statements during this time.
Thanks
Ramesh..