The code is correct. Teiid no longer owns the Admin connection as before, so no more port 31443 for admin connection. The AS defines the default Admin port as 9999. I did quick test myself and I did not see any errors. So, I believe you may not have bound to the "localhost". Did you supply any "-b" information at startup?

Thanks for your reply. I am not using any "-b" information at the startup. Teiid JBDC API works fine for me with localhost. Also i have tried Teiid AdminShell and that works fine as well. Below is the out put of AdminShell Groovy Console:

After above mentioned AdminShell test, i downloaded the teiid source and debug it. I found that in createAdmin method of AdminFactory class the following piece of code fails to return nodeTypes. Actually Util.getNodeTypes returns empty collection and due to this admin returns as null :

For your standalone Admin connection program, do you have all the dependency jars correctly set? take a look at the AdminShell "lib" directory what this requires. "Util.getNodeTypes" is static method, you are unable to make connection for some reason I can not think of with the provided details.

Your suggestion works for me. I was already referring 8 jars but could not find that 3 more jars were required as there was no error. I could only see "The controller is not available at localhost:9999" message instead of some error about missing jars. The missing jars were "xnio-nio-3.0.0.CR7.jar, jboss-sasl-1.0.0.Beta9.jar, jboss-marshalling-1.3.4.GA.jar".

I suggest that proper error message or type of exception should be thrown about missing jars instead of doing nothing.

Great. As I explained before Admin connection is not just for Teiid anymore, so those libraries exist out side the Teiid code. I have no control over what they through as an error. We will make documentation correct on our side as to what libraries to include for Admin connection.