[JBoss-user] [EJB/JBoss] - Cannot create EntityBean /JB3.2.5
Hello, Today I tried to change from JBoss 3.2.3 to JBoss 3.2.5. Although I think that I have made all needed configurations to JBoss 3.2.5 I now have a strange problem: My application works fine as long as I only try to read EntityBeans. But when I call any create-Method nothing happens. Also no exception is thrown. It seems that the execution is just stopped. I can call other methods, business or readonly, so it's no loop or server blocking. Sth like this: log.debug("Trying to create an Instance..."); myBean = myBeanHome.create(); log.debug("Creation was successful"); But only the first statement is logged, then nothing else happens. Does anyone know if there have been made some changes concerning ejbCreate-methods between 3.2.3 and 3.2.5? Also if you have an idea where I could look for a missing configuration feel free to tell me. Thx a lot in advance. Konstantinidis View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3841110#3841110 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3841110 --- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence & CMP/JBoss] - Re: How to use Subqueries in a finder-Method???
Okay, I tried the DeclaredSQL and it seems that it might work. There was no exception at deployment, but I had no time to test it. The XDoclet tag is @jboss.declared-sql (look at http://xdoclet.sourceforge.net/xdoclet/index.html for further details) But now I have a new problem: with DeclaredSQL it seems that I cant use aggregate functions in the SELECT-Clause. So it seems to work well if I only need columns. Does anyone know a solution? (okay, I could create a PreparedStatement, but...) Lachdanan View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3834592#3834592 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3834592 --- This SF.Net email is sponsored by Sleepycat Software Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO. http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence & CMP/JBoss] - Re: How to JOIN several Tables in Finder-Methods
Hello, Pascal, thx for your answer! Perhaps I didnt ask well. The problem is that I have a hierarchy like A M <--> 1 B M< --> 1 C M <--> 1 D (where A, B, C, D are the table names and M = many) and I want to get some Entities from C, but I have to make a JOIN on all tables A, B, C, D because decision what records are selected depends on some fields in A, B, C, D. So when I write a finder-method for Bean C can I write f.e.: SELECT OBJECT(c) FROM C c WHERE C.B.A.field = ? AND C.B.field = ? Would the parser accept that? Would I have to define some new Relations (from C to B, from B to A)? When I would need A-Entities it would be exactly what you wrote! But in this case I dont know. anonymous wrote : I did not myself try to navigate in the FROM clause. I just test the deployment, it is OK: this means that the EJB-QL parser is OK too. | I dont understand that. I always write the finder-method, create the interfaces with XDoclet, deploy the beans to JBoss and restart JBoss to show me if it works. This is quite unproductive. Is there a better and faster way?? Thx for your help! Lachdanan View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3834589#3834589 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3834589 --- This SF.Net email is sponsored by Sleepycat Software Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO. http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence & CMP/JBoss] - Re: How to use Subqueries in a finder-Method???
Hello, and thx again for your fast answer! :-) Yes, getting an ordered collection and taking the last object is the way I go atm. But as I dont know exactly how many rows will be affected, I thought there might be a better solution. I also have never used DeclaredSQL. But perhaps I should take a look at it! If anyone who reads this post should have an example how to use DeclaredSQL in this special case, just post it! :-) And if someone also knows the XDoclet tags (because manual creation is not the right way! :-)), please also post it here. Thx Lachdanan View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3834490#3834490 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3834490 --- This SF.Net email is sponsored by Sleepycat Software Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO. http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence & CMP/JBoss] - Re: How to use Subqueries in a finder-Method???
Hello, thx for your fast answer! :-) Well, I read the Specs. But "not specified" does not mean "not supported by JBoss". That's the reason for JBossQL. But I didnt find some good description and especially some good examples in the JBoss Docs. Do you know some? I know that the IN Operator within the FROM-Clause is used for CMR. That's why I said I think I cant use FROM ..., IN(a.anotherTableDetails) f.e. because a.anotherTableDetails would relate back to a in my case. Or is it possible to define a Relation on itself? Again, thx for your answer. Lachdanan View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3834481#3834481 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3834481 --- This SF.Net email is sponsored by Sleepycat Software Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO. http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence & CMP/JBoss] - How to JOIN several Tables in Finder-Methods
Hello, I would like to transform a SQL-Statement like the following to a finder- (or Selector-)Method: SELECT c.id FROM myC c JOIN myB b ON b.id_c = c.id JOIN myA a ON a.id_b= b.id JOIN myD d ON c.id_d = d.id WHERE a.myFieldFromA = 1 AND c.myFieldFromC = 2 AND d.myFieldFromD = 3 The problem is that I want to get a Bean from within the hierarchy, not from the beginning. So SELECT Object (c) FROM myC c, IN(c.myDdetails) d WHERE ... would be okay for myC and myD, but what about the others? Do I have to write the finder-Method in the Bean at the bottom of the hierarchy although I want a Collection of Beans from a higher lvl? Would that work ? SELECT Object(c) FROM myA a, IN(a.myBdetails) AS b, IN(b.myCdetails) AS c, IN(c.myCdetails) AS d WHERE... (look at the Object(c)) Thx for help in advance! Lachdanan View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3834477#3834477 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3834477 --- This SF.Net email is sponsored by Sleepycat Software Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO. http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence & CMP/JBoss] - How to use Subqueries in a finder-Method???
Hello, I would like to create a finder-Method with a query like the following: SELECT Object(a) FROM myTable AS a WHERE a.date = (SELECT MAX(b.date) FROM myTable AS b) But when I make it this way I always get a ParseException. The two problems, in my opinion, are that the return value of the subquery is the result of an aggregate function and that in both queries the same table is accessed, so I think I cant use FROM ..., IN(a.anotherTableDetails) f.e. Thx for help or ideas in advance. Lachdanan View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3834446#3834446 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3834446 --- This SF.Net email is sponsored by Sleepycat Software Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO. http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user