Re: Looking for simple servlet-to-javaspace example
Patrick Balm <[email protected]>
| Newsgroups | gmane.comp.java.sun.jini |
|---|---|
| Message-ID | <OFE56ADBDC.5024C3BB-ONC1257261.0022D72B-C1257261.002309DB@epo.org> |
Hi Patrick,
Regarding JBoss;
If you change the following in the
jbossweb-tomcat55.sar/META-INF/jboss-service.xml
<attribute name="UseJBossWebLoader">false</attribute>
to
<attribute name="UseJBossWebLoader">true</attribute>
Discovery should work as with regular applications.
Add this to JBOSS_HOME\bin\run.sh
JAVA_OPT=$JAVA_OPT -Djava.rmi.server.codebase =
http://host-name:port/<service-dl.jars>
-Djava.security.policy=<pathTo>/policy.all
HTH
Vriendelijke groeten / Kind regards / Meilleures salutations / Saludos
Patrick Balm - epoline®Architecture Team
EUROPEAN PATENT OFFICE
Patentlaan 2 - 2280 HV Rijswijk (ZH) - Netherlands
Tel: +31 (0)70 340 4705
Website www.epoline.org | email: Patrick Balm
"Logan, Patrick" <[email protected]>
11-01-2007 23:34
Please respond to
"Logan, Patrick" <[email protected]>
To
[email protected]
cc
Subject
Re: Looking for simple servlet-to-javaspace example
> 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]
(unnamed)
(image/gif, 3.8 KB) - not displayed