Get the following exception
[java] Exception in thread "main" javax.naming.NameNotFoundException: comp not
bound
[java] at org.jnp.server.NamingServer.getBinding(NamingServer.java:491)
[java] at org.jnp.server.NamingServer.getBinding(NamingServer.java:499)
Btw, I'm trying this
"nmuralid" wrote :
| What am I missing here ?
|
The correct lookup name, "java:comp/env/security/subject" ?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3879102#3879102
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=re
Thanks for the reply
I tried this using chap8-ex2 from the JBoss Guide. JNDIView only shows me the
following
==
java:comp namespace of the EchoBean2 bean:
+- env (class: org.jnp.interfaces.NamingContext)
| +- security (class: org.jnp.interfaces.NamingCo
You should be able to look up the current active Subject from an EJB's private
name space, look under java:comp with JNDIView for a secured EJB.
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3879080#3879080
Reply to the post :
http://www.jboss.org/index.htm
Looks like setting "SubjectAttributeName" works for a Servlet, is there
something similar for EJBs?
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3878709#3878709
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3878709