This content has been marked as final.
Show 1 reply
-
1. Re: Teiid embedded integration in a java application as a separate process
shawkins May 18, 2016 11:46 AM (in response to hend.amin)> Any idea how i can do that ?
Your usage would still effectively look the same, there would be a main that bootstraps the runtime and configures the necessary JDBC socket transport, then you just need to not let that main thread die - any kind of non-tight loop would be fine:
while (true) {
Thread.sleep(...);
}
The issue here is effectively that all of our threads are currently marked as daemon, but for your usage you'd like at least the socket listener to be a non-daemon thread to prevent the vm from stopping. You can log that as a enhancement for the socket configuration if you want.