-
Notifications
You must be signed in to change notification settings - Fork 16
Yes. The only problem is that it won't be able to use the container datasources. To connect to a database you must modify the amforeas.properties file inside the WAR.
Yes, check out the Dockerfile's here
Amforeas provides some access control but it's better to delegate the responsibility of access control to the RDBMS using GRANTs or READ ONLY tables.
Checkout the ACL wiki page to learn how to configure amforeas access control.
Yes, and functions.
No, you can't give Amforeas a query like SELECT * FROM foo
, since this would be a major security hole. If you need more complex queries than accessing resources, use the tools provided by your RDBMS: triggers, views, stored procedures, functions, etc.
Getting a hold on every database used today is almost impossible so we really need your help. If you're using an unsupported database you can help by developing database configurations which can be later added to the main distribution.
You created a class MyModel
which extends from amforeas.AmforeasModel
but forgot to call the parent's init method: amforeas.AmforeasModel.__init__(self)
Yes, with Cygwin try this:
$ /cygdrive/c/dev/Java/jdk/bin/java -Denvironment=demo -cp `cygpath -wp ./lib/amforeas-jetty-X.X.jar:./lib/*:./etc` amforeas.AmforeasJetty
Also, for Windows cmd, this works:
C:\dev\servers\amforeas-jetty-X.X-demo\amforeas-demo>c:\dev\Java\jdk\bin\
java -cp "lib\*;etc" amforeas.AmforeasJetty