-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Loading Jar-files from /lib in the function app root #48
Comments
Supporting this is a critical requirement for Azure Functions with Java. I wholeheartedly agree with the approach and would love to see this supported ASAP. |
@JunyiYi I've worked over the past couple of days on a pull request. In my fork of the worker, you will find that it will work with Jonathan's JPA example. Support for lib/ folderMy fork supports a I'm working on providing two complete examples:
Steps to using the lib/ with
@JonathanGiles to unblock you (at least locally), you can compile the azure-functions-java-worker from my repository, and drop it into the tools location.
|
Supported in pull request #50 . |
+ @JonathanGiles
Related to #46 This is a feature request to avoid forcing a deployment using a fat jar / uber jar for the azure-functions-java-worker.
This would be in addition to supporting the fat jar deployment, but resolves a host of support issues that will be coming in the future if this isn't implemented.
Proposed Feature
lib
folder under the function app root, just as thebin
for C#This should make any jar-files available for the "function app jar".
I think this actually doesn't require any change on the part of the azure-functions-java-worker as the system classpath would end up including the
lib
folder, which in turn, is included in the URIClassLoader being used to resolve methods.Implementation
Modify the JavaWorkerProvider in azure-functions-host to accept a classpath resolver.
Gist
Modify the JavaWorkerProvider.TryConfigureArguments()
There's not much documentation on getting a development environment running to test this out, but I'm willing to work with a developer to get this proposed change in as a pull request to the azure-functions-host.
The text was updated successfully, but these errors were encountered: