Property for "Connect every time the workbench is started" ? [message #57254] |
Sun, 12 July 2009 17:32  |
Eclipse User |
|
|
|
Originally posted by: yoduderoo.netscape.net
Hi,
I am programmatically creating a database connection. Works fine.
However, I can't figure out which property to pass so that the db is
connected every time the workbench is started.
Specifically, I am referring to the Properties instance ("prop") in the
snippet below :
ProfileManager.getInstance().createProfile(
profileName,
"Description store",
DerbyProfileFactory.PROFILE_ID,
prop);
What is the property (which I presumably would pass in the "prop"
instance) for connecting at workbench start-up?
Thanks,yo
|
|
|
Re: Property for "Connect every time the workbench is started" ? [message #57280 is a reply to message #57254] |
Mon, 13 July 2009 07:20   |
Eclipse User |
|
|
|
Originally posted by: yoduderoo.netscape.net
Hi,
In the meantime, looks to me like there is no property. Instead,
auto-connect is a boolean argument to two of the three
ProfileManager.createProfile() methods and the
ProfileManager.modifyProfile() method. So I set that boolean to true,
and the profile sets auto-connect.
Only thing, I don't understand what a "parent profile" is. It is
required in the createProfile() methods where the autoConnect argument
occurs. Anybody know what a parent profile is?
Thanks, yo
Yo wrote:
> Hi,
> I am programmatically creating a database connection. Works fine.
>
> However, I can't figure out which property to pass so that the db is
> connected every time the workbench is started.
>
> Specifically, I am referring to the Properties instance ("prop") in the
> snippet below :
>
> ProfileManager.getInstance().createProfile(
> profileName,
> "Description store",
> DerbyProfileFactory.PROFILE_ID,
> prop);
>
> What is the property (which I presumably would pass in the "prop"
> instance) for connecting at workbench start-up?
>
> Thanks,yo
|
|
|
Re: Property for "Connect every time the workbench is started" ? [message #57359 is a reply to message #57280] |
Mon, 20 July 2009 13:09  |
Eclipse User |
|
|
|
Yo wrote:
> Only thing, I don't understand what a "parent profile" is. It is
> required in the createProfile() methods where the autoConnect argument
> occurs. Anybody know what a parent profile is?
Hi Yo...
The parent profile is used when you have a profile as a separate profile
repository. It's not really needed unless you're storing your profiles
in a different repository.
--Fitz
|
|
|
Re: Property for "Connect every time the workbench is started" ? [message #596067 is a reply to message #57254] |
Mon, 13 July 2009 07:20  |
Eclipse User |
|
|
|
Hi,
In the meantime, looks to me like there is no property. Instead,
auto-connect is a boolean argument to two of the three
ProfileManager.createProfile() methods and the
ProfileManager.modifyProfile() method. So I set that boolean to true,
and the profile sets auto-connect.
Only thing, I don't understand what a "parent profile" is. It is
required in the createProfile() methods where the autoConnect argument
occurs. Anybody know what a parent profile is?
Thanks, yo
Yo wrote:
> Hi,
> I am programmatically creating a database connection. Works fine.
>
> However, I can't figure out which property to pass so that the db is
> connected every time the workbench is started.
>
> Specifically, I am referring to the Properties instance ("prop") in the
> snippet below :
>
> ProfileManager.getInstance().createProfile(
> profileName,
> "Description store",
> DerbyProfileFactory.PROFILE_ID,
> prop);
>
> What is the property (which I presumably would pass in the "prop"
> instance) for connecting at workbench start-up?
>
> Thanks,yo
|
|
|
Re: Property for "Connect every time the workbench is started" ? [message #596092 is a reply to message #57280] |
Mon, 20 July 2009 13:09  |
Eclipse User |
|
|
|
Yo wrote:
> Only thing, I don't understand what a "parent profile" is. It is
> required in the createProfile() methods where the autoConnect argument
> occurs. Anybody know what a parent profile is?
Hi Yo...
The parent profile is used when you have a profile as a separate profile
repository. It's not really needed unless you're storing your profiles
in a different repository.
--Fitz
|
|
|
Powered by
FUDForum. Page generated in 0.03886 seconds