setting JNDI configurations without xml - jndi

Can anyone please post a link of tutorial for setting JNDI configurations without xml files for MySQL???I don't want configurations in xml files. But instead I want to use in Java files?

Related

XForm schema validation: resolution of child schema imports

I'm interested in using schema-based validation:
<model schema="oxf:..path">
The Orbeon documention currently doesn't have a lot of details about it's use, and in one spot this topic shows up as a "TODO". The schemas we created all have child schemas (certain elements are common to all).
I have a folder structure for the schemas that looks like:
COMMON
xsd
xsd...
schema_A
xsd
<schema_B>
xsd
...
I am putting these schema in a Maven project that generates a jar file of these, and am putting this JAR in "orbeon/web-inf/lib" folder. In the xforms, I have no problems accesing individual files in this JAR (like creating an instance with that as a source).
In the schemas themselves I'm using a relative url that uses "directory up", like this:
<import xmlns="<uri>" "schemaLocation="<uri> ../../COMMON/childSchemaA.xsd">
However, Orbeon doesn't seem to be able to resolve the imports and I get a "Resource not Found" page when I try to use it. In the orbeon log I see that it interprets the location as being in the parent folder, i.e. "schemaA/childSchema.xsd"
Is this a known issue? (I am using the lasT Orbeon 2019 version as the current version does not support rich text controls in XForms). I did a test in which I put the parent schemas and child schemas in the same folder (in the jar file), and validation seems to work as expected.
Is there something that would help orbeon resolve the child schemas? For organization reasons, I don't want to have to have a folder with all of the parent schemas and the child schemas in a single folder. I have another Java web project in which the same JAR file is put on the classpath, and when using the parent schemas for validation there are not any issues.

Configure Flogger with log4j2 backend

I try to use flogger with the log4j2 backend. Seems to work fine.
My problem is, how to configure output pattern, output level or appenders in general using log4j files (xml or properties).
If using this constellation without any configuration, only level error is logged.
OK, I missed to add log4j-web package, so everything was fine in a standalone app, but this package is needed in a web application

ORBEON Forms source code

I have imported orbeon war file in my Eclipse IDE and using my war file i have created new forms but i dono where the source code generated for my new forms,
what i have tried is downloaded the war, file and imported into my eclipse IDE using this war file i have created new forms.
and my link is http://orbeon.com/orbeon/fr/orbeon/builder/edit/be0b8be388fc248859fffd0cfb04a237cc8da6a6
anyone please answer me asap,
Thanks in advance.
Form Data and Definitions are stored via the persistence API. For more info look at Form Runner/Form Builder Persistence API.
When you say you have used the war file to create forms - do you mean you have used the Form Buidler interface?
Your link is to the orbeon.com server. Is that correct?

ASP MVC & MEF with plugin config files

Currently I have a web service, which loads up any plugins located within its /plugins folder. Now the problem is that each plugin has its own set of configuration data, currently hardcoded and isolated into a single class, but I want to move this out into a myplugin.config file.
Normally the web service loads up its own web.config file, but I am not sure if I can get the plugins to use their own ones. As if you imagine the main web service uses NHibernate and does CRUD stuff with some arbitrary data, but one of the plugins adds a caching layer using MongoDB and has its own connection string details. So the MVC web service shouldn't really care about these settings, it should just be the MyPlugin which would need to read them.
Is there any way to do this? As I just want to get away from having the connection string ingrained within the code.
I have sorted this problem now, I was able to do it without much work really once I found out how config files could be loaded in.
I made sure my config file was named after the assembly loaded via MEF, so if my assembly was:
some-custom-plugin.dll
You would make a config file named:
some-custom-plugin.dll.config
then you would call:
var config = ConfigurationManager.OpenExeConfiguration("some-custom-plugin.dll");
var someValue = config.AppSettings["some-app-setting"];
So hope this helps someone as it took me a while to find this simple thing out.

Is it possible to add Grails MVC classes at deployment time?

I'm writing a Grails app which I'd like 3rd parties to augment at runtime. Ideally they would be able to add a JAR/WAR to the webapp directory which contains new domain, controller and service classes, new views, and other content.
Is there a simple way to do this within grails? Would it be simplest to create a startup script which copies the new classes etc. into the relevant directories and then updates grails.xml and web.xml?
You will be able to do this in version 2 of grails in which plugins will be also OSGI plugins http://jira.codehaus.org/browse/GRAILS/fixforversion/15421
It seems that the Grails plugins will actually fit quite well for this: http://www.grails.org/Understanding+Plugins
A plugin can do just about anything... One thing a plugin cannot do though is modify the web-app/WEB-INF/web.xml or web-app/WEB-INF/applicationContext.xml files. A plugin can participate in web.xml generation, but not modify the file or provide a replacement. A plugin can NEVER change the applicationContext.xml file, but can provide runtime bean definitions

Resources