Is there a way to specify a range of values (similar to perl) in the list
operator at the shell? e.g.
each [1..10] { start $it }
-Brad
Not afaik. One possible way to work around this syntax limitation
would be to define a command range and do something like:
each (range 1 10) { start $it }
Basically, you need a way to compute your set of values to iterate through.
On Mon, Dec 20, 2010 at 15:39, Brad Beck
It still isn't working.
Here's an excerpt of my .cfg file (none of the names in the file have any
characters other than [a-z, A-Z]:
myAppDbShowSql = false
myAppDbFormatSql = false
In the file where I get my service I have:
osgix:cm-properties id=myAppDatabaseProperties
This is a short example on how I did it with spring-dm should be
comparable:
!-- Configuration Admin Service Factory --
osgix:managed-service-factory
factory-pid=my.own.factory.pid
interface=my.own.interface
update-strategy=bean-managed update-method=setProperties
bean id=theBeanID
OK, another try
bean id=containerManaged class=ContainerManagedBean
osgix:managed-properties persistent-id=labX
update-strategy=container-managed/
property name=integer value=23/
/bean
this is the official example :)
I think the property (named integer here) is optional. Usually all
If you try to do managed component your configuration property name must
match field name, otherwise container will not update your bean. Both
spring-dm and aries blueprint works same. In your example the property named
integer have to use placeholder ${integer}. If you would like to use
different
Or use a cm:property-placeholder in combination with the reload flag
to reload the app if the config change, that's what i used inside
karaf, see:
http://svn.apache.org/repos/asf/karaf/trunk/shell/ssh/src/main/resources/OSGI-INF/blueprint/shell-ssh.xml
2010/12/20 Łukasz Dywicki