jackrabbit-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jukka Zitting (JIRA)" <j...@apache.org>
Subject [jira] Commented: (JCR-459) Add JMX support to register a JCR RMI Server into Jboss
Date Mon, 19 Jun 2006 19:20:30 GMT
    [ http://issues.apache.org/jira/browse/JCR-459?page=comments#action_12416795 ] 

Jukka Zitting commented on JCR-459:
-----------------------------------

Thanks, feel free to commit the changes in svn.

I was actually thinking of setting the properties of the local JNDI context, i.e. so that
you could access some other naming tree than the default one in your container. Something
like this:

    String localAddress = ...;
    Hashtable localEnvironment = ...;
    String targetAddress = ...;
    Hashtable targetEnvironment = ...;

    InitialContext localContext = new InitialContext(localEnvironment);
    Repository repository = (Repository) local.lookup(localAddress);

    RemoteAdapterFactory factory = new ServerAdapterFactory();
    RemoteRepository remote = factory.getRemoteRepository(repository);

    InitialContext targetContext = new InitialContext(targetEnvironment);
    targetContext.bind(targetAddress, remote);



> Add JMX support to register a JCR RMI Server into Jboss
> -------------------------------------------------------
>
>          Key: JCR-459
>          URL: http://issues.apache.org/jira/browse/JCR-459
>      Project: Jackrabbit
>         Type: Improvement

>   Components: rmi
>     Reporter: Edgar Poce
>     Priority: Minor
>  Attachments: 20060616-jcr-rmi-jmx.diff, jcr-rmi-jmx.diff
>
>  I added two classes and one descriptor file to the jcr-rmi project. These files provide
support to make the generated jar deployable into a Jboss server. 
>  The deployment descriptor contains two parameters, the address of the local repository
instance, and the target address where the rmi server should be registered. 
> e.g.
> <server>
>  <mbean code="org.apache.jackrabbit.rmi.server.jmx.JCRServer"
>      name="Jackrabbit.services:RMIServer = JCR RMI Server">
>     <attribute name="Local">java:jcr/local</attribute>
>     <attribute name="Target">jnp://localhost:1099/jcrServer</attribute>	
> <depends>jboss.jca:service=ManagedConnectionFactory,name=jcr/local</depends>
				
>   </mbean>
> </server>	
> this configuration registers an RMI server at /jcrServer that wraps the local repository
at java:jcr/local.
> br,
> Edgar

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


Mime
View raw message