Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Virgo » [Solved]Load Class from Workspace
[Solved]Load Class from Workspace [message #667390] Thu, 28 April 2011 13:29 Go to next message
Tidus is currently offline TidusFriend
Messages: 16
Registered: March 2011
Junior Member
Hello,

I just wanted to know how to do a loadclass with classname writed on workspace?
For example, I have a class foo in virgo Workspace.
From my web application, I want to do a loadclass and use it.
I use a plugin which need to do a loadclass from there but it throws a NotFound exception.

Thanks Smile

[Updated on: Thu, 28 April 2011 21:45]

Report message to a moderator

Re: Load Class from Workspace [message #667400 is a reply to message #667390] Thu, 28 April 2011 14:26 Go to previous messageGo to next message
Glyn Normington is currently offline Glyn NormingtonFriend
Messages: 1222
Registered: July 2009
Senior Member
The web application needs to be wired to the bundle which provides the class you want to load. The usual way to do this is in OSGi is for the web application to contain an import-package header in its manifest.
Re: Load Class from Workspace [message #667417 is a reply to message #667390] Thu, 28 April 2011 15:19 Go to previous messageGo to next message
Tidus is currently offline TidusFriend
Messages: 16
Registered: March 2011
Junior Member
Sorry but I don't understand.
Could you explain more?
Re: Load Class from Workspace [message #667422 is a reply to message #667417] Thu, 28 April 2011 15:31 Go to previous messageGo to next message
Glyn Normington is currently offline Glyn NormingtonFriend
Messages: 1222
Registered: July 2009
Senior Member
I would advise you to invest spend a day or two obtaining a thorough grounding in OSGi.

You can download the core specification from the OSGi Alliance web site and there are basic tutorials available there too.

Various books are available. I have just purchased OSGi in Action from Amazon.

If you concentrate on the modularity layer of OSGi, that should be sufficient to understand the basics for the problem you are looking at.

I don't want to give you partial information here and end up short-changing you.
Re: Load Class from Workspace [message #667460 is a reply to message #667390] Thu, 28 April 2011 21:45 Go to previous message
Tidus is currently offline TidusFriend
Messages: 16
Registered: March 2011
Junior Member
Solved.
Thanks
Previous Topic:Dm-server vs Virgo
Next Topic:Scalablity/Peformance Benchmarks?
Goto Forum:
  


Current Time: Tue Nov 25 23:38:34 GMT 2014

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

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