OpenJMS on Android
"Kuhn Michael" <[email protected]> Fri, 14 Mar 2008 12:17:32 +0100
| Newsgroups | gmane.comp.java.openjms.user |
|---|---|
| Message-ID | <[email protected]> |
--===============1724276425==
Content-Type: multipart/alternative;
boundary="----=_Part_11221_20436549.1205493452220"
------=_Part_11221_20436549.1205493452220
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
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
*****
------=_Part_11221_20436549.1205493452220
Content-Type: text/html; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
Hi,<br><br>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):<br>
<br>D/dalvikvm( 1112): Exception Ljava/lang/ClassNotFoundException; from PathClassLoader.java:205 not caught locally<br>D/dalvikvm( 1112): NOTE: loadClass 'org.exolab.jms.jndi.InitialContextFactory' 0x40018950 threw an exception<br>
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<br>
<br>Does anybody know, how to circumvent this ClassNotFoundException?<br><br>I've included all the jar files listed on <a href="http://openjms.sourceforge.net/usersguide/jars.html">http://openjms.sourceforge.net/usersguide/jars.html</a> 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??)?<br>
<br>Any help would be greatly appreciated!<br><br>Thanks,<br><br>Michael<br><br>Code (xyz denote the address of the JMS server):<br>*****<br> Hashtable properties = new Hashtable();<br> properties.put(Context.INITIAL_CONTEXT_FACTORY, <br>
"org.exolab.jms.jndi.InitialContextFactory");<br> properties.put(Context.PROVIDER_URL, "tcp://xyz:3035/");<br> <br> Context context = new InitialContext(properties); // Causes ClassNotFoundException<br>
*****<br><br><br>
------=_Part_11221_20436549.1205493452220--
--===============1724276425==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
-------------------------------------------------------------------------
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/
--===============1724276425==
Content-Type: text/plain; charset="us-ascii"
MIME-Version: 1.0
Content-Transfer-Encoding: 7bit
Content-Disposition: inline
_______________________________________________
openjms-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/openjms-user
--===============1724276425==--