| Author | 
		  Message
		 | 
		
		  | mq newbie | 
		  
		    
			  
				 Posted: Tue Aug 09, 2005 11:23 am    Post subject: Problems with using JMS in an applet | 
				     | 
			   
			 
		   | 
		
		
		   Newbie
 
 Joined: 08 Aug 2005 Posts: 3
  
  | 
		  
		    
			  
				Hello 
 
 
I have some problems with using JMS in an applet. My applet shall send messages to a message broker using MQ and JMS. 
 
Sending messages using MQ works fine, but when I try to send a message by using JMS always a java.security exception is thrown --> java.security.AccessControlException: access denied (java.util.PropertyPermission user.name read)
 
 
I have no explanation for this. The applet is signed and MQ works, so why this security exception is thrown?
 
 
does anybody can help me? | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | wschutz | 
		  
		    
			  
				 Posted: Tue Aug 09, 2005 11:26 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Knight
 
 Joined: 02 Jun 2005 Posts: 3316 Location: IBM (retired) 
  | 
		  
		    
			  
				Is this applet being server from a web server?  I seem to remember that you can only connect back to the serving IP address..... _________________ -wayne | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | vennela | 
		  
		    
			  
				 Posted: Tue Aug 09, 2005 11:39 am    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Jedi Knight
 
 Joined: 11 Aug 2002 Posts: 4055 Location: Hyderabad, India 
  | 
		  
		    
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | mq newbie | 
		  
		    
			  
				 Posted: Tue Aug 09, 2005 11:38 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Newbie
 
 Joined: 08 Aug 2005 Posts: 3
  
  | 
		  
		    
			  
				hi 
 
   
	| Quote: | 
   
  
	| I seem to remember that you can only connect back to the serving IP address... | 
   
 
 
 
if you sign an applet you can connect other IPs than the serving one.
 
using MQ API it works, just when I use JMS the error occurs.
 
 
 
 
thx for the tip, unfortunately there was nothing that could really help me   .
 
 
I have the assumption that possible the JRE I use is responsible for the error.
 
Does anybody know something more about it. | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | fjb_saper | 
		  
		    
			  
				 Posted: Wed Aug 10, 2005 5:48 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		    Grand High Poobah
 
 Joined: 18 Nov 2003 Posts: 20768 Location: LI,NY 
  | 
		  
		    
			  
				Did you check if setting the permissions for the base class of your applet helped resolve your problem?
 
 
java permissions can sometime be fickle...    | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | mq newbie | 
		  
		    
			  
				 Posted: Wed Aug 10, 2005 11:12 pm    Post subject:  | 
				     | 
			   
			 
		   | 
		
		
		   Newbie
 
 Joined: 08 Aug 2005 Posts: 3
  
  | 
		  
		    
			  
				sry but I do not really understand, 
 
what do you envisage by setting the permissions for the base class? | 
			   
			 
		   | 
		
		
		  | Back to top | 
		  
		  	
		   | 
		
		
		    | 
		
		
		  | 
		    
		   |