Re: Looking for simple servlet-to-javaspace example
"Logan, Patrick" <[email protected]>
| Newsgroups | gmane.comp.java.sun.jini |
|---|---|
| Message-ID | <[email protected]> |
> Okay, as has been said here several different times, various J2EE
> appservers are less than friendly about how they manage codebases
> and permissions, because they are not tailored to allow "random"
> configurations to be deployed inside of them.
Fair enough. I am looking from the Tomcat/JBoss side of things as well
to see how they work. I see how to grant permissions to a specific
servlet(s) via the codebase file URL for its webapp installed in
Tomcat.
e.g.
grabt codeBase
"file:${catalina.home}/webapps/some_app/WEB-INF/classes/-" {
stuff
}
On this "container" side of things I think I just need to understand
whether/how Tomcat and/or JBoss support setting these things
individually without bouncing everything. I assume they do, but I just
have to be patient and learn one thing at a time.
> There are, of course other permissions required to use Jini's remote
> invocation infrastructure. This includes endpoint related "socket"
> permissions, property access permissions, and other associated bits
> and pieces. Last week, on the list, there was discussion about two
> different tools which allow you to "discover" what permissions are
> being required in a running system for the legs of code executed.
Alright. This is getting to what I think I'm looking for. As you said
I can go with AllPermission for now and figure this stuff out more
specifically.
> The other problematic situation is the annotations on exported
> objects. What I've found to work the best for me in these kinds of
> situations is to create a PreferredClassLoader that points at the
> URLs your service can be loaded from, and the annotation to return
> for that service.
OK. I think I can understand this a bit later too.
Thanks, this puts some more pieces together for me.
By the end of this with some help I should have the
example-in-one-place I was hoping for. At least some more lore may be
captured on an email list for future reference! 8^)
-Patrick
--------------------------------------------------------------------------
Getting Started: http://www.jini.org/wiki/Category:Getting_Started
Community Web Site: http://jini.org
jini-users Archive: http://archives.java.sun.com/archives/jini-users.html
Unsubscribing: email "signoff JINI-USERS" to [email protected]