I run into a security exception when using a JApplet as JMS client. 
Does anyone has any suggestion on what code do I have to add? Right
now, I use the standard SwiftMQ procedure to find ConnectionFactory,
Topics, create Connections, Sessions and Publisher/Subscriber.
I am using JApplet, SwiftMQ server on the same machine.

Exception during load of httptunnel properties:
java.security.AccessControlException: access denied
(java.util.PropertyPermission swiftmq.httptunnel.debug read)
javax.naming.NamingException: unable to connect, exception =
javax.jms.JMSException: error creating socket connection to
localhost:4001, message: access denied (java.net.SocketPermission
127.0.0.1:4001 connect,resolve)
        at com.swiftmq.jndi.ContextImpl.<init>(ContextImpl.java:46)
        at
com.swiftmq.jndi.InitialContextFactoryImpl.getInitialContext(InitialContextFactoryImpl.java:19)
        at
javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:668)
        at
javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:246)
        at javax.naming.InitialContext.init(InitialContext.java:222)
        at javax.naming.InitialContext.<init>(InitialContext.java:198)
        at JMSTest.ConfigClient.initJMSConnection(ConfigClient.java:59)
        at JMSTest.ConfigClient.init(ConfigClient.java:34)
        at sun.applet.AppletPanel.run(AppletPanel.java:344)
        at java.lang.Thread.run(Thread.java:484)


------------------------------------------------------
SwiftMQ developers mailing list * http://www.swiftmq.com
To unsubscribe from this list, send an eMail to 
[EMAIL PROTECTED] and write in the body of your message:
UNSUBSCRIBE developers <your-email-address>
Archive: http://www.mail-archive.com/developers@mail.iit.de/




Reply via email to