"start parameters" for RAP applications? [message #64868] |
Fri, 07 December 2007 09:31  |
Eclipse User |
|
|
|
Originally posted by: benjamin.wolff.web.de
hi!
i communicate with an oracle database in my rap app. until now, the
connection properties like address, username and pw are hardcoded in the
source. i need a solution to submit these properties from "outside" like a
conf file, for the case the connection data changes. is there a
possibility to use the web.xml for example, or do i get access to a file
in the web-app folder? the database connection starts when a user opens
the application, so i need a solution to get these properties during the
runtime.
i would be very grateful for any advice :).
mfg
-ben
|
|
|
|
|
|
|
Re: "start parameters" for RAP applications? [message #66052 is a reply to message #66031] |
Wed, 12 December 2007 13:41   |
Eclipse User |
|
|
|
Originally posted by: rherrmann.innoopract.com
Hi Ben,
good to hear you finally found a solution;) See my comments below.
Cheers,
Rüdiger
Ben W. wrote:
> thanks for the response, the links were quite helpful.
>
> after about 8hrs struggling with this issue i found this thread in the
> newsgroup:
> http://dev.eclipse.org/newslists/news.eclipse.technology.rap /msg00521.html
>
> i can't explain how i could miss this thread, i searched the newsgroup
> several times :P
>
> nevertheless, this solution works. when i find the time i will sum up
> this issue for the rap wiki.
That would be very kind:)
> but why do u think the contextClassLoaderParent=ccl option is
> "quick-and-dirty"? what could be possible side-effects? maybe the
These options are not very fine-grained. As long as you need a distinct
set of packages I would recommend the extendedFrameworkExports.
With the launch.ini settings you might export classes that you don't
want to, or "override" classes that are also exposed by bundles and
wonder why they aren't loaded.
> solution frank suggested in the link i posted above, with the helper
> class, is a more convenient method to tackle this problem. but this
> almost seems like too much "hacking" to me :PPP
>
> but i'm really thrilled to have a working solution so far.
> life can go on, for now :))))
>
>
>
|
|
|
Re: "start parameters" for RAP applications? [message #638102 is a reply to message #66052] |
Tue, 09 November 2010 17:38  |
Eclipse User |
|
|
|
Did this approach ever get written up? I'm having trouble getting it working.
I keep getting
javax.naming.NameNotFoundException: Name 'test-entry' is not bound in this Context
I've created a sample web app that is able to access it, but when I try to access it through a class in the RAP application, it doesn't work.
|
|
|
Powered by
FUDForum. Page generated in 0.05150 seconds