[wildfly-dev] Deployment Root type other than XML or ZIP
Bob McWhirter
bmcwhirt at redhat.com
Fri Jan 13 10:17:15 EST 2017
Here’s what TorqueBox used to use:
https://github.com/projectodd/jboss-polyglot/blob/master/modules/core/src/main/java/org/projectodd/polyglot/core/processors/DescriptorRootMountProcessor.java
On Thu, Jan 12, 2017 at 10:30 AM, Ramesh Reddy <rareddy at redhat.com> wrote:
> Bob,
>
> Can you please point me to your code references for this?
>
> Ramesh..
>
> ------------------------------
>
> TorqueBox allows deployment of .yaml files. It's pluggable enough.
>
> Bob
>
> On Wed, Jan 11, 2017 at 3:32 PM Stuart Douglas <stuart.w.douglas at gmail.com>
> wrote:
>
>> The problem with that is that the majority of the time this would be a
>> mistake on the users part (at the moment it is 100% of the time, as we only
>> deploy stuff we know how to process).
>>
>> I think that ideally this should be pluggable. It would be easy enough to
>> make DeploymentRootMountProcessor handle different file types (for instance
>> add an AttachmentList of known REAL file types, and then install a DUP
>> before it to add .ddl to the list).
>>
>> Using capabilities and requirements we could probably add something
>> similar to the deployment scanner as well, basically your subsystem would
>> look for the deployment scanner capability, and if it is installed we could
>> have some API to add additional file types (although this may be a bit
>> racey, as the service may not know all file types for the initial scan,
>> which could give odd results in some circumstances. There is probably a
>> solution to this but I can't think of one off the top of my head).
>>
>> Stuart
>>
>>
>>
>> On Thu, Jan 12, 2017 at 6:51 AM, Ramesh Reddy <rareddy at redhat.com> wrote:
>>
>> It would be good if the logic can be changed such that any thing other
>> than with extension jar,war,ear and zip to consider them as file based
>> deployments rather than zip archive based deployments.
>>
>>
>>
>>
>>
>> ----- Original Message -----
>>
>>
>> > I’ll defer to our deployment processing gurus re the mount question.
>>
>>
>> >
>>
>>
>> > As an aside though, for this to work with the deployment-scanner
>> subsystem
>>
>>
>> > we’ll need to add some logic. Right now it would just ignore the file.
>>
>>
>> >
>>
>>
>> > > On Jan 11, 2017, at 8:34 AM, Ramesh Reddy <rareddy at redhat.com> wrote:
>>
>>
>> > >
>>
>>
>> > > Hi,
>>
>>
>> > >
>>
>>
>> > > For Teiid project (http://teiid.org), we typically deploy a .xml or
>> .VDB
>>
>>
>> > > (zip archive) file to define a virtual database artifact. We are
>> planning
>>
>>
>> > > to deliver a feature where a virtual database is written in DDL, for
>> this
>>
>>
>> > > we would like to deploy a file artifact like "foo-vdb.ddl".
>>
>>
>> > >
>>
>>
>> > > I have written deployment processors for it, and added DEPLOYMENT_ROOT
>>
>>
>> > > mounter to recognize the deployment artifact etc, however during the
>>
>>
>> > > deployment scanning, WildFly always looks at anything other than
>> ".xml"
>>
>>
>> > > file as zip archive, or a exploded zip archive, so that it can do VFS
>>
>>
>> > > mount on that file. I would like to add this ".ddl" extension file
>> exactly
>>
>>
>> > > similar to ".xml" file. Is there any way to achieve this?
>>
>>
>> > >
>>
>>
>> > > Thank you.
>>
>>
>> > >
>>
>>
>> > > Ramesh..
>>
>>
>> > > _______________________________________________
>>
>>
>> > > wildfly-dev mailing list
>>
>>
>> > > wildfly-dev at lists.jboss.org
>>
>>
>> > > https://lists.jboss.org/mailman/listinfo/wildfly-dev
>>
>>
>> >
>>
>>
>> > --
>>
>>
>> > Brian Stansberry
>>
>>
>> > Manager, Senior Principal Software Engineer
>>
>>
>> > JBoss by Red Hat
>>
>>
>> >
>>
>>
>> >
>>
>>
>> >
>>
>>
>> >
>>
>>
>> > _______________________________________________
>>
>>
>> > wildfly-dev mailing list
>>
>>
>> > wildfly-dev at lists.jboss.org
>>
>>
>> > https://lists.jboss.org/mailman/listinfo/wildfly-dev
>>
>>
>>
>>
>>
>> _______________________________________________
>>
>>
>> wildfly-dev mailing list
>>
>>
>> wildfly-dev at lists.jboss.org
>>
>>
>> https://lists.jboss.org/mailman/listinfo/wildfly-dev
>>
>>
>>
>>
>> _______________________________________________
>>
>> wildfly-dev mailing list
>>
>> wildfly-dev at lists.jboss.org
>>
>> https://lists.jboss.org/mailman/listinfo/wildfly-dev
>
>
> _______________________________________________
> wildfly-dev mailing list
> wildfly-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/wildfly-dev
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/wildfly-dev/attachments/20170113/16ae79a2/attachment.html
More information about the wildfly-dev
mailing list