If you add the tile swc to your project and Mosaic namespace to your root tag (xmlns:mc="com.adobe.mosaic.core.*") then you should have access to the mosaicApp IApplication object.
Yes that is possible for Tile component but what if my object is not a tile component. I dont want to display component on UI so i am not defining it as Tile.
Having mosaicApp kind of variable in non Tile component will help in creating delegates, Front Controllers etc.
It sounds like you want to use a service (no UI) for your applications. Have you looked at the new services feature in Mosaic 9.5 (http://help.adobe.com/en_US/LiveCycleMosaic/9.0/createTile/WSe851854fd1e0856a14b90874128fe 1df2eb-8000.html). There are is also a sample for the implementation of services: http://help.adobe.com/en_US/livecycle/9.0/samples/Mosaic_StockMosaicService.html
Group Product Manager
In a way i want to have service which listents to message from other tiles. For service to listen to message i need have mosaicApp variable using i can execute following code.
Can i do that without inheriting Tile Class in service class.
I have resumed my work of exploring Mosaic as a tool for Enterprise RIA.So want to follow-up on this forum post.
Basically I want Moasic service to listen to Mosaic message and react to it.
Let me know how can i get this thing noticed by Adobe Product Manager for Mosaic. I have posted this on idea.adobe.com
This has been addressed in the next version of mosaic (after 220.127.116.11). Contact your account representative to get on the preview program.
Thanks for the quick response i will look at it.
As Don mentioned, in the upcoming release of Mosaic the service objects have access to the framework's context so it can send and receive messages.
If must use Mosaic 9.5 then you can still pass the context object into the service from a tile, but the timing becomes tricky. I wrote a blog article with one solution (not saying its the only, or the best) that you may want to look at: