Can we use ejb-jar.xml instead of annotations for MessageDrivenBean(MDB) in EJB 3.0?

后端 未结 2 778
独厮守ぢ
独厮守ぢ 2021-01-18 16:26

I\'ve configured the message destination type, name etc using @ActivationConfigProperty in EJB 3.0 but I wanted to configure the MDB using deployme

2条回答
  •  被撕碎了的回忆
    2021-01-18 16:30

    Below is the xml content for configuring MDB, can modify the below code accordingly.

    
        
            SomeMessageBean
            
                com.bean.SomeMessageBean
            
            javax.jms.MessageListener
            Container
            
                javax.jms.Queue
            
            
                
                    destinationType
                    
                    javax.jms.Queue
                    
                
                
                    messageSelector
                    
                    MessageFormat = 'Version 3.4'
                    
                
                
                    acknowledgeMode
                    
                    Auto-acknowledge
                    
                
            
    
            
                        jms/ConnectionFactory
                        
                            javax.jms.ConnectionFactory
                        
                            Container
                            ConnectionFactory
                            
                                
                                    com.bean.SomeMessageBean
                                
                                datasource
                            
                    
        
    
    

提交回复
热议问题