Hi Frank, Thank a lot for your answer. I will study that you have explained me and try to see it in action with sample.
Thank a lot! Regards Angelo 2011/5/25 Frank Appel <[email protected]> > Hi Angelo, > > > > sorry that I'm answering directly to your post and not via the mailing list > due to some stupid mistake of mine.. > > > > It have seen your posts on planet eclipse, but I hadn't the time to read > them all completely (blush). But from what I've seen so far this should give > anybody who's interested in getting started with RAP a good head start. > > > > To your question: > > > > Styles are registered with the servlet name in use. The default servlet > name is "rap" as in your example URLs. But using the branding mechanism > (configurable via extension points) you can register servlet names. Given > such different servlets you can register different styles for each servlet. > You would then access both with different URLs: http://127.0.0.1:4711/mailor > http://127.0.01:4711/hello in your case. The latter does omit the startup > parameter as I assume the according brandings are registered with default > entry points. > > > > But note: As you've already mentioned registering different servlet names > does not change the fact that the workbench is running as session singleton. > So there cannot live both applications in one session. This drawback is > inherited from the RCP code base since it was never assumed that > implementing the workbench as singleton would do any harm… > > > > > > Hope this helps > > Frank > > > > *------------* > > *Von: * > [email protected] im Auftrag von Angelo zerr < > [email protected]> > > *Gesendet: *Dienstag, 24. Mai 2011 16:39 > > *An: *[email protected] > > *Betreff: *[rap-dev] "My first steps > with Eclipse RAP" articles > > > > Hi RAP Team, > > I would like tell you that I'm writing articles about RAP that I have > called "My first steps with Eclipse > RAP<http://angelozerr.wordpress.com/about/rap/>". > I explain step by step how generate RAP Hello World and explain the RAP > architecture. > Hope you will like it. > > I'm writing the step5 where I will explain the RAP generated code. When I > have studied the IEntryPoint, I have tested to start 2 RAP Application in > the same OSGi container "RAP Hello World" and "Mail RAP Application" > When I start the RAP launch, it opens the URL > http://127.0.0.1:1508/rap?startup=mail with Mail RAP Application. When I > try to access to the http://127.0.0.1:1508/rap?startup=hello to opes "RAP > Hello World", it opens Hello World BUT with Mail styles. > I suppose that it's normal, because RAP Application is a singleton and > Workbench should be a singleton too. > > But I would like be sure with that and give well explanation in my > articles. For instance, explain that OSGi container (Equinox) can start ONLY > one RAP Application, tell that it's not possible to start several RAP > application in the same equinox and see the (styles) problem in action. But > before telling that, I would like be sure with that. > > Thank a lot for your help. > > Regards Angelo > > >
_______________________________________________ rap-dev mailing list [email protected] https://dev.eclipse.org/mailman/listinfo/rap-dev
