将属性文件放在IBM websphere 8.5中的最佳位置? [英] best place to put properties file in IBM websphere 8.5?

查看:137
本文介绍了将属性文件放在IBM websphere 8.5中的最佳位置?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在我们现有的应用程序属性文件中嵌入了jar文件,我们决定将属性文件移到耳朵外(应用程序),在IBM websphere 8.5中放置属性文件的最佳位置是什么?所以我可以检索WAS环境变量的路径,文件应该可用于集群中的所有节点..

In our existing application properties file is embedded in a jar file ,we decided to move properties file outside of ear(application) , what is the best place to put properties file in IBM websphere 8.5 ? so that i can retrieve path with WAS Environment variables and file should be available to all nodes in a cluster ..

推荐答案

你可以使用classloader目录。我会在$ WEBSPHERE_HOME / AppServer / classes下使用目录类(您可能需要创建)并在那里删除您的属性。您应该能够从任何应用程序/服务器中找到它们。

You can use the classloader directories for that. I would use the directory classes (you might need to create) under $WEBSPHERE_HOME/AppServer/classes and drop your properties there. You should than be able to find them from any of your applications / servers.

检查类加载器页面。

这篇关于将属性文件放在IBM websphere 8.5中的最佳位置?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆