Looks interesting but clojure doesn't help contribution for java projects
in general (well from my experience at least).

FYI TomEE already has some command tooling using tomee.sh. It is based on
simple java main (public static void main(final String... args)) + a small
SPI (META-INF/org.apache.openejb.cli/mycommand):

-------------------------------
$ ./bin/tomee.sh  --help
usage: openejb <command> [options] [args]

Available commands:
  cipher           Encrypt a database password and print it to stdout.
  deploy           Deploy an ejb jar or ear into OpenEJB.
  effectivetomee   Shows properties TomEE will use for resources
  properties       Convert and print the OpenEJB configuration as
                   properties
  setters          List property available for a class
  start            Start the OpenEJB Remote Server for accessing beans in
                   client/server mode.
  stop             Stop the OpenEJB Remote Server.
  undeploy         Undeploy an ejb jar or ear

Try 'openejb <command> --help' for help on a specific command.
For example 'openejb deploy --help'.

Apache OpenEJB -- EJB Container System and Server.
For additional information, see http://tomee.apache.org
Bug Reports to <[email protected]>
-------------------------------


It is pretty trivial to enrich and while in tomee/lib it is auto discovered.

We don't have yet add-X commands but should be easy to add while just
modifying tomee.xml - would need a little more work to do it in a running
server but still possible.

Advantage of org.apache.openejb.cli commands is it is aligned with tomee
(version). Drawback is the same (release lifecycle).

What do you think about migrating commands you miss to a tomee module (or
just enriching the ones in openejb-core)?

Personally I would even go further than your CLI using the shell a bit more
either to pass inline all properties/attributes of a resource or to ask it
in interactive mode:

$ ./tomee.sh add-resource --JdbcUrl jdbc:mysql://localhost:3606/test
--JdbcDriver auto --SomeSpecificProperty specificValue --attribute:type
DataSource --attribute:id=jdbc/mysqlDb

Then add-datasource would just be a shortcut with defaults for all missing
attributes/properties.

wdyt? does it make sense? Motivated to try to merge your project with
tomee/openejb?



Romain Manni-Bucau
@rmannibucau <https://twitter.com/rmannibucau> |  Blog
<http://rmannibucau.wordpress.com> | Github <https://github.com/rmannibucau> |
LinkedIn <https://www.linkedin.com/in/rmannibucau> | Tomitriber
<http://www.tomitribe.com>

2015-04-13 22:34 GMT+02:00 Daniel Cunha <[email protected]>:

> Another thing that we want to do, interoperability between Clojure and
> Java,
> it's by creating a JBoss Forge addon, so you can run the tool within
> JBoss Forge.
>
> On Mon, Apr 13, 2015 at 5:20 PM, Daniel Cunha <[email protected]>
> wrote:
> > Hello everyone,
> >
> > I'm glad to announce today the release of Tomee-cli, a command line
> > tool to manage your Apache TomEE instances.
> >
> > https://github.com/bitmaker-software/tomee-cli
> >
> > We decided to think out of the box and come up with a solution that's
> > easy to use and develop, offering the maximum number of
> > functionalities with a minimum amount of code. To achieve that, we
> > wrote the tool in Clojure (a JVM hosted language) and we use its REPL
> > to offer the command line facilities. It's so straightforward to use
> > that we probably are more user friendly than JBoss-cli.
> >
> > We currently support the following functionalities:
> >
> > install tomee
> > start server
> > stop server
> > restart server
> > print versions of the execution environment
> > deploy war and ear applications
> > undeploy war and ear applications
> > add email resource
> > add datasource
> > add JMS resource
> >
> > All these functionalities were written in less than 300 lines of code
> > within just over a month (started in Mar 9th) . Can you imagine what
> > we can achieve within a year?!
> >
> > We already use tomee-cli internally and we're happy with the result.
> > We would love to see you using it as well. So, please, follow the
> > instructions in the readme file, try it and let us know what you
> > think.
> >
> > The project is open, so you can help like do you want.
> >
> > --
> > Best regard,
> > Daniel Cunha (soro)
>
>
>
> --
> Best regard,
> Daniel Cunha (soro)
>

Reply via email to