-
1. Re: JNDI binding in extension module READONLY exception
hellen-z Jan 10, 2012 12:21 PM (in response to hellen-z)By invoking this before binding, the binding works
WritableServiceBasedNamingStore.pushOwner(...);
But I'm not sure if it's the good way to do it.
-
2. Re: JNDI binding in extension module READONLY exception
jaikiran Feb 1, 2012 2:48 AM (in response to hellen-z)hellen-z wrote:
By invoking this before binding, the binding works
WritableServiceBasedNamingStore.pushOwner(...);
But I'm not sure if it's the good way to do it.
That's the right way to do it for non-EE components. See this for more details https://issues.jboss.org/browse/AS7-2667?focusedCommentId=12654355&page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#comment-12654355
-
3. Re: JNDI binding in extension module READONLY exception
madchedar0 May 18, 2012 4:15 PM (in response to jaikiran)Is it possible to elaborate more or give an example of how to use WritableServiceBasedNamingStore and its methods to help bind with an InitialContext object? I've been scouring the forums and the web and I'm still unclear of how to accomplish this.
Thank you!
-
4. Re: JNDI binding in extension module READONLY exception
sergiu_pienar May 31, 2012 3:38 AM (in response to jaikiran)Hi Jaikiran, I think both I and madchedar0 would appreciate some code snippet on using the WritableServiceBasedNamingStore.
Thank you !
-
5. Re: JNDI binding in extension module READONLY exception
shuraa May 31, 2012 4:14 AM (in response to hellen-z)Check this project. The sample code with JNDI binding in JBoss AS 7 using MSC ServiceActivator here https://github.com/stuartwdouglas/as7-example-jndi-binding
-
6. Re: JNDI binding in extension module READONLY exception
sergiu_pienar May 31, 2012 6:29 AM (in response to shuraa)It's still not clear how I could use that having only an InitialContext.
Thank you -
7. Re: JNDI binding in extension module READONLY exception
madchedar0 May 31, 2012 11:27 AM (in response to sergiu_pienar)Sergiu,
Check this thread out: https://community.jboss.org/message/737097#737097
I should have replied back to this original thread when I got my answer (above) but hopefully that helps
-
8. Re: JNDI binding in extension module READONLY exception
sergiu_pienar May 31, 2012 1:45 PM (in response to madchedar0)Thank you madchedar0,
But I think this approach can not be applied in my case as I'm trying to bind a HibernateSession factory using an MBean.
I appreciate it anyway.
-
9. Re: JNDI binding in extension module READONLY exception
avis71 Jan 28, 2013 4:58 AM (in response to sergiu_pienar)I have the same problem when trying to bind object to JNDI using a different JVM.
Did someone solved this?