Java Mailing List Archive

http://www.junlu.com/

Google
Google
Mailing List
Home
Forum Home
JBoss - Java Application Server
Tomcat - JSP/Servlet container
Struts - A MVC web framework
iText - An open source PDF Java Library
JDOM - JDOM XML Parser
J2EE - A mailing list for Java(tm) 2 Platform, Enterprise Edition
JSP - A mailing list about Java Server Pages specification and reference
J2EE Pattern - An interest list for Sun Java Center J2EE Pattern Catalog
Servlet - A mailing list for discussion about Sun Microsystem's Java Servlet API Technology
Struts & Hibernate
Subjects
JSP editor plugin for eclipse ?
org apache jasper JasperException: Unable to compile class for JSP
Tomcat: Connection reset by peer: socket write error
Cannot retrieve definition for form bean null
Struts Tiles Tutorial (free Struts training)
Where do I download Tomcat 4 0 6?
Data Access Object (DAO) pattern, example DAO 's
Where to download Tomcat v 4 1 24 from?
Tomcat 5 0 16 Requested resource not available
Oracle Connection Pooling in 3 2 2
Servlet : Session invalidate
Servlet action is currently unavailable
Tomcat/Struts Unicode Encoding/Decoding problems
Tomcat and webapplication specific java library path
Running a Simple JMS Example
Mapping in workers2 properties
org apache jasper JasperException
Cannot find message resources under key org apache struts action
   MESSAGE
problem with html:text bean throwing exception
Cannot find message resources under key org apache struts action MESSAGE
invalid direct reference problem with solution
Tool for jsp debug Try Sysdeo Eclipse Plugin
Tomcat 5 Cannot load JDBC driver class 'null ' SQL state: null
weblogic ejbc
java properties file
Jboss 3 2 3 Coyote Can 't re
Tomcat 5, Apache2 and mod jk2 integration problem
JBoss example problem new to J2EE
url string for connecting jboss to oracle
Value attribute of <html:checkbox
javax servlet ServletException: BeanUtils populate
HTTP Status 404 The requested resource is not available
5 0 18: Windows XP Pro vs Windows 2000
 
- Re: Using stateless beans generated by seam in stand

- Re: Using stateless beans generated by seam in stand

2007-07-13       - By JbossDing

 Back
Reply:     1     2     3     4     5     6     7     8     9     10  

Thanks for the reply and code example. But I thought the code generated by seam
-gen is not ejb (please refer to my above first message). I am very shallow on
seam so far. When I follow the seam tutorial of the Registration example,
everything is making sense, like you will code the session bean with annotation
@(protected) and entity bean with @(protected) What's more, there is a ejb-jar.xml
for deployment descriptor and each bean has remote methods that client can call
, for example method register().

However, if you look closely at the generated code as I posted above, for table
host, seam-gen generated 2 java files in src/Action folder, which I think
should be where session beans are. They HostHome.java and HostList.java. By
looking at those code closely, they do not have annotation @(protected) or
@(protected) What is more, I do not know what remote methods will execute CRUD
operations. For example, in HostHome.java, it has setHostId, getHostId, isWired
, wire, getDefinedInstance. If I need to update the records, what remote method
to call?

I am not very familiar with JPA. I thought the code you put in the last message
is for client to use JPA to query database.  That is terrific. However, because
seam-gen generated data-access layer codes like session bean and entity beans,
I would like to be lazy and use the generated codes in client directly.

After a little reading of seam, it occurs to me that seam-gen generated data
-access code in src/Action folder is not suitable for direct call from a
standalone java application. Please correct me if I am wrong. I really need
some jboss seam guru to tell me if there is a way for standalone java client
(replacing jsf) to reuse seam-gen generated data-access codes. seam-gen is great
, but it's just too mysterious for me to us in a not so usual way.

Thanks for your attention nd help



View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic
&p=4063788#4063788

Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode
=reply&p=4063788
__ ____ ____ ____ ____ ____ ____ ____ ____ ____
jboss-user mailing list
jboss-user@(protected)
https://lists.jboss.org/mailman/listinfo/jboss-user

©2008 junlu.com - Jax Systems, LLC, U.S.A.