Saturday, February 25, 2012

XMPP/GTalk Shell Connector for Apache Karaf / Felix GoGo

Karaf-felix-gogo-xmpp-shell

Connecting Felix GoGo Shell through XMPP / Google Talk ?

I did a pretty interesting experiment (and will be useful at least to myself) connecting the Felix GoGo Shell in Apache Karaf/ServiceMix to XMPP/Google Talk Instant Messaging Protocol via Smack library. I spent almost 24 hours just for this. The results is pretty amazing though. :-)

I also spent quite some time to make ANSI colors sort of "working". It's not strictly correct, but at least it's not entirely boring.

What do you think ?

UPDATE: The OSGi Blueprint-compatible XMPP Shell connector is available as open source with Apache License 2.0 at https://github.com/soluvas/com.soluvas.shell.xmpp

Recommended Resources
For more in-depth explanation on OSGi, I highly recommend OSGi in Action: Creating Modular Applications in Java.

30 comments:

  1. This sounds very interesting. Is there a way to make it autoconnect (if have vysper in my stack)? I must check it out next weekend. Nice idea. Do you think I can make it work on equinox with gogo?

    ReplyDelete
  2. Thomas :

    Thank you for your encouragement.

    Current version already has autoConnect feature (but I don't think it will auto-reconnect or retry when connection breaks). I've just updated the README to reflect this. https://github.com/soluvas/com.soluvas.shell.xmpp

    About Equinox, or more like Eclipse Virgo Kernel, I think it should work, provided the necessary bundles are given. However I'm using Aries Blueprint and Aries Blueprint CM implementation, I'm not sure if Eclipse Gemini's implementation is compatible. There may need to be changes. The other dependencies are simply smack/smackx. (I don't think smackx is needed at this point)

    Other TODOs are security and privileged operations. Right now no privilege switch is done, and commands are accepted from everybody. My plan is to "whitelist" some XMPP IDs or associate Karaf users with XMPP IDs. So there's no need to "login", simply by chatting using the specified ID is sufficient. This means the XMPP Server must be "trusted" to prevent ID spoofing.

    ReplyDelete
    Replies
    1. When compared to Windows 7 Home Premium Product Key, Windows 7 Professional Product Key is outstanding. When will Microsoft ever learn? Keep it simple, attractive, and easy to use. Windows 8 Professional Product Key Most computer users just want the system to work. Windows 7 does this.

      Delete
  3. And of course... contributions are very much more than welcome. :-)

    ReplyDelete
    Replies
    1. Concise package money, bare nothing, but it is a brand of coat of paint material light, the super invincible joker, very street van Cambridge satchel bag.
      Bag bag tassel part is made of genuine leather oh, very thick soft, package itself is the quality of the skin of PU, quality is good. Much super tassel walking around up born swaying posture, very attract eyeball oh.

      Europe and a bag of wind, appearance is very simple, less is more big oh. Bag body skeleton complex moment modelling, a bit cool taste.
      Give people a feeling of very warm is the purpose of Cambridge satchel company, this season it continued the popular bright colour elements, such as pink fluro and yellow fluro. It is so fashion and beautiful. You can also embossing your names on your bag, you will like it very much.

      Delete
  4. Very absorbing article. Esp. the stands acclimated to abutment the head. I would not accept noticed it on my own. Will accept to attending anxiously at old photographs to see this feature.


    Buy RS Gold
    Buy MapleStory Mesos

    ReplyDelete
  5. The situation on insurance policy just isn't crystal clear. Third party provision is not definitely worried about volvo vida dice bluetooth these items however, if you've got breakdown deal with then it would help your cause for those who have automobile diagnostic equipment.

    ReplyDelete
  6. Most ladies like to be able to access stylish outfits, however, if you're employed it is actually hard to get to the outlets just before closing time. That leaves the weekend which http://www.swanmarks.com/Dresses-cid7 happens to be ordinarily taken up carrying out things with the young children, catching up along with the housework or heading out. So one of several greatest approaches to find one thing new to wear is always to boot up the pc and glimpse for women's trend on the net.

    ReplyDelete
  7. Christmas Day is coming. How do you want to spend the vacation? I am a big fan of MMOPRGs.Since the outside is very cold, I'd like to stay home and play wow which is hot now. Cheap WoW gold is vailable in http://www.gold4power.com If you want some, you can have a try.

    ReplyDelete
  8. I want to extend my greatest appreciation with the article you post me really love to read it

    ReplyDelete
  9. It's really beautiful work. Thanks for this kind of stuff.I mean I am totally impressed.Hope to see more updated work here.I have to say, it is very informative.

    ReplyDelete
  10. 1) Always keep huge stocks on diablo 3 gold all servers

    2) Instant delivery on diablo 3 items

    3) Available 7/24 customer support for any and all questions

    4) Smooth and secure buy diablo 3 gold transactions, guarantee delivery 100% safe on our indiablo3gold.com site

    5) Please ensure all the information you filled is correct.

    Get more : http://www.indiablo3gold.com/

    ReplyDelete
  11. Windows 8 is in truth a lot less windows 7 enterprise activation key well-liked than Home windows seven, that has extremely superior acceptance scores. But it is windows 7 enterprise activation key significantly far more common than Home windows Vista, which was nicely and truly hated.

    ReplyDelete
  12. Hi, thank you for sharing this great info. Was just browsing through the net in my office and happened upon your blog. It is really very well written and quit comprehensive in explaining with a very simple language.

    ReplyDelete
  13. As Company Week famous back again in 1998, Ballmer "earned his stripes by setting up Microsoft's income procedure cheap windows 7 professional activation key right into a major-league pressure in corporate computing." And look what that concentration yielded: 5 generations of Windows servers and clients, SQL Server, Dynamics, Exchange,

    ReplyDelete
  14. I also spent quite some time to make ANSI colors sort of "working". It's not strictly correct, but at least it's not entirely boring.WOW Gold Kaufen
    World of Warcraft Gold

    ReplyDelete
  15. Nice post having excellent contents.This is exactly what I've been looking for.Thank you very good. Custom Essays

    ReplyDelete
  16. Thanks for your excellent posting. I really enjoyed reading this blog.

    ReplyDelete
  17. I wanted to thank you for this great read!! I definitely enjoyed every little bit of it
    Airport Taxi

    ReplyDelete
  18. Great work by the blogger this blog really help me.

    ReplyDelete
  19. Great work by the blogger this blog really help me. Have a good day! Thanks for sharing.
    Toronto Airport Taxi

    ReplyDelete
  20. Thanks for your excellent posting. I really enjoyed reading this blog.
    Custom Essays

    ReplyDelete
  21. I found your blog while searching in search engines, and it is a wonderful one.

    ReplyDelete
  22. Great work by the blogger this blog really help me. Have a good day! Thanks for sharing.
    SEO Company

    ReplyDelete
  23. I found many interesting things from this site. It helps me many way.

    ReplyDelete
  24. Hi There,
    Thank you for sharing the knowledgeable blog with us I hope that you will post many more blog with us:-
    As the world is moving towards a more sustainable future, industries are now looking for more natural methods. On such industry is the water supply and water treatment industry. Coconut Shell Activated
    Contact US
    Number: +1 (612) 208-7112
    E-mail: info@researchchemicalshops.com

    Click here for more information:-
    MORE DETAILS......

    ReplyDelete
  25. مركز التسوق أو المول التجاري هو مبني أو مجمع مغطى جزئيا أو كليا مولات الرياض ويشتمل المول على مراكز ترفيهية ومتاجر متنوعة تضم كافة السلع الإستهلاكية بالإضافة إلى المطاعم المتعددة والكافيهات ومواقف السيارات دليل محلات الرياض بارك مول او دليل محلات الفيصلية مول الرياض او دليل محلات غرناطة مول الرياض او دليل محلات خريص مول الرياض او دليل محلات اطياف مول الرياض  وبدأ تاريخ مراكز التسوق كفن معماري استهلاكي منذ 60 عاماً ليتطور ويصل إلى ماوصل إليه، ولتكون المولات معالم بارزة في بعض الدول، وعامل جذب سياحي هام الحاجة أم الإختراع!، لم يكن ظهور مراكز التسوق صدفة، بل ظهرت تلبية لحاجات المستهلكين، والمول صُمم لإستهواء المتسوق لشراء كل ماهو جديد ومتنوع مجتمع تحت سقف واحد

    ReplyDelete