Thank you JB. You have given us some things to look into. For future
generations, the full name of the ArtifactInstaller interface is
org.apache.felix.fileinstall.ArtifactInstaller. And here is a page that
describes how a jar can be signed,
https://docs.oracle.com/javase/7/docs/technotes/tools/win
I want to implement the ability to execute my own Karaf commands from my own UI.
How can I list all command classes at runtime?
Thanks!
-Max
(Re-sending it due to copy/paste screw up in my earlier reply.)
I ended up implementing this by resolving symlinks and using an
HttpServletRequestWrapper.
public class FileServlet extends DefaultServlet{
//Bean init-method
public void initBasePath() {
basePath =
I ended up implementing this via a ContainerRequestFilter:
package org.example.filters;
import org.example.engine.Engine;
import javax.ws.rs.container.ContainerRequestContext;
import javax.ws.rs.container.ContainerRequestFilter;
import javax.ws.rs.core.Response;
import j
Hi Max,
What do you mean by your own UI from ? It's a terminal or a webUI ? You
are using a custom distribution of Karaf ?
François
Le 13/03/2018 à 04:05, Max Spring a écrit :
> I want to implement the ability to execute my own Karaf commands from
> my own UI.
> How can I list all command class
Hi François,
my own UI is a Web UI sitting on top of my own REST service.
The UI part is actually not important for what I want to do.
In essence, I want a programmatic way of listing all Karaf commands.
Then I'll filter out just "my" Karaf commands (which implement my own interface
in addition
Ok,
For Karaf 4.1.x, there is some example made by Jean-Baptiste for helping
to develop on Karaf.
Here the command example :
https://github.com/jbonofre/karaf/tree/DEV_GUIDE/examples/karaf-command-example
You can find others examples :
https://github.com/jbonofre/karaf/tree/DEV_GUIDE/examples