Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » P2 » P2 Errors when two instances share same configuration
P2 Errors when two instances share same configuration [message #647240] Wed, 05 January 2011 10:16 Go to next message
Murthy Bhat is currently offline Murthy BhatFriend
Messages: 159
Registered: July 2009
Senior Member
Hello,

I have two versions of the same applications running in my system which share a common configuration location. So when i install new plugins in one of the application instances, the plugin gets installed in the second one too. Also the same result is replicated when i uninstall any of the plugins from one instance.

When I mean installation, i use the 'dropins' folder in the application folder to add and remove plugins.

It would be of great help if someone could help me out here.

Thanks in advance.

regards,
Murthy
Re: P2 Errors when two instances share same configuration [message #647256 is a reply to message #647240] Wed, 05 January 2011 12:33 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

On 01/05/2011 05:16 AM, Murthy wrote:
> Hello,
>
> I have two versions of the same applications running in my system which
> share a common configuration location.

If they share the same configuration area, how are you getting 2
different versions? Are they different application ids?

I think dropins, if it exists, comes from <configurationArea>/dropins
.... so as long as they share the same config area, they share the
dropins folder.

But is it just that you want to share common bundles? You could have 2
different configuration areas, and a common bundle pool.

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Platform_Expression_Framework
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Re: P2 Errors when two instances share same configuration [message #647289 is a reply to message #647256] Wed, 05 January 2011 15:11 Go to previous messageGo to next message
Murthy Bhat is currently offline Murthy BhatFriend
Messages: 159
Registered: July 2009
Senior Member
Yes I have two application with different Id's. The two applications share only some common plugins. And my usecase restricts me to use two different configuration areas. I am using the plugin "org.eclipse.equinox.p2.reconciler.dropins" for handling my dropins folder handling.

Any suggestions ?
Re: P2 Errors when two instances share same configuration [message #647298 is a reply to message #647289] Wed, 05 January 2011 15:26 Go to previous messageGo to next message
Paul Webster is currently offline Paul WebsterFriend
Messages: 6859
Registered: July 2009
Location: Ottawa
Senior Member

If they only share some common plugins, why share an install at all?

But I did find this, you can specify different dropins when you launch
each app:
http://www.eclipse.org/forums/index.php?t=msg&goto=62992 8&S=a7b7aeccb6584db3f2fc00efa483edde

Keep in mind, dropins is a best effort, silent failing, last resort for
apps that aren't using p2 properly, and works "that well" accordingly :-)

PW

--
Paul Webster
http://wiki.eclipse.org/Platform_Command_Framework
http://wiki.eclipse.org/Command_Core_Expressions
http://wiki.eclipse.org/Platform_Expression_Framework
http://wiki.eclipse.org/Menu_Contributions
http://wiki.eclipse.org/Menus_Extension_Mapping
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse .platform.doc.isv/guide/workbench.htm


Re: P2 Errors when two instances share same configuration [message #647423 is a reply to message #647298] Thu, 06 January 2011 09:03 Go to previous messageGo to next message
Murthy Bhat is currently offline Murthy BhatFriend
Messages: 159
Registered: July 2009
Senior Member
Thanks for the help.

But my use case asks me to have multiple custom dropins folder. So I extend "org.eclipse.equinox.p2.reconciler.dropins" to listen to multiple dropins folder.

This works alright until there are two instance of the application, sharing the same configuration [cant avoid this !]. The first instance is unaware of what the second one has added to the config pool.

Thanks in advance

Regards,
Murthy
Re: P2 Errors when two instances share same configuration [message #649392 is a reply to message #647423] Wed, 19 January 2011 05:16 Go to previous message
Murthy Bhat is currently offline Murthy BhatFriend
Messages: 159
Registered: July 2009
Senior Member
The problem seems to be with the ProfileSynchronizer.

Here is my usecase in detail

1.I have an rcp application called 'mail'
2.I export the product [mail.exe] to two different locations [say c:\mail1 and c:\mail2]
3.I make changes in both the mail.ini saying
-configuration @user.home/mailconfig/
4. I create fodler dropins in both c:\mail and c:\mail2
5.I copy a plugin menu1.jar in c:\mail\dropins and I copy plugins menu1.jar and menu2.jar into c:\mail2\dropins
6.I start c:\temp\mail \mail.exe the menu1 is picked correctly
7.I start c:\temp\mail2\mail.exe none of the two plugins are picked.
8.I start c:\temp\mail \mail.exe again, the old menu1 is uninstalled now.


It would be great if someone could please help me out here.

Thanks,
Previous Topic:How to notify changes in bundle cache?
Next Topic:Configure Framework persistent data location
Goto Forum:
  


Current Time: Sun Dec 21 21:47:51 GMT 2014

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

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