Question : MDB 3.0 Queue Names

Hi,

I am using MDB 3.0 using annotations to define queue names and deploying using JBOSS AS 4.2.3.
I am looking for a way to define these queue names in some configuration files so that to change the queue names no change in code should be required.

TIA.

Thanks,
sri

Answer : MDB 3.0 Queue Names

you can do it in ejb-jar.xml file inside META-INF folder.

1:
2:
3:
4:
5:
6:
7:
8:
9:
10:
11:
12:
13:
14:
15:
16:
17:
18:
19:
20:
21:
22:
23:
24:
25:
26:
27:
28:
29:
30:
31:
32:
33:
34:
35:
36:
37:
38:
39:
40:
41:
42:
43:
44:
45:
46:
47:
48:
49:
50:

 
	
		
	
	My MDB bean
 
	
		
			MDBName
			
				yout.mdb.full.class.name
			
			Container
			
				
					
						destinationType
					
					
						javax.jms.Queue
					
				
				
					
						acknowledgeMode
					
					
						AUTO_ACKNOWLEDGE
					
				
				
					
						destination
					
					
						queueName
					
				
			
		
		
	
 
 
Random Solutions  
 
programming4us programming4us