WebSphere Application Server & Liberty

WebSphere Application Server & Liberty

Join this online group to communicate across IBM product users and experts by sharing advice and best practices with peers and staying up to date regarding product enhancements.

 View Only
  • 1.  Resources URLs bind in IBM liberty profile

    Posted Tue February 13, 2018 11:26 AM

    Hi all, I used to add all my application configuration values in a separate file and bind it in resources URLs in was 7 then the application server bind these values at start up and then I can access these values at run time to avoid hard code these values and to change those values without a need to deploy new ear file. How to do the same in IBM liberty v 17 and how to access these values in run time. 



  • 2.  RE: Resources URLs bind in IBM liberty profile

    Posted Wed February 14, 2018 01:23 AM

    Hi Omar,

    It isn't clear to me if you mean via a Resource provider or via JNDI?

    Unfortunately there doesn't seem to be a consolidated list anywhere of the different configuration elements that are available and which feature provides each one (perhaps IBM might consider something that could be generated from the module metadata? - if something like this exists already please direct us towards it).

    One place to start looking is the feature list:

    https://www.ibm.com/support/knowledgecenter/SSD28V_9.0.0/com.ibm.websphere.wlp.core.doc/ae/rwlp_feat.html

    In this case you can drill down into the JNDI feature:

    https://www.ibm.com/support/knowledgecenter/SSD28V_9.0.0/com.ibm.websphere.liberty.autogen.nd.doc/ae/rwlp_feature_jndi-1.0.html

    and at the bottom of the page (who creates these docs?!) you'll see the config elements available and clicking on each one gives some info on what to put in your server.xml (or included xml file).

    From a Java code perspective the usage should be the same as any other JEE appserver I believe.

     

    Not all of the features are documented it seems, so you are left guessing somewhat what they do! I'd have to assume these ones don't have any config elements associated to them.



  • 3.  RE: Resources URLs bind in IBM liberty profile

    Posted Thu February 15, 2018 08:45 AM


  • 4.  RE: Resources URLs bind in IBM liberty profile

    Posted Thu February 22, 2018 08:34 AM

    Hi 

    Please look at the "application-bnd" and "web-bnd" elements that u can use under <application> tag in your server.xml 

     

    In Reply to Omar Adel:

    Hi all, I used to add all my application configuration values in a separate file and bind it in resources URLs in was 7 then the application server bind these values at start up and then I can access these values at run time to avoid hard code these values and to change those values without a need to deploy new ear file. How to do the same in IBM liberty v 17 and how to access these values in run time. 



    Cheers

    Jose