• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Message Driven Bean migration from weblogic 10.3.6 to weblogic 12c

 
Greenhorn
Posts: 28
1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hello,

I am trying to deploy the MDBs to weblogic 12c. The "Pool Current Count" shows 0. The messages in the queues are not being consumed by MDBs.
The MDBs are configured the old way (EJB2.0)

weblogic-ejb-jar.xml

   <weblogic-enterprise-bean>
       <ejb-name>MessagingConsumer</ejb-name>
       <message-driven-descriptor>
           <pool>
               <max-beans-in-free-pool>25</max-beans-in-free-pool>
               <initial-beans-in-free-pool>25</initial-beans-in-free-pool>
           </pool>
           <destination-jndi-name>jms.queue.MessagingEventQueue</destination-jndi-name>
       </message-driven-descriptor>
       <transaction-descriptor>
           <trans-timeout-seconds>3600</trans-timeout-seconds>
       </transaction-descriptor>
       <enable-call-by-reference>True</enable-call-by-reference>
       <dispatch-policy>weblogic.wsee.mdb.DispatchPolicy</dispatch-policy>
   </weblogic-enterprise-bean>

ejb-jar.xml

<message-driven>
<ejb-name>MessagingConsumer</ejb-name>
<ejb-class>service.jms.MessageDrivenService</ejb-class>      
<transaction-type>Container</transaction-type>      
<message-driven-destination>
<destination-type>javax.jms.Queue</destination-type>
</message-driven-destination>
<env-entry>
<env-entry-name>locatorFactorySelector</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>classpath:messaging/beanRefContext.xml</env-entry-value>
</env-entry>  
<env-entry>
<env-entry-name>locatorFactoryKey</env-entry-name>
<env-entry-type>java.lang.String</env-entry-type>
<env-entry-value>messaging.ApplicationContext</env-entry-value>
</env-entry>
</message-driven>

Please let me know if you have any suggestions.

Thanks
Aadil
 
Ranch Hand
Posts: 376
2
Eclipse IDE Firefox Browser Java
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It should work using ejb2.0 with xml (instead 3.0 and annotations).

Did you check if the resoources are created with the given name ?
(jms.queue.MessagingEventQueue)

Cheers,

Germán
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic