English 中文(简体)
Webspehere 6.1 and JNDI for something other than a Datasource
原标题:

I was wondering: how does one go about configuring WAS if they want to store some confidential information that is not datasource, JMS or Mail related? I m looking more for an adhoc JNDI resource (a few Strings) that can be queried at runtime to get both a username and password for a vendor system I need to connect to.

Not being uber familiar with WAS, I m sort of lost. In Tomcat it was a breeze. In WAS, I think I m missing a few concepts, I m sure it s possible though.

最佳回答

WAS JNDI is open to extension using your own URL provider class. The examplehere uses the capability to point to property files, but presumably you could instead create a provider that obtained data from a database (or whatever repository you are required to use) instead of a property file.

问题回答

You can define your own JNDI entries.

Under Environment -> Naming -> Name Space Bindings you can create String binding type, and assign a key and value which can be looked up by the applications.

Is this what you are after?

Manglu





相关问题
Webspehere 6.1 and JNDI for something other than a Datasource

I was wondering: how does one go about configuring WAS if they want to store some confidential information that is not datasource, JMS or Mail related? I m looking more for an adhoc JNDI resource (a ...

申 诉 Server的服务器名称或管道和港口

我们愿确定并展示一个服务器和港口,即 Java的应用程序正在运行,它落后于一个代理网络服务器。 这意味着使ServerName()返回服务器......。

Signing SOAP messages using WSS4J

We need to sign a SOAP message with a certificate in Websphere 7. Currently we are looking at using WSS4J from Apache and are approaching this in the java code itself. Does anyone have any ...

JSP files in external directory

In my project, we allow customer to write customer specific logic in JSP pages and attach to our product. Right now after deploying .ear file customer copy the custom files under /WebContent/custom ...

RAD Websphere - EAR not picking up latest jar

I am using RAD 7.0. My web application works with a jar(contains the backend code for our application) which undergoes frequent changes. But whenever I replace the jar in the WebInf/lib folder of the ...

热门标签