Re: OpenJMS on Android
"mcelep.de" <[email protected]> Thu, 6 Nov 2008 05:42:57 -0800 (PST)
| Newsgroups | gmane.comp.java.openjms.user |
|---|---|
| Message-ID | <[email protected]> |
Hi, As an alternative solution I can recommend you to try Softwired's iBus//Mobile which has JMS based library client libraries specifically designed for Android as well jme and .net cf. An evaluation copy of Softwired's iBus Mobile is available for download from our DEV ZONE [See the product .html for product features and technical specifications] http://www.softwired.ch/insidesoftwired/. Even if you get the OpenJMS or another JMS implementation running on Android, the results will not be satisfactory since most of them are designed for the wired networks and can not handle the disconnected operation & other problems of the wireless networks gracefully. Cheers Kuhn Michael wrote: > > Hi, > > has somebody used OpenJMS on Android (the mobile platform)? I wonder > whether > this is possible without much effort. I've tried to write a JMS client but > ended up with a ClassNotFoundException when trying to get the Context (see > code below): > > D/dalvikvm( 1112): Exception Ljava/lang/ClassNotFoundException; from > PathClassLoader.java:205 not caught locally > D/dalvikvm( 1112): NOTE: loadClass ' > org.exolab.jms.jndi.InitialContextFactory' 0x40018950 threw an exception > W/Exception( 1112): javax.naming.NoInitialContextException: Cannot > instantiate class: org.exolab.jms.jndi.InitialContextFactory. Root > exception is java.lang.ClassNotFoundException: > org.exolab.jms.jndi.InitialContextFactory > > Does anybody know, how to circumvent this ClassNotFoundException? > > I've included all the jar files listed on > http://openjms.sourceforge.net/usersguide/jars.html in my project. Also, > I've switched off all firewalls and it seems that I can reach the JMS > server > on port 3035 (I've tried opening a socket to it, which works). Is there > maybe a way to get the Context without using JNDI (and, could this > help??)? > > Any help would be greatly appreciated! > > Thanks, > > Michael > > Code (xyz denote the address of the JMS server): > ***** > Hashtable properties = new Hashtable(); > properties.put(Context.INITIAL_CONTEXT_FACTORY, > "org.exolab.jms.jndi.InitialContextFactory"); > properties.put(Context.PROVIDER_URL, "tcp://xyz:3035/"); > > Context context = new InitialContext(properties); // Causes > ClassNotFoundException > ***** > > ------------------------------------------------------------------------- > This SF.net email is sponsored by: Microsoft > Defy all challenges. Microsoft(R) Visual Studio 2008. > http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/ > _______________________________________________ > openjms-user mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/openjms-user > > -- View this message in context: http://www.nabble.com/OpenJMS-on-Android-tp16049211p20357483.html Sent from the OpenJMS - User mailing list archive at Nabble.com. ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/