Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Configuration parameters(Configuration parameters)
Configuration parameters [message #851877] Sat, 21 April 2012 12:10 Go to next message
Bertin Kiekebosch is currently offline Bertin KiekeboschFriend
Messages: 330
Registered: August 2011
Senior Member
Hi,

i must be overlooking something in the documentation but I just can't find out how to set configuration parameters. For example I want the database connection parameters to be in an external file but can't find in what file to put them, where to put the file and how to read these parameters inside my Rap application.

I already tried a lot but it still does not work for me.


Regards Bertin
Re: Configuration parameters [message #852773 is a reply to message #851877] Sun, 22 April 2012 09:42 Go to previous messageGo to next message
Ralf Sternberg is currently offline Ralf SternbergFriend
Messages: 1313
Registered: July 2009
Senior Member

Hi Bertin,

Are you looking for a way to set Java properties? Just a few days ago,
there was a discussion on this forum titled "Can't set Java properties
for RAP app" that brought up some insights.

If your database system expects a configuration file, you should check
this system's documentation for where this file is expected.

Regards, Ralf

--
Ralf Sternberg

Twitter: @EclipseRAP
Blog: http://eclipsesource.com/blogs/

Professional services for RAP and RCP?
http://eclipsesource.com/services/rap/
Re: Configuration parameters [message #857317 is a reply to message #852773] Thu, 26 April 2012 12:56 Go to previous message
Bertin Kiekebosch is currently offline Bertin KiekeboschFriend
Messages: 330
Registered: August 2011
Senior Member
Hi,

we solved the problem. In the launc.ini, located in the WEB-INF you can set the values like database.url=jdbc:mysql://myServer:1234/testdb

Then in the start method of the activator class you can call

String url = context.getProperty("database.url");

Regards Bertin

Previous Topic:PDE incubator: patch proposal
Next Topic:Multiple RAP applications within <iframe>
Goto Forum:
  


Current Time: Tue Nov 30 21:50:12 GMT 2021

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

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

Back to the top