[jbosscache-issues] [JBoss JIRA] Commented: (JBCACHE-1514) Problems Binding JBoss Cache Instance in JNDI

Manik Surtani (JIRA) jira-events at lists.jboss.org
Wed Aug 12 04:27:18 EDT 2009


    [ https://jira.jboss.org/jira/browse/JBCACHE-1514?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12480208#action_12480208 ] 

Manik Surtani commented on JBCACHE-1514:
----------------------------------------

Have you tried binding this to a java: namespace?  JNDI impls should not serialize stuff bound to java:.  And binding a cache to any other namespace in JNDI is pretty meaningless.

> Problems Binding JBoss Cache Instance in JNDI
> ---------------------------------------------
>
>                 Key: JBCACHE-1514
>                 URL: https://jira.jboss.org/jira/browse/JBCACHE-1514
>             Project: JBoss Cache
>          Issue Type: Bug
>      Security Level: Public(Everyone can see) 
>    Affects Versions: 2.2.2.GA
>         Environment: WebSphere 6.1.0.17
>            Reporter: Matt Accola
>            Assignee: Manik Surtani
>            Priority: Critical
>             Fix For: 3.2.0.GA
>
>         Attachments: JBossCacheCustomService.jar, treecache.xml, WASServerStartup.log
>
>
> Attempting to create a JBoss Cache instance and bind to JNDI for use by multiple applications.
> In WebSphere 6.1 the best way to do this is to create a Custom Service, http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.base.doc/info/aes/ae/trun_customservice.html.  I have attached a simple Custom Service which creates a new cache instance from an XML configuration file, obtains an InitialContext and attempts to bind the org.jboss.cache.Cache reference.  The Custom Service is in the attached JBossCacheCustomService.jar.
> When I try to start the server I get the following error: com.ibm.ws.naming.util.CannotBindObjectException: Object is not of any type which can be bound.  As described in the WebSphere 6.1 Info Center, http://publib.boulder.ibm.com/infocenter/wasinfo/v6r1/index.jsp?topic=/com.ibm.websphere.messages.doc/com.ibm.ws.naming.util.WsnMessages.html , this is because the object which is being bound is not Serializable.
> I have also attached the complete log of the server startup.

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: https://jira.jboss.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        


More information about the jbosscache-issues mailing list