Win a copy of Mesos in Action this week in the Cloud/Virtualizaton forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Configuring "provider-url" in message driven bean descriptor

 
mohamed zafer
Ranch Hand
Posts: 62
  • Mark post as helpful
  • send pies
  • 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
 
Maulin Vasavada
Ranch Hand
Posts: 1873
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic