>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 loaded, and 
"somethig/MyObject" is looked up, an instance of MyObject is returned.

Specifically, I have a filter in my web.xml file that looks for its 
configuration info (info stored as a POJO) under a given jndi name. i.e.:

<filter>
  |       <filter-name>CAS Filter</filter-name>
  |       
<filter-class>com.discursive.cas.extend.client.filter.CASFilter</filter-class>
  |       
  |       <init-param>
  |             
<param-name>com.discursive.cas.extend.client.config.jndi</param-name>
  |             <param-value>config/CASConfig</param-value>
  |       </init-param>
  | 
  |       ...
  | 

(note the param-value)

How do I make an instance of my object available under "config/CASConfig" in 
JBoss? Preferably I'd like to set th is up as an EJB 3.0 entitity bean, but I 
can figure out that part. I just have no idea how to bind an object/object 
factory to a global jndi name like "config/CASConfig".

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3953477#3953477

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3953477

Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
JBoss-user mailing list
JBoss-user@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jboss-user

Reply via email to