Skip to main content



      Home
Home » Eclipse Projects » Eclipse Scout » Use the config.ini for parameterized delivery
Use the config.ini for parameterized delivery [message #541661] Tue, 22 June 2010 01:53 Go to next message
Eclipse UserFriend
Inside of the config.ini in the server it is possible to override the member variables of services.

For example:

com.bsiag.mnet.server.services.common.sql.SqlService#directJ dbcConnection=true


If the service SqlService has a setter method for the member directJdbcConnection then the member has at runtime the value true.

With Scout Eclipse this works for all classes which extends AbstractService

For other classes it must be done by yourself for example with the class FilterConfigInjection at startup.
Re: Use the config.ini for parameterized delivery [message #544504 is a reply to message #541661] Fri, 02 July 2010 21:35 Go to previous messageGo to next message
Eclipse UserFriend
..ini, does that mean, the server or Scout as a whole is limited to Windows?!
Re: Use the config.ini for parameterized delivery [message #545061 is a reply to message #544504] Tue, 06 July 2010 10:36 Go to previous messageGo to next message
Eclipse UserFriend
every Eclipse installation contains a file
[yourEclipseDir/configuration/config.ini] where bundle properties can be
defined. This file has nothing to do with any underlying OS.

No, Scout applications are not operating system deptendent. At
EclipseCon 2010 we did a tutorial covering mac, linux and windows os.

Cheers Andreas




Werner Keil wrote:
> ..ini, does that mean, the server or Scout as a whole is limited to
> Windows?!
Re: Use the config.ini for parameterized delivery [message #545111 is a reply to message #545061] Tue, 06 July 2010 11:57 Go to previous messageGo to next message
Eclipse UserFriend
Well most applications use the standard properties like OSGi, etc.
Is there a complete list of those Scout extends, at least on the server?

Thanks,
Werner
Re: Use the config.ini for parameterized delivery [message #545112 is a reply to message #545111] Tue, 06 July 2010 12:29 Go to previous messageGo to next message
Eclipse UserFriend
Basically every service member having a setter method can be initialized
with a config.ini property.
e.g.

package com.bsiag.services;
public class MyService extends AbstractService{
private boolean m_foo;
private String m_bar;

public void setFoo(boolean foo){
m_foo = foo;
}

public void setBar(String bar){
m_bar = bar;
}
}

config.ini:
com.bsiag.services.MyService#foo = true
com.bsiag.services.MyService#bar = aValue



Werner Keil wrote:
> Well most applications use the standard properties like OSGi, etc.
> Is there a complete list of those Scout extends, at least on the server?
>
> Thanks,
> Werner
Re: Use the config.ini for parameterized delivery [message #545118 is a reply to message #545112] Tue, 06 July 2010 12:58 Go to previous message
Eclipse UserFriend
Interesting, thanks for the update.

I'm sure this should work well for server-side Eclipse applications, but I
can't imagine client applications making regular use of it.
Most apps store their properties elsewhere, e.g. in .meta-inf, even if
they're not primarily IDE style.

STEM does, and that way projects are more easily to use across teams. You
wouldn't want to copy the config.ini from one system to another.
Re: Use the config.ini for parameterized delivery [message #581381 is a reply to message #544504] Tue, 06 July 2010 10:36 Go to previous message
Eclipse UserFriend
every Eclipse installation contains a file
[yourEclipseDir/configuration/config.ini] where bundle properties can be
defined. This file has nothing to do with any underlying OS.

No, Scout applications are not operating system deptendent. At
EclipseCon 2010 we did a tutorial covering mac, linux and windows os.

Cheers Andreas




Werner Keil wrote:
> ..ini, does that mean, the server or Scout as a whole is limited to
> Windows?!
Re: Use the config.ini for parameterized delivery [message #581401 is a reply to message #545061] Tue, 06 July 2010 11:57 Go to previous message
Eclipse UserFriend
Well most applications use the standard properties like OSGi, etc.
Is there a complete list of those Scout extends, at least on the server?

Thanks,
Werner
Re: Use the config.ini for parameterized delivery [message #581419 is a reply to message #545111] Tue, 06 July 2010 12:29 Go to previous message
Eclipse UserFriend
Basically every service member having a setter method can be initialized
with a config.ini property.
e.g.

package com.bsiag.services;
public class MyService extends AbstractService{
private boolean m_foo;
private String m_bar;

public void setFoo(boolean foo){
m_foo = foo;
}

public void setBar(String bar){
m_bar = bar;
}
}

config.ini:
com.bsiag.services.MyService#foo = true
com.bsiag.services.MyService#bar = aValue



Werner Keil wrote:
> Well most applications use the standard properties like OSGi, etc.
> Is there a complete list of those Scout extends, at least on the server?
>
> Thanks,
> Werner
Re: Use the config.ini for parameterized delivery [message #581433 is a reply to message #545112] Tue, 06 July 2010 12:58 Go to previous message
Eclipse UserFriend
Interesting, thanks for the update.

I'm sure this should work well for server-side Eclipse applications, but I
can't imagine client applications making regular use of it.
Most apps store their properties elsewhere, e.g. in .meta-inf, even if
they're not primarily IDE style.

STEM does, and that way projects are more easily to use across teams. You
wouldn't want to copy the config.ini from one system to another.
Previous Topic:Use the config.ini for parameterized delivery
Next Topic:Scout and E4?
Goto Forum:
  


Current Time: Fri Apr 18 16:23:29 EDT 2025

Powered by FUDForum. Page generated in 0.05075 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top