Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » DTP » Property for "Connect every time the workbench is started" ?
Property for "Connect every time the workbench is started" ? [message #57254] Sun, 12 July 2009 21:32 Go to next message
Eclipse UserFriend
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 11:20 Go to previous messageGo to next message
Eclipse UserFriend
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 17:09 Go to previous message
Brian Fitzpatrick is currently offline Brian FitzpatrickFriend
Messages: 500
Registered: July 2009
Senior Member
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 11:20 Go to previous message
Yo is currently offline YoFriend
Messages: 10
Registered: July 2009
Junior Member
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 17:09 Go to previous message
Brian Fitzpatrick is currently offline Brian FitzpatrickFriend
Messages: 500
Registered: July 2009
Senior Member
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
Previous Topic:MS SQL Server 2005 and Data Source Explorer with integrated authentication
Next Topic:Sharing embedded Derby with other plugins
Goto Forum:
  


Current Time: Tue Apr 23 16:38:36 GMT 2024

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

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

Back to the top