http://wiki.jboss.org/wiki/Wiki.jsp?page=JNDIBindingServiceMgr
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3953999#3953999
Reply to the post :
http://www.jboss.com/index.html?module=bbop=postingmode=replyp=3953999
Using Tomcat but need to do more? Need to
[EMAIL PROTECTED] wrote :
http://wiki.jboss.org/wiki/Wiki.jsp?page=JNDIBindingServiceMgr
So I been trying to do it this way (the MBean JMX crap I mentioned above is
kind of a mess), but I can't figure out how to bind an object (just a POJO with
some properties set).
The examples in the wiki
Okay so looks like something like this works:
jndi:binding name=config/CASConfig
| jndi:value
editor=org.jboss.util.propertyeditor.PropertiesEditor
| casLogin=https://localhost:8443/cas/login
|
Okay, so my final solution for programmatically setting up CAS via JNDI in
JBoss:
web.xml config for the application with the CAS filter looks like this:
filter
| filter-nameCAS Filter/filter-name
|
filter-classcom.discursive.cas.extend.client.filter.CASFilter/filter-class
|
Gunark wrote : Okay so looks like something like this works:
|
| jndi:binding name=config/CASConfig
| | jndi:value
editor=org.jboss.util.propertyeditor.PropertiesEditor
| | casLogin=https://localhost:8443/cas/login
| |
For anyone interested, the answer turned out to be manual JNDI binding via JMX
service MBeans.
Basically I have a JMX MBean that manually binds the object I needed bound to
JNDI in its create() method.
View the original post :
Have a look ath env-entry in ejb-jar.xml dtd:
http://java.sun.com/j2ee/dtds/ejb-jar_1_1.dtd
Here's an brief extract:
anonymous wrote : !--
| The env-entry element contains the declaration of an enterprise bean's
| environment entries. The declaration consists of an optional
|
From what I understand, env-entry only lets you reference instances of
Integers, Floats, and other primitive wrappers.
I don't think this is what I'm looking for.
Once again, all I want is for an instance of some arbitrary class to be
available under a global jndi name. So that when the app is
Oops, second code block should be:
ResourceLink name=example/MyExample
| global=example/MyExample
| type=com.example.MyExample/
(not that it really matters)
View the original post :
http://www.jboss.com/index.html?module=bbop=viewtopicp=3953099#3953099