Tom,
Thanks for setting me straight on ejx usage. I gotta say, it made me
laugh when I saw how it currently works. Definitely needs some
improvement on the intuitiveness. :) However, now that I know how to use
it...definitely very useful. Beats hand-coding the xml files.
Some subsequent msgs have suggested improvements to the file open
dialog. Here's my 2 cents.
I spent a few minutes looking at the JFileChooser and FileFilter
classes, and it seems to me that 2 file filters could be written:
1) Shows all .xml files (and directories, allowing the user to to select
any of the 3 interesting xml file types, and navigate to other
directories)
2) Shows all .jar files, allowing the user to select an ejb jar
containing the xml files of interest
If the user selects the 1st file filter, he/she can choose 1 or more of
the displayed xml files. All selected files would be opened.
If the user selects the 2nd file filter, all appropriate xml files in
the .jar would be opened.
One more note: the Window menu in ejx displays the same file name for
all open files, ejb-jar.xml. Not a big deal, but should be easy to fix.
Rick Horowitz
Tom Cook wrote:
>
> I think the whole thing is caused by misuse of the file-open dialog
> box. When you want to open an existing ejb-jar.xml you need to select
> the file in this dialog and then change the file type to 'EJB 1.1 XML'
> from it's default, jBoss XML. If you want to edit a jboss.xml or
> jaws.xml you still need to select ejb-jar.xml in the dialog but then
> change the file type to the appropriate type.
>
> This seems kinda counter-intuitive to me.
>
> Tom
>
> Rickard Oberg writes:
> > Hi!
> >
> > > 1. ejb-jar.xml opens in EJX, but seems to be missing primary key
> > > specifications for the beans. Also, the Actions menu in EJX only
> > > displays one choice: Add JNDI Name Prefix. Is the implementation
> > > incomplete (e.g. missing primary key stuff and others stuff?) How do
> > > you add things like environment, ejb, and resource references to a bean?
> > > Where are the Actions menu options to add these things?
> >
> > You seem to be referring to the jBoss editor, not the EJB-JAR.xml editor.
> > Make sure you choose the right file filter!
> >
> > > 2. When I tried to open the bank test's jaws.xml or jboss.xml, I get a
> > > null pointer exception. Here's a sample stack trace...
> > >
> > > java.lang.NullPointerException
> > > at com.dreambean.ejx.editor.EJX$2.actionPerformed(EJX.java:94)
> >
> > Don't have the source available right now so I can't check. Can you add this
> > to bugzilla?
> >
> > > 3. A side issue, but does anyone know how I can easily reformat the xml
> > > produced by ejx so it is properly formatted? As indicated above, I'm
> > > using NT.
> >
> > What is the formatting issue? EJX uses an XML parser to read/write files so
> > we're pretty much stuck with how it does it.
> >
> > regards,
> > Rickard
> >
> >
> >
> >
> > --
> > --------------------------------------------------------------
> > To subscribe: [EMAIL PROTECTED]
> > To unsubscribe: [EMAIL PROTECTED]
> > Problems?: [EMAIL PROTECTED]
> >
>
> --
> --------------------------------------------------------------
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Problems?: [EMAIL PROTECTED]
--
--------------------------------------------------------------
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Problems?: [EMAIL PROTECTED]