From: thomas at tada.se (Thomas Hallgren) Date: Mon, 04 Feb 2013 18:16:49 +0100 Subject: [Pljava-dev] classloading In-Reply-To: References: Message-ID: <510FED01.1050705@tada.se> Hi Jonathan, Not sure what you mean with "reloading jars". PL/Java will give you a JVM session that is dedicated to your session (i.e. the database connection). What classes you have access to is normally something that someone with super privileges has decided earlier by installing jars and declaring the class paths. Letting normal users do this would IMO be dangerous. The same is true for other types of stored procedures and functions. Now, if you indeed do have super user priveliges, then there's nothing stopping you from changing the classpath to see different classes at different times. There would still be only one loader though (the one that uses the database and effective classpath). PL/Java will not allow that you load classes directly from the file system. - thomas On 2013-02-04 12:51, Jonathan Ellis wrote: > Hi all, > > I was looking at pl/java since we're looking at doing something along > those lines for user-defined triggers in Cassandra [1]. Slightly > confused to only see one Loader per Schema. Does this mean that > reloading jars is not supported? Curious about the design tradeoffs > there because that sounds like something users would want. > > Thanks for any light you can shed here! > > [1] https://issues.apache.org/jira/browse/CASSANDRA-1311 >