[jboss-dev-forums] [JBoss AS 7 Development] - JBoss AS7 Command-line public API

idannehl do-not-reply at jboss.com
Mon Sep 17 05:02:43 EDT 2012


idannehl [https://community.jboss.org/people/idannehl] commented on the document

"JBoss AS7 Command-line public API"

To view all comments on this document, visit: https://community.jboss.org/docs/DOC-17597#comment-10694

--------------------------------------------------
In my case I forgot to give the authentication information user/password:

        try
        {
            ctx = org.jboss.as.cli.CommandContextFactory.getInstance().newCommandContext(user, password);
            ctx.connectController(host, port);
        } catch (Exception e)
        {
            throw e;
        }

works fine for me.

Regards Ines
--------------------------------------------------

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/jboss-dev-forums/attachments/20120917/979d2668/attachment.html 


More information about the jboss-dev-forums mailing list