Skip to main content



      Home
Home » Eclipse Projects » Remote Application Platform (RAP) » Configuration parameters(Configuration parameters)
Configuration parameters [message #851877] Sat, 21 April 2012 08:10 Go to next message
Eclipse UserFriend
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 05:42 Go to previous messageGo to next message
Eclipse UserFriend
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 08:56 Go to previous message
Eclipse UserFriend
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: Mon Apr 28 02:17:24 EDT 2025

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

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

Back to the top