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

后端 未结 2 800
独厮守ぢ
独厮守ぢ 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:45

    Thanks man, but I've figured it out in a much simpler way. Below is the code

    
    
      SampleTransactionMDB
      
        
          SampleTransactionMDB
          SampleTransactionMDB
          com.example.SampleTransactionMDB
          Container
          
            
              destinationType
              javax.jms.Queue
            
            
              destination
              /queue/SampleTransactionQueue
             
          
          
      
      
      
    
    

提交回复
热议问题