[JBoss Seam] - Re: anyone success with seam-gen war to portal ?
by codelion
Jarkko,
You have mentioned in a past posting you got it to work. Can you share a working project?
If your project is confidential, I'd suggest make a super simple table, e.g. (Oracle example)
CREATE TABLE THINGS
| (
| ID VARCHAR(30) PRIMARY KEY not null,
| TITLE VARCHAR(100) not null,
| DESCRIPTION VARCHAR(200) not null
| )
then run seam setup (I tell it not to use existing tables at first, but I guess you could; also I've tested it for both .ear and .war), then run seam new-project, then run seam generate-entities (which you might not have to if you tell it to use existing tables at first).
You can test it by running ant for it to deploy.
I'd be happy to assist over IM or screen sharing to get to this point.
Then you'd have a project you can "turn into a portlet".
Once you have it working you can probably email a source archive, or if anyone here makes a JIRA issue, submit as attachment to a comment.
I'd be happy to analyze your creation and document it, fit for Seam reference or Wiki, if that's ok with you, assuming you don't have time to do that.
- Leo
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4016247#4016247
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4016247
19Â years, 2Â months
[EJB/JBoss] - read-ahead and optimization
by kanth_seenu
4.0.1sp1 version of jboss.
In order to optimize the execessive queries fired to database by getter methods, I tried using the read-ahead tag. I have given the details about my configuration
* @jboss.load-group
| * name="modules"
| * description="module fields used in query"
| * @jboss.read-ahead strategy = "on-find"
| * page-size = "200"
| * eager-load-group="modules"
|
| * @ejb.finder
| * signature="java.util.Collection findByTaskId(java.lang.Long taskid)"
| * query="SELECT DISTINCT OBJECT(o) FROM Task o WHERE o.taskid = ?1"
| * description=""
| * @jboss.query
| * description="This generates jboss-ql and overwrites the original query "
| * signature="java.util.Collection findByTaskId(java.lang.Long taskid)"
| * query="SELECT DISTINCT OBJECT(o) FROM Task o WHERE o.taskid = ?1"
| * eager-load-group="modules"
| * strategy="on-find"
| * page-size="200"
Add added @jboss.load-group name="modules" to my getter methods
but still I don't see any cache/optimization happening with my sql queries, issue persists
I have also removed the readonly attribute that I had set to the getter methods.
How to use the read-ahead attribute?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4016243#4016243
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4016243
19Â years, 2Â months