Re: Re: Re: Re: Re: Creating a Service in JONAS

Guillaume Sauthier <[email protected]>
Newsgroups gmane.comp.java.objectweb.jonas
Organization Objectweb Consortium
Message-ID <[email protected]>

Le 11/01/2011 22:52, ajinkya prabhune a écrit :
> Hi,
> Thanks for such a fast and precise reply.
>
> So now when I put my services in deploy folder they work..
> But then is there any need to follow the Guide Creating a Service in 
> JOnAS ? (Also if I have followed does it show up on Command Prompt 
> while loading)
> So can I henceforth just drop my services in the Deploy folder... ?

No a JOnAS service has to have a deployment plan and should be activated 
with a property in the jonas.properties file.

But maybe you don't want to do a JOnAS service but just a simple iPOJO 
component ?
What do you want to achieve in the end ?
--G

>
>
>
>
> Thank you and Regards
>
>
>
> On Tue, Jan 11, 2011 at 5:07 PM, Guillaume Sauthier 
> <[email protected] 
> <mailto:[email protected]>> wrote:
>
>
>
>     Le 11/01/2011 15:30, ajinkya prabhune a écrit :
>>     Hi ,
>>
>>     First as u suggested I dropped the Bundles in deploy directory of
>>     JonasBase and they worked fine
>>     But is there a way to view our deplyed bundles in JOnAS ?
>
>     Apart using the OSGi shell, there is actually no way to see the
>     deployed bundles.
>     Next JOnAS version (5.2) will offer a Flex OSGi console for that
>     use case, but it's not currently integrated.
>
>
>>     cos I was able to see the sys.out.println(); statements on the
>>     cmd prompt.
>>
>>     But then I wrote the metadata.xml and followed the steps .
>>     1. jonas.properties file was updated
>>     2. the bundle was added on maven directory.
>>     3. the same name .xml file was created in url directory
>>
>>     But when I opened the JOnAS admin on localhost:9000 I was not
>>     able to view my service
>>     also while the JOnAS was loading I dint see my service deployed..
>
>     jonasAdmin only shows services that provides a MBean.
>     As the simple service example is just an example, it does not have
>     such a capability.
>     So you will not see your service in jonasAdmin.
>
>
>
>>
>>     Thank you very much...
>>     Also I tried to svn checkout the url u had given but it failed.
>>     dont know why ?
>
>     Telling us the error you get may help ...
>
>     --G
>
>
>>
>>     Regards
>>
>>
>>     On Tue, Jan 11, 2011 at 2:26 PM, Guillaume Sauthier
>>     <[email protected]
>>     <mailto:[email protected]>> wrote:
>>
>>
>>
>>         Le 11/01/2011 13:31, ajinkya prabhune a écrit :
>>>
>>>
>>>         Hello All,
>>>
>>>         For last many days I am trying to understand JONAS and how
>>>         it works.
>>>         I was following , Create a New Service article on JOnAS home
>>>         page.
>>>
>>>         But after following all the details I am not able to see my
>>>         Service running when I start JOnAS .
>>>         Could someone explain me process ?
>>
>>         What are you expecting to see ?
>>         Is your bundle started ?
>>         Do you have a deployment plan or did you just drop your
>>         bundle in deploy/ dir ?
>>         What is you metadata.xml ?
>>
>>         Did you start with just the empty sample I pointed to you ?
>>         If so, did you try to just add a System.out statement when
>>         the component is started ?
>>
>>
>>>
>>>         Also JOnAS has Apache Felix as its OSGi Framework , Can I
>>>         use Eclipse Equinox as the Framework and if yes How ?
>>
>>         At the moment, you cannot easily change the underlying OSGi
>>         framework, but theoretically JOnAS should work also with
>>         Equinox...
>>
>>         --G
>>
>>
>>>
>>>         Thank you all...
>>>         -- 
>>>         Thank you and Regards
>>>         Ajinkya Prabhune
>>>
>>
>>
>>
>>     -- 
>>     Thank you and Regards
>>     Ajinkya Prabhune
>>
>
>
>
> -- 
> Thank you and Regards
> Ajinkya Prabhune
>
Guillaume_Sauthier.vcf (text/x-vcard, 387 B)
begin:vcard
fn:Guillaume Sauthier
n:Sauthier;Guillaume
org:<a href="http://www.ow2.org"><img title="OW2" alt="OW2 Consortium" border="0" src="http://www.ow2.org/xwiki/bin/skin/XWiki/DefaultSkin/logoOW2.png" /></a>
adr:;;;;;;France
email;internet:[email protected]
title:<a href="http://jonas.ow2.org">JOnAS Application Server</a>
url:http://jonas.ow2.org
version:2.1
end:vcard
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.