Ask is moving to Stack Overflow and Serverfault.com! Please use the "opendaylight" tag on either of these sites. This site is now in Read-Only mode

1

karaf update bundle

asked 2014-11-06 15:34:19 -0800

anonymous user

Anonymous

I ran l2switch features in karaf under linux. I did "bundle:watch *" and then recompiled a l2switch module with a small change to a log message. I observed that the bundle was restarted. However, the log message was still showing the old text, not the modified text. If I restart karaf, then the modified text will show up. Do you have a similar problem? What is the proper procedure of updating a bundle without restarting karaf?

edit retag flag offensive close merge delete

1 answer

Sort by ยป oldest newest most voted
1

answered 2014-11-11 10:39:47 -0800

jgoodyear gravatar image

Hi,

May I ask if the bundle was a SNAPSHOT or full release version?

The bundle:watch command watches your local maven repo for updates for a given jar. Upon a new jar being deployed, it should update the local bundle.

http://karaf.apache.org/manual/latest/commands/bundle-watch.html

The manual way to do this is to issue update BundleID on the jar you're working on from the console.

edit flag offensive delete publish link more

Comments

Let's say I have modified a log message in addresstracker. When I mvn clean install at the addresstracker module level, I observe the address tracker bundle is restarted, only that the change to the log message is not observed. When I mvn clean install at the l2switch project level, the odl karaf distribution running is exited.

henryf ( 2014-11-11 10:49:43 -0800 )edit
Login/Signup to Answer

Question Tools

Follow
2 followers

Stats

Asked: 2014-11-06 15:34:19 -0800

Seen: 622 times

Last updated: Nov 11 '14