Re: Change extension from .event

"Andras Balogh" <[email protected]>
Newsgroups gmane.comp.java.enhydra.barracuda.general
Message-ID <007a01c30678$b90a2d80$0200a8c0@andras>
Hi,

Thank you for replying.


> Hmmm...good question. When we originally designed the event model, we did
> take this requirement into account...so the basic event dispatching
> structure itself should be able to handle it (the web.xml file would have
to
> be updated, etc). But in terms of the taskdef that generates the events
from
> the xml file...that's probably going to take some tweaking. I'd say dive
in
> and try to patch it, and holler as you need help. When you get it
complete,
> I'd love to see you contribute back your work to the community.

I have modified the EventBuilder taskdef  class to generate my event classes
correctly.
A line in my events.xml file looks now like this:
 <event name="LocalRequestEvent" extension=".myext">
(this is required only at one event in the event tree since the rest of the
events
extend parent event)

I have added in the EventBuilder.template a new variable
@event.setextension@ in each constructor after super() and
this will be replaced with setEventExtension(".myext"); or with an empty
String.

I don't know if is the best solution but if you think that it could be
usefull i can
send the patched files.
This also means that the DTD should be changed to allow the extension
attribute.
Let me know if you have some modifications in mind regarding this, i will
add it
to the patch and test it out.

>
> Ought of curiousity, what's causes you to need to change the extension in
> the first place?

The problem is the same as discussed some time ago.
I want to separate the admin part from the public part.
So one application gateway for admin with one extension and one
for public part with different extension.

A question for Jake:

Why this is not possible in the 2.3 servlet spec:

 <servlet-mapping>
        <servlet-name>ApplicationGateway</servlet-name>
        <url-pattern>/admin/*.event</url-pattern>
 </servlet-mapping>


>
> Christian

BW,

Andras.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.