[JBoss Seam] - Re: Framework: Counting query entities
by CptnKirk
Looks like a problem to me. As a work around try something like:
@Name("myQuery")
| public class MyQuery extends EntityQuery
| {
| protected String getCountEjbql()
| {
| return "select count(*) without fetch";
| }
|
| public String getEjbql()
| {
| return "original query";
| }
| }
|
Not as great as the components.xml solution, but should keep you functioning until this is sorted out.
Oh what the heck, you should be able to smack things around a bit. Maybe even even include some components.xml like this.
<component name="someQuery" auto-create="true" class="x.y.MyQuery">
| <property name="countEjbql">select count(*) no fetch</property>
| <property name="ejbql">original</property>
| </component>
|
| <component name="OtherQuery" auto-create="true" class="x.y.MyQuery">
| <property name="countEjbql"></property>
| <property name="ejbql"></property>
| </component>
not sure if the countEjbql stuff has a public setter might need to add one. I guess in the end you have something like:
public class PersonQuery extends EntityQuery
| {
| private String countEjbql;
|
| protected String getCountEjbql()
| {
| return countEjbql;
| }
|
| public void setCountEjbql(String query)
| {
| countEjbql = query;
| }
| }
I haven't tried any of this, but it sounds about right to me. Let me know.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037844#4037844
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037844
19 years, 1 month
[Performance Tuning] - stack size limit
by bentins
I've been reading through the posts here. I saw that it was recommended in many places to do the following setting on solaris:
| -XX:ThreadStackSize=128k
|
So I did it! But when I ran it I got an error stating that this new setting of 131072 Kb exceeds the exiting limit of 8192 kB. When I changed the limit to 131072 I got a different error stating:
| Exception in thread "main" java.lang.OutOfMemoryError: unable to create new native thread
| at java.lang.Thread.start(Native Method)
| at org.jboss.Main.main(Main.java:450)
|
can someone please shed some light. If my original limit is smaller and my application works (although I do have performance problems) Do I still have to change this?
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037838#4037838
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037838
19 years, 1 month
[EJB/JBoss] - Web service with EJB3.0
by spinergywmy
Hi,
I'm new to web service, and I'm using EJB3.0 to develop the project using eclipse jboss IDE tool. The propose project network architecture will have 3 server, one for apache web server, one jboss application server, and the last one will be treated as index/search server. The request will come from AS jboss to index/search server and response back to AS jboss. Therefore, I choose to use jboss web service. Unfortunately, I'm really not to sure how to develop a web service and interact between 2 servers, and how the wsdl is generated through build.xml?
Is anyone can guide me on how to build the web service or any examples or good tutorials that I can go through. Thank you.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4037835#4037835
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4037835
19 years, 1 month