|
[
Permalink
| « Hide
]
Michael Singer added a comment - 14/Dec/06 10:26 AM
The .NET 2.0 stuff...
Michael Singer made changes - 14/Dec/06 10:26 AM
the IIOP enabled jackrabbit-jcr-rmi stuff...
Michael Singer made changes - 14/Dec/06 10:27 AM
The file JCR.NET.zip contains 3 folders, ContentRepository, CRExplorer and JackrabbitIIOPConnector.
The project ContentRepository is a contribution from Joern von Holten from Reddot and is the .NET 2.0 implementation of the JSR-170 API. You also need the latest version of IIOP.NET, you can get that from http://iiop-net.sourceforge.net The file jcr-iiop.zip contains the iiop enabled jackrabbit-jcr-rmi. The folder in this zip-file is an eclipse-project. There is a class "Server" in the package org.hms.jackrabbit.rmi.server which contains a main method and is used to You can shutdown the server by typing "exit" and hitting enter... If the java-side is running startup the .NET GUI. This is done with Program.cs in the Project CRExplorer. The configuration stuff If everything is OK you should see at least a treeview of the nodes stored in jackrabbit... I know it is very tricky to get this stuff working, so, good luck and don't hesitate to ask... And of course maybe David and Dominique have useful input since they used this stuff during the last months Re: IIOP, did you think of a solution to the lack of distributed garbage collection in IIOP? See
I changed the class o.a.j.r.s.ServerObject to extend PortableRemoteObject instead of UnicastRemoteObject. PortableRemoteObject has a static method unexportObject(Remote obj) which deregisteres a server object from the runtime allowing the object to become available for garbage collection. I therefore added a method to ServerObject:
public synchronized void unexport() throws RemoteException { On the .NET side I implemented the destructor which is called by the .NET garbage collector. This destructor calls the unexport method of the remote object which makes the object on the java side available for garbage collection. For example I have a class Session in .NET and implemented ~Session(){...}: public class Session : ISession public Session(RemoteSession session) { this.session = session; } /// <summary> ... So if an object on the .NET side is garbage collected it calls the unexport method of the remote object which then also should become garbage collected. Looks like a good solution! I'm sorry I haven't had time to look at this earlier, I'll see if I can get this included in new future.
Jukka Zitting made changes - 07/Jul/09 01:00 PM
Jukka Zitting made changes - 08/Jul/09 09:54 AM
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||