Re: Re: Re: Re: Re: Re: Re: Re: Creating a Service in JONAS
ajinkya prabhune <[email protected]>
| Newsgroups | gmane.comp.java.objectweb.jonas |
|---|---|
| Message-ID | <[email protected]> |
Hi, No no. 1. I made a service tried following the steps given in the Creating a JOnAS Service on the JOnAS website. (followed all the steps like putting the deployment plan in url-internal , dropping the Service Bundle in Maven2-internal) *2. It dint work so I dropped it in the Deploy folder and made a client bundle to access the service .* 3. It all worked cos I saw traces on the cmd prompt while starting the JOnAS server. 4. No the issue is with Creating the service and trying to display on JOnAS admin so it can be seen which will make others understand that there is a service created by me and they can use it. Thanks I hope u get my point... In short its related to exposing my service to others.... and after following Creating the Service guide it dint show so I am confused... Thanks for giving ur time for my work its gonna be very helpful in the future implementations. Thanks On Wed, Jan 12, 2011 at 2:43 PM, Guillaume Sauthier < [email protected]> wrote: > > > Le 12/01/2011 14:38, ajinkya prabhune a écrit : > > > > Hi, > > yes I made the deployment plan and put it in the url-internal folder... > also updated the jonas.properties file > But the Service did not get registered and I dont know why ? > > > You lost me here ... > You said the service is not registered, but before you also said that you > have seen the traces of your service starting... > > > > and thats the whole confusion... because > I want to create a service which can be used by my colleagues and I want to > display my Service name > so that others can understand that there is a Service which they can use. > > > What will do you service ? > --G > > > > > Thank you > > On Wed, Jan 12, 2011 at 1:17 PM, Guillaume Sauthier < > [email protected]> wrote: > >> >> >> 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]> 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]> 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 >> >> > > > -- > Thank you and Regards > Ajinkya Prabhune > > -- Thank you and Regards Ajinkya Prabhune