• 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

Configuring "provider-url" in message driven bean descriptor

 
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi There,
I have a Message driven bean deployed in the Weblogic 7.0 which subscribes to a topic from another Welbogic server. My deployment descriptor looks like this
<weblogic-ejb-jar>
<weblogic-enterprise-bean>
<ejb-name>MetricsFeedbackListener</ejb-name>
<message-driven-descriptor>
<destination-jndi-name>jms.SampleTopic</destination-jndi-name>
<initial-context-factory>weblogic.jndi.WLInitialContextFactory</initial-context-factory>
<provider-url>t3://172.0.34.02:7001</provider-url>;
<connection-factory-jndi-name>javax.jms.TopicConnectionFactory</connection-factory-jndi-name>
</message-driven-descriptor>
</weblogic-enterprise-bean>
</weblogic-ejb-jar>
IS there a way to have the <provider-url> configurable, I mean passing as a system property etc., instead of hardcoding here. The reason being I have to manually change each time , I move the build from DEV to SIT ,PROD environements.
Zafer
 
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
I guess if you use Service Locator pattern you would have only one place to change when you deploy on other environment..
See if you can use that..
Regards
Maulin
 
Won't you please? Please won't you be my neighbor? - Fred Rogers. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic