Ask Your Question
1

Call functions in karaf (like from the osgi console)

asked 2014-12-18 04:52:10 -0700

Lorunification gravatar image

updated 2014-12-18 04:52:24 -0700

Hello again,

I got my self developed bundle installed and started in Helium SR1. Now that bundle contains some methods that i used to call from the osgi-console.

Example:

void start() {
    logger.info("Started");
    this.registerWithOSGIConsole();
}

public void _listFlows(CommandInterpreter ci) {
    ci.println("something");
}

With this i was able to call the function listflows from the osgi console.

Is this still possible through karaf? If not, is there another way to call methods implemented in my bundle?

edit retag flag offensive close merge delete

2 answers

Sort by ยป oldest newest most voted
0

answered 2016-05-26 08:57:32 -0700

jgoodyear gravatar image

Please refer to Karaf 3.0.x's documentation for developing custom console commands: http://karaf.apache.org/manual/latest...

edit flag offensive delete publish link more
0

answered 2016-05-29 06:00:17 -0700

medox gravatar image

you can use debugger OSGI bundles in Karaf

edit flag offensive delete publish link more
Login/Signup to Answer

Question Tools

Follow
1 follower

Stats

Asked: 2014-12-18 04:52:10 -0700

Seen: 433 times

Last updated: May 29 '16