Using JBoss tools to generate ui for existing EJB's
by Morten Matras
Hi folks
I've installed JBoss tools on top of Eclipse Europa for J22 developers on my
mac os x. (See how on http://mortenmatras.blogspot.com), it was quite easy.
Now I would like to generate the seam based CRUD for existing EJB's using
this toolset and was told that this could be done in eclipse by going to:
> run > Seam gen > generate entities
But I don't get the chance of setting the EJB's to get the CRUD generated.
It simply runs the ant script installed to generate the CRUD for the tables
in the underlying database.
Please point me where to start if I would like to get the "generate-ui" for
existing EJB entities working in this toolset.
As I understood it a patch to the ant-script has been made but never really
implemented in the releases of seam-gen. How do I add this patch so that I
can start using the tool?
Or is it implemented in JBoss Tools but requires a special jboss-seam
release underneeth?
Or is it just me who can't find it?
Thanks
Morten Matras
Udviklingschef
GAMP media og Blob Communication ApS
Vindegade 99-103
5000 Odense C
Tlf: 61711103
E: morten(a)gampmedia.dk
T: 76 654321
W: http://mortenmatras.blogspot.com
E: morten(a)blobcom.com
18 years, 8 months
[JBoss Seam] - Dealing with Application-scope thread-safe services like Luc
by asgeirf
I'm just getting started with Seam (and Java EE in general) and have best-practices related question:
In my application, in addition to Hibernate I'm using Lucene for indexing XML and a Berkley DB XML database for Xml Storage. These are both thread-safe, and I would like to keep instances of these available for my session beans to share/use whenever my application is running. (e.g a Lucene 'IndexSearcher' instance or a Berkley DB Xml 'XmlContainer'). I do not want to close and reopen the indexes/databases when my application is running, but rather open an instance when the application starts, and close when the server is shut down, and give the user some sort of error page when e.g. the XML db is not available.
Ideally, I'm looking for something that enables me to write my session beans similar to how I would use e.g. the Logger or EntityManager, like:
@In MySearchManager sm;
@In MyXmlDbManager xdm;
...and use it similar to how e.g. EntityManager is used...
Does anyone have some hints or tips on common practices for dealing with this?
cheers,
asgeir
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4103469#4103469
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4103469
18 years, 8 months