RE: [JBoss-user] http session status = broken?
It is intended to work. If it doesn't, make us know that. Take a fresh CVS snapshot (module jboss-3.0 from Branch_3_0). Cheers, Sacha -Message d'origine- De : [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]De la part de Dan K. Envoye : dimanche, 29 decembre 2002 18:53 A : [EMAIL PROTECTED] Objet : [JBoss-user] http session status = broken? Hi everyone, I'm a new user to jboss and am trying to figure out how to setup jboss clustering, with http session replication. I've scanned the mail archive for this list and it appears to be broken? Can I get a confirmation from people if it's really broken or if a particular setup is? However, if there is a way to get anything to work, I'd like to try it. I'm using jboss 3.0.4 and tried 3.0.5 rc2 from cvs Branch_3_0. Many thanks in advance! Regards, Dan --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Asking about Schedular Servlet in JBoss
Hi all, I was deploying my application under JRun 3.1 Web server, and I was using the "allaire.jrun.scheduler.CronService" servlet class that comes with JRun library, this servlet works as a schedular to call a URL every part of time that you specify, (I was using it, to control sending a Batch email functionality every two hours). So, any one know a substitute in JBoss that could help me to get the same functionality as JRun servlet class. Quick help is very thanked.
Re[2]: [JBoss-user] Question about CMP/CMR
Frank, if I understood you right, you want to map a CMR field with foreign key to a CMP field that is not a primary key. Currently, this is not supported. alex Sunday, December 29, 2002, 3:32:33 PM, you wrote: LF Hallo Alex, LF I know you ported this feature not long ago from HEAD to 3.2. LF I use HEAD here and use this new feature for Bean2, if I understand it LF right. LF Column festr.festa_serial is part of the primary key for festr and also LF foreign key for festr referencing festa.festa_serial. LF But if the foreign key field is not part of the primary key, like in LF Bean3 (febdr), the foreign key field must not be CMP-Field in the bean. LF It's automatically added because of CMR. LF As said, I would like jboss to recognize that the field already exists LF also in case of Bean3 and use this field for CMR. LF Frank LF Alex Loubyansky wrote: Hello Frank, in JBoss-3.2 (cvs version) you can map foreign key fields to primary key fields. This is done by specifying the same column names for foreign and primary key fields. alex Saturday, December 28, 2002, 9:12:26 PM, you wrote: LF JBoss-Head, JDK 1.4.1, Informix-DB LF Following given situation: LF Bean 1: LF Name=Festa, DBTable=festa, PK=festa_serial LF Bean 2: LF Name=Festr, DBTable=festr, PK=festa_serial+festr_pos_nr, FK=festa_serial - festa LF Bean 3: LF Name=febdr, DBTable=febdr, PK=febdr_serial, FK=festa_serial - festa LF As you can see, for bean 2 the CMR-Field festa_serial must be a LF CMP-Field, because it's part of the PK. LF For bean 3 the CMR-Field festa_serial must not be a CMP-Field. Otherwise LF you get a DeploymentException because of a wrong LF SQL-CreateTable-Statement. LF The field festa_serial is mentioned twice here. LF I would like JBoss to recognize that the CMR-Field is already there as a LF CMP-Field in both cases. LF So my question: Is this a Bug, a FeatureRequest or a must be which will LF not be changed ? -- Best regards, Alex Loubyansky --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] How to INSERT after ebjPostCreate versus ejbCreate
Rod, If you are using Oracle as your DB, then you can mark your CMR fk columns as DEFERRABLE INITIALLY DEFERRED. Oracle will only check the non-null constraints at commit time. Shouldn't be a problem for you. Other DBs may have something similar. Ciao, Jonathan Rod Macpherson [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 21.12.2002 19:53 Please respond to jboss-user To: [EMAIL PROTECTED] cc: Subject:[JBoss-user] How to INSERT after ebjPostCreate versus ejbCreate Calling an entity bean CMR setter method within ejbCreate is prohibited. The general solution is to make CMP calls within ejbCreate and CMR calls in ejbPostCreate. That solution does not work when the CMR field maps directly to a non-nullable required column value. WebLogic resolves this issue by deferring INSERT statements. How does one specify that option in JBoss? --- This SF.NET email is sponsored by: Order your Holiday Geek Presents Now! Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap, MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: Re[2]: [JBoss-user] Question about CMP/CMR
Are there any plans to support it? It would solve many problems (especially performance and lock problems in my application) -Original Message- From: Alex Loubyansky [mailto:[EMAIL PROTECTED]] Sent: Monday, December 30, 2002 12:19 PM To: Langelage, Frank Subject: Re[2]: [JBoss-user] Question about CMP/CMR Frank, if I understood you right, you want to map a CMR field with foreign key to a CMP field that is not a primary key. Currently, this is not supported. alex Sunday, December 29, 2002, 3:32:33 PM, you wrote: LF Hallo Alex, LF I know you ported this feature not long ago from HEAD to 3.2. LF I use HEAD here and use this new feature for Bean2, if I understand LF it LF right. LF Column festr.festa_serial is part of the primary key for festr and also LF foreign key for festr referencing festa.festa_serial. LF But if the foreign key field is not part of the primary key, like in LF Bean3 (febdr), the foreign key field must not be CMP-Field in the bean. LF It's automatically added because of CMR. LF As said, I would like jboss to recognize that the field already LF exists LF also in case of Bean3 and use this field for CMR. LF Frank LF Alex Loubyansky wrote: Hello Frank, in JBoss-3.2 (cvs version) you can map foreign key fields to primary key fields. This is done by specifying the same column names for foreign and primary key fields. alex Saturday, December 28, 2002, 9:12:26 PM, you wrote: LF JBoss-Head, JDK 1.4.1, Informix-DB LF Following given situation: LF Bean 1: LF Name=Festa, DBTable=festa, PK=festa_serial LF Bean 2: LF Name=Festr, DBTable=festr, PK=festa_serial+festr_pos_nr, FK=festa_serial - festa LF Bean 3: LF Name=febdr, DBTable=febdr, PK=febdr_serial, FK=festa_serial - LF festa LF As you can see, for bean 2 the CMR-Field festa_serial must be a LF CMP-Field, because it's part of the PK. LF For bean 3 the CMR-Field festa_serial must not be a CMP-Field. Otherwise LF you get a DeploymentException because of a wrong LF SQL-CreateTable-Statement. LF The field festa_serial is mentioned twice here. LF I would like JBoss to recognize that the CMR-Field is already there as a LF CMP-Field in both cases. LF So my question: Is this a Bug, a FeatureRequest or a must be which LF will LF not be changed ? -- Best regards, Alex Loubyansky --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Scheduler MBean Information
Hi All, About the scheduler in JBoss, I have searched the JBoss Forum, and found the following link http://www.jboss.org/online-manual/HTML/ch13s58.html talking about Scheduler, but it is talking about some pieces of code without mentioning where to put thise pieces of code (in which classes, what should be their names.) about the pieces of code here is some of them ---Date lNext = new Date( new Date().getTime() + Timer.ONE_MINUTE ); Integer lOneMinuteTimer = (Integer) lServer.invoke( lTimer.getObjectName(), "addNotification", new Object[] { "IDoNotKnowWhatTypeIs", "I call you with this timer once", // No user object null, // In one minute from now lNext, }, new String[] { "".getClass().getName(), "".getClass().getName(), "java.lang.Object", Date.class.getName() } );-lServer.addNotificationListener( lTimer.getObjectName(), // Notification Listener new NotificationListener() { public void handleNotification( Notification pNotification, Object pHandback ) { // Add here you call any code or application or perform whatever you want to System.out.println( "You got a Notification: " + pNotification ); } }, // Filter Listener new NotificationFilter() { public boolean isNotificationEnabled( Notification pNotification ) { if( pNotification instanceof TimerNotification ) { TimerNotification lTimerNotification = (TimerNotification) pNotification; return lTimerNotification.getNotificationID().equals( mTimerId ); } return false; } }, // No object handback necessary null );---
Re[4]: [JBoss-user] Question about CMP/CMR
Monday, December 30, 2002, 3:50:11 PM, you wrote: PK Are there any plans to support it? Yes. alex PK It would solve many problems (especially performance and lock problems PK in my application) PK -Original Message- PK From: Alex Loubyansky [mailto:[EMAIL PROTECTED]] PK Sent: Monday, December 30, 2002 12:19 PM PK To: Langelage, Frank PK Subject: Re[2]: [JBoss-user] Question about CMP/CMR PK Frank, PK if I understood you right, you want to map a CMR field with foreign key PK to a CMP field that is not a primary key. Currently, this is not PK supported. PK alex PK Sunday, December 29, 2002, 3:32:33 PM, you wrote: LF Hallo Alex, LF I know you ported this feature not long ago from HEAD to 3.2. LF I use HEAD here and use this new feature for Bean2, if I understand LF it LF right. LF Column festr.festa_serial is part of the primary key for festr and PK also LF foreign key for festr referencing festa.festa_serial. LF But if the foreign key field is not part of the primary key, like in LF Bean3 (febdr), the foreign key field must not be CMP-Field in the PK bean. LF It's automatically added because of CMR. LF As said, I would like jboss to recognize that the field already LF exists LF also in case of Bean3 and use this field for CMR. LF Frank LF Alex Loubyansky wrote: Hello Frank, in JBoss-3.2 (cvs version) you can map foreign key fields to primary key fields. This is done by specifying the same column names for foreign and primary key fields. alex Saturday, December 28, 2002, 9:12:26 PM, you wrote: LF JBoss-Head, JDK 1.4.1, Informix-DB LF Following given situation: LF Bean 1: LF Name=Festa, DBTable=festa, PK=festa_serial LF Bean 2: LF Name=Festr, DBTable=festr, PK=festa_serial+festr_pos_nr, FK=festa_serial - festa LF Bean 3: LF Name=febdr, DBTable=febdr, PK=febdr_serial, FK=festa_serial - LF festa LF As you can see, for bean 2 the CMR-Field festa_serial must be a LF CMP-Field, because it's part of the PK. LF For bean 3 the CMR-Field festa_serial must not be a CMP-Field. PK Otherwise LF you get a DeploymentException because of a wrong LF SQL-CreateTable-Statement. LF The field festa_serial is mentioned twice here. LF I would like JBoss to recognize that the CMR-Field is already PK there as a LF CMP-Field in both cases. LF So my question: Is this a Bug, a FeatureRequest or a must be which LF will LF not be changed ? -- Best regards, Alex Loubyansky --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Date and jboss
Kiuma, I don't understand your question. Can you restate the question a different way? -dain On Saturday, December 28, 2002, at 08:16 AM, kiuma wrote: Hello, I was wondering about dates and queries. If I have a myCalendar created with new GragorianCalendar() and a where clause like day = ?1. Suppose now that myCalendar is 1/1/2003 23:59:59 99 . What happens if i pass myCalendar.getTime() ? If I have a row with day = 1/1/2003 15:59:59 99, Is this row in result set ? Tahnks and Happy NY, kiuma --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Asking about Schedular Servlet in JBoss
Use Quartz: http://www.part.net/quartz.html. Works for me... -b -Original Message-From: Thaer Hani Al-Ibaisi [mailto:[EMAIL PROTECTED]]Sent: Monday, December 30, 2002 3:48 AMTo: [EMAIL PROTECTED]Subject: [JBoss-user] Asking about Schedular Servlet in JBoss Hi all, I was deploying my application under JRun 3.1 Web server, and I was using the "allaire.jrun.scheduler.CronService" servlet class that comes with JRun library, this servlet works as a schedular to call a URL every part of time that you specify, (I was using it, to control sending a Batch email functionality every two hours). So, any one know a substitute in JBoss that could help me to get the same functionality as JRun servlet class. Quick help is very thanked.
RE: [JBoss-user] How to INSERT after ebjPostCreate versus ejbCreate
nice, thanks Jonathan. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jonathan.O'[EMAIL PROTECTED] Sent: Monday, December 30, 2002 6:10 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] How to INSERT after ebjPostCreate versus ejbCreate Rod, If you are using Oracle as your DB, then you can mark your CMR fk columns as DEFERRABLE INITIALLY DEFERRED. Oracle will only check the non-null constraints at commit time. Shouldn't be a problem for you. Other DBs may have something similar. Ciao, Jonathan Rod Macpherson [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 21.12.2002 19:53 Please respond to jboss-user To: [EMAIL PROTECTED] cc: Subject:[JBoss-user] How to INSERT after ebjPostCreate versus ejbCreate Calling an entity bean CMR setter method within ejbCreate is prohibited. The general solution is to make CMP calls within ejbCreate and CMR calls in ejbPostCreate. That solution does not work when the CMR field maps directly to a non-nullable required column value. WebLogic resolves this issue by deferring INSERT statements. How does one specify that option in JBoss? --- This SF.NET email is sponsored by: Order your Holiday Geek Presents Now! Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap, MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Question about CMP/CMR
Alex Loubyansky wrote: Frank, if I understood you right, you want to map a CMR field with foreign key to a CMP field that is not a primary key. Currently, this is not supported. Yeah I also removed foreign key constraints from my tables. This is pretty silly though. How are other people handling this? Use another CMP2 engine? I can image that for many projects it is a requirement to have foreign keys or map to existing databases. How do you solve that with JBoss? S. --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Help request: Deploying separated EJB and Web containers
Title: Help request: Deploying separated EJB and Web containers Hi all, I have an application that is using container-managed authentication via Catalina Realms and would like to deploy it separately of the EJB container. I've tried a few different setups, but none of them have really panned out yet. It all seems like a pretty common situation, so I must be missing something. I've read the most recent clustering docs, but all I've been able to pull from them is how to make all the containers identical copies of each other. Instead, I'd like the EJB container to talk to the database, and the web container to talk only to the EJB container over network RMI. (In other words, it will eventually be useful that the web container is clustered separately from a cluster of EJB containers, but the two should not be collocated in the same VM.) This is because the EJB calls are more rare than the general web container accesses, so the final deployment will likely have numerous web containers talking to a single EJB container. I've gotten all this to work in various forms, but am having problems with using a Tomcat-managed form-based login in the web container and having form the principal and credential for access to protected EJBs. Is anyone doing anything similar to this that you could share experiences on? Thanks for your consideration, Brian --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Question about CMP/CMR
On Monday, December 30, 2002, at 10:55 AM, Stefan Arentz wrote: Alex Loubyansky wrote: Frank, if I understood you right, you want to map a CMR field with foreign key to a CMP field that is not a primary key. Currently, this is not supported. Yeah I also removed foreign key constraints from my tables. This is pretty silly though. How are other people handling this? Use another CMP2 engine? I can image that for many projects it is a requirement to have foreign keys or map to existing databases. How do you solve that with JBoss? You don't. CMP in JBoss 3.0 is designed to meet the spec requirements and not much else. In JBoss 4.0 we will address legacy database structure support and mapping to non JDBC data sources. -dain --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] How to INSERT after ebjPostCreate versus ejbCreate
I've had a lot of Oracle DBAs tell me that DEFERRABLE INITIALLY DEFERRED does very bad things to Oracle. I don't remember the details, but it was bad enough that I gave up on some code that depended on it. -dain On Monday, December 30, 2002, at 10:17 AM, Bill Burke wrote: nice, thanks Jonathan. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]On Behalf Of Jonathan.O'[EMAIL PROTECTED] Sent: Monday, December 30, 2002 6:10 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] How to INSERT after ebjPostCreate versus ejbCreate Rod, If you are using Oracle as your DB, then you can mark your CMR fk columns as DEFERRABLE INITIALLY DEFERRED. Oracle will only check the non-null constraints at commit time. Shouldn't be a problem for you. Other DBs may have something similar. Ciao, Jonathan Rod Macpherson [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 21.12.2002 19:53 Please respond to jboss-user To: [EMAIL PROTECTED] cc: Subject:[JBoss-user] How to INSERT after ebjPostCreate versus ejbCreate Calling an entity bean CMR setter method within ejbCreate is prohibited. The general solution is to make CMP calls within ejbCreate and CMR calls in ejbPostCreate. That solution does not work when the CMR field maps directly to a non-nullable required column value. WebLogic resolves this issue by deferring INSERT statements. How does one specify that option in JBoss? --- This SF.NET email is sponsored by: Order your Holiday Geek Presents Now! Green Lasers, Hip Geek T-Shirts, Remote Control Tanks, Caffeinated Soap, MP3 Players, XBox Games, Flying Saucers, WebCams, Smart Putty. T H I N K G E E K . C O M http://www.thinkgeek.com/sf/ ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] CMR jboss-ql finder problem when relation is null
Using Jboss 3.20 beta 2 with the Microsoft SQL 2000 JDBC driver. I'm having a problem with CMR that I'm trying to figure out. I have tasks and destinations. Each task can have 0 or 1 destinations. Each destination can have 0 or more tasks. I'm trying to create a finder usable from the task home interface that returns an ordered collection of tasks. The finder I've created fails to return tasks with a null destination. I think sql overrides are breaking down to a SQL call using inner joins. I'm going to try using declared sql with just the order specified, but I thought I should report this if it turns out to be an actual problem. Thanks, Paul Here are the xdoclet 1.2 finder tags * @ejb.finder signature=java.util.Collection findPendingWinPrint() * query=SELECT OBJECT(t) FROM task t WHERE ((t.taskState.iD = 0) OR (t.taskState.iD = 1) OR (t.taskState.iD = 2)) AND (t.taskType.iD = 5) * * @jboss.query signature=java.util.Collection findPendingWinPrint() * query=SELECT OBJECT(t) FROM task t WHERE ((t.taskState.iD = 0) OR (t.taskState.iD = 1) OR (t.taskState.iD = 2)) AND (t.taskType.iD = 5) ORDER BY t.printerInternal.iD, t.destination.iD, t.nameInternal,t.companyInternal Here are the xdoclet 1.2 relation tags -- * @ejb.relation name=Destination-Task * role-name=task-has-destination * target-ejb=Destination * target-role-name=destination-has-tasks * target-multiple=yes * * @jboss.relation fk-column=DESTINATION_ID * related-pk-field=iD Here is the ejb-jar.xml entity deployment - entity description![CDATA[CMP Entity that represents a task.]]/description display-namePrintlogic Task Entity/display-name ejb-nameTask/ejb-name local-homecom.diem.printlogic.interfaces.TaskLocalHome/local-home localcom.diem.printlogic.interfaces.TaskLocal/local ejb-classcom.diem.printlogic.entity.TaskCMP/ejb-class persistence-typeContainer/persistence-type prim-key-classjava.lang.Integer/prim-key-class reentrantFalse/reentrant cmp-version2.x/cmp-version abstract-schema-nametask/abstract-schema-name cmp-field description![CDATA[Retrieves the unique identifier.]]/description field-nameiD/field-name /cmp-field !-- Other fields removed for sake of brevity -- primkey-fieldiD/primkey-field query query-method method-namefindPendingWinPrint/method-name method-params /method-params /query-method ejb-ql![CDATA[SELECT OBJECT(t) FROM task t WHERE ((t.taskState.iD = 0) OR (t.taskState.iD = 1) OR (t.taskState.iD = 2)) AND (t.taskType.iD = 5)]]/ejb-ql /query /entity Here is the ejb-jar.xml relation deployment information --- ejb-relation ejb-relation-namePrinter-Task/ejb-relation-name ejb-relationship-role ejb-relationship-role-nametask-has-printer/ejb-relationship-role-name multiplicityMany/multiplicity relationship-role-source ejb-nameTask/ejb-name /relationship-role-source cmr-field cmr-field-nameprinterInternal/cmr-field-name /cmr-field /ejb-relationship-role ejb-relationship-role ejb-relationship-role-nameprinter-has-tasks/ejb-relationship-role-nam e multiplicityOne/multiplicity relationship-role-source ejb-namePrinter/ejb-name /relationship-role-source /ejb-relationship-role /ejb-relation Here is the jbosscmp-jdbc.xml deployment information entity ejb-nameTask/ejb-name create-tabletrue/create-table remove-tablefalse/remove-table table-nameTASK/table-name !-- Fields removed for sake of brevity -- query query-method method-namefindPendingWinPrint/method-name method-params /method-params /query-method jboss-ql![CDATA[SELECT OBJECT(t) FROM task t WHERE ((t.taskState.iD = 0) OR (t.taskState.iD = 1) OR (t.taskState.iD = 2)) AND (t.taskType.iD = 5) ORDER BY t.printerInternal.iD, t.destination.iD, t.nameInternal,t.companyInternal]]/jboss-ql /query /entity --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Question about CMP/CMR
Stefan, Most of our tables use a generated key (via an Oracle Sequence) as the primary key. Any tables that wanty a foreign key reference to this, always use this generated key. Can you give an example where you want to have some other field or combination of fields as a unique reference to a foreign table? I would think this is probably a bad idea in the long run. HTH, Jonathan O'Connor Stefan Arentz [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 30.12.2002 16:55 Please respond to jboss-user To: [EMAIL PROTECTED] cc: Subject:Re: [JBoss-user] Question about CMP/CMR Alex Loubyansky wrote: Frank, if I understood you right, you want to map a CMR field with foreign key to a CMP field that is not a primary key. Currently, this is not supported. Yeah I also removed foreign key constraints from my tables. This is pretty silly though. How are other people handling this? Use another CMP2 engine? I can image that for many projects it is a requirement to have foreign keys or map to existing databases. How do you solve that with JBoss? S. --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Build Problem - JBoss4 Alpha - Latest checkin works fine!!!!
It works fine... thanks MS -Original Message- From: David Jencks [mailto:[EMAIL PROTECTED]] Sent: Saturday, December 28, 2002 5:56 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Build Problem - JBoss4 Alpha I find on linux and mac osx trying to build twice succeeds. There are two known problems on windows xp with cygwin with jdk 1.3.1: bad line ending in generated .cvspass and xdoclet build can't find correct xml parser. I hope to have the problems with windows + cygwin fixed later today wo building twice works. If you are haveing other problems please be specific. thanks david jencks On 2002.12.28 04:32:07 -0500 Sasidharan, Manoj wrote: Hello All, I am facing some build problems trying to compile JBoss 4.0.0 Alpha. Any ideas??? Does it requires some more sources for XDoclet??? Please advice. Thanks and Best Regards MS --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Question about CMP/CMR
On Monday, Dec 30, 2002, at 18:27 Europe/Amsterdam, Dain Sundstrom wrote: On Monday, December 30, 2002, at 10:55 AM, Stefan Arentz wrote: Alex Loubyansky wrote: Frank, if I understood you right, you want to map a CMR field with foreign key to a CMP field that is not a primary key. Currently, this is not supported. Yeah I also removed foreign key constraints from my tables. This is pretty silly though. How are other people handling this? Use another CMP2 engine? I can image that for many projects it is a requirement to have foreign keys or map to existing databases. How do you solve that with JBoss? You don't. CMP in JBoss 3.0 is designed to meet the spec requirements and not much else. In JBoss 4.0 we will address legacy database structure support and mapping to non JDBC data sources. Huh? Foreign keys are *legacy* database structure? S. --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Question about CMP/CMR
On Monday, Dec 30, 2002, at 19:10 Europe/Amsterdam, Jonathan.O'[EMAIL PROTECTED] wrote: Stefan, Most of our tables use a generated key (via an Oracle Sequence) as the primary key. Any tables that wanty a foreign key reference to this, always use this generated key. Yeah that is exactly what I am doing. However, I like to have real constraints because I also have other clients access the database. Can you give an example where you want to have some other field or combination of fields as a unique reference to a foreign table? Euh. The only thing I want is foreign keys with real constraints :-) S. --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Problem with ServiceController.create( ObjectName, Collection )
Hello, SHORT VERSION: If I set my user MBeans to be dependent on the LocalTxConnectionManager, I can no longer successfully recycle my connection pool. LONG VERSION: (I am running JBoss 3.0.4, JDK 1.4.1_01, Win2K) I am using an MBean configuration file, sybase-service.xml, which is laid out almost identically to the hsqldb-service.xml file. It contains a LocalTxCM MBean, which is dependent on a LocalTxDS MBean and a LocalTXPool MBean. Normally, if I touch sybase-service.xml everything works great. ServiceController.install() is called with LocalTxCM, LocalTxDS, and LocalTxPool. ServiceController.create() is called with LocalTxCM, but it waits because the iDependOn beans haven't been created yet. After LocalTxPool is created, we iterate through the dependsOnMe mbeans and the LocalTxCM MBean is created. All is good. But if I introduce my own MBeans that are dependent on the database connection pool, then the ServiceController.create() method behaves differently. I use the following tag in my user MBeans: dependsjboss.jca:service=LocalTxCM,name=sybaseDS/depends Now I can start the JBoss server just fine. But if I recycle the connection pool, here is what happens: ServiceController.install() is called just as before. The ServiceContexts for all three MBeans look fine. In particular, the iDependOn and the dependsOnMe lists are correct, and my userMBeans have been added to the dependsOnMe list for LocalTxCM. When ServiceController.create() method is called on LocalTxCM, it defers again. When ServiceController.create() is called on the other two MBeans, it seems to succeed. The create() methods are successfully executed on these MBeans. Thanks to dependsOnMe, ServiceController.create() is called on LocalTxCM again. But now when we get the ServiceContexts in the iDependOn list for LocalTxCM, they are all defined as state: NOTYETINSTALLED. So LocalTxCM still fails to create because it believes its dependent MBeans have not yet been created. This leads to the predictable log message: ERROR [URLDeploymentScanner] MBeanException: Exception in MBean operation 'checkIncompleteDeployments()' Cause: Incomplete Deployment listing: Packages waiting for a deployer: none Incompletely deployed packages: none MBeans waiting for classes: none MBeans waiting for other MBeans: ... ObjectName: jboss.jca:service=LocalTxCM,name=sybaseDS state: CONFIGURED I Depend On: jboss.jca:service=LocalTxDS,name=sybaseDS jboss.jca:service=LocalTxPool,name=sybaseDS jboss.jca:service=CachedConnectionManager jboss.security:service=JaasSecurityManager jboss.jca:service=RARDeployer jboss.jca:service=LocalTxDS,name=sybaseDS jboss.jca:service=LocalTxPool,name=sybaseDS Depends On Me: (My User MBeans) Should I submit this as a bug? Is there any other way to get my MBeans to depend on the database connection pool? Thanks, Corby _ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemailxAPID=42PS=47575PI=7324DI=7474SU= http://www.hotmail.msn.com/cgi-bin/getmsgHL=1216hotmailtaglines_addphotos_3mf --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] http session status = broken?
Hi everyone, I'm a new user to jboss and am trying to figure out how to setup jboss clustering, with http session replication. I've scanned the mail archive for this list and it appears to be broken? Can I get a confirmation from people if it's really broken or if a particular setup is? However, if there is a way to get anything to work, I'd like to try it. I'm using jboss 3.0.4 and tried 3.0.5 rc2 from cvs Branch_3_0. Http session replication with jetty (standart jboss) has some problems, in particular about getting failover to work properly. Besides the failover problem (some locking or being unable to syncronize) http session replication worked without a problem for me. Jules is working on this problem with Jetty. Dunno how good JBoss + Tomcat works regarding http session replication. One other thing that crossed my mind was that maybe it's possible to use the ejb clustering framework with the http session aswell, instead of using the standart jetty implementation. I remember seeing refered in the clustering manual some option that would do this, but never tried it. Sacha, as you're more use to this ejb clustering framework, maybe you know something about this possibility. Is it worth a try? -- João Pedro Clemente - jpcl (at) rnl ist utl pt --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Problem with ServiceController.create( ObjectName, Collection )
Please file a bug and assign it to me. Please include at least this much info. if you want to speed things up, if you can turn your problem into a test case in the org.jboss.test.jmx.test package that would be really helpful. BTW I notice another problem... the dependencies are getting repeated on restart. Thanks david jencks On 2002.12.30 17:05:00 -0500 Corby Page wrote: Hello, SHORT VERSION: If I set my user MBeans to be dependent on the LocalTxConnectionManager, I can no longer successfully recycle my connection pool. LONG VERSION: (I am running JBoss 3.0.4, JDK 1.4.1_01, Win2K) I am using an MBean configuration file, sybase-service.xml, which is laid out almost identically to the hsqldb-service.xml file. It contains a LocalTxCM MBean, which is dependent on a LocalTxDS MBean and a LocalTXPool MBean. Normally, if I touch sybase-service.xml everything works great. ServiceController.install() is called with LocalTxCM, LocalTxDS, and LocalTxPool. ServiceController.create() is called with LocalTxCM, but it waits because the iDependOn beans haven't been created yet. After LocalTxPool is created, we iterate through the dependsOnMe mbeans and the LocalTxCM MBean is created. All is good. But if I introduce my own MBeans that are dependent on the database connection pool, then the ServiceController.create() method behaves differently. I use the following tag in my user MBeans: dependsjboss.jca:service=LocalTxCM,name=sybaseDS/depends Now I can start the JBoss server just fine. But if I recycle the connection pool, here is what happens: ServiceController.install() is called just as before. The ServiceContexts for all three MBeans look fine. In particular, the iDependOn and the dependsOnMe lists are correct, and my userMBeans have been added to the dependsOnMe list for LocalTxCM. When ServiceController.create() method is called on LocalTxCM, it defers again. When ServiceController.create() is called on the other two MBeans, it seems to succeed. The create() methods are successfully executed on these MBeans. Thanks to dependsOnMe, ServiceController.create() is called on LocalTxCM again. But now when we get the ServiceContexts in the iDependOn list for LocalTxCM, they are all defined as state: NOTYETINSTALLED. So LocalTxCM still fails to create because it believes its dependent MBeans have not yet been created. This leads to the predictable log message: ERROR [URLDeploymentScanner] MBeanException: Exception in MBean operation 'checkIncompleteDeployments()' Cause: Incomplete Deployment listing: Packages waiting for a deployer: none Incompletely deployed packages: none MBeans waiting for classes: none MBeans waiting for other MBeans: ... ObjectName: jboss.jca:service=LocalTxCM,name=sybaseDS state: CONFIGURED I Depend On: jboss.jca:service=LocalTxDS,name=sybaseDS jboss.jca:service=LocalTxPool,name=sybaseDS jboss.jca:service=CachedConnectionManager jboss.security:service=JaasSecurityManager jboss.jca:service=RARDeployer jboss.jca:service=LocalTxDS,name=sybaseDS jboss.jca:service=LocalTxPool,name=sybaseDS Depends On Me: (My User MBeans) Should I submit this as a bug? Is there any other way to get my MBeans to depend on the database connection pool? Thanks, Corby _ Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemailxAPID=42PS=47575PI=7324DI=7474SU= http://www.hotmail.msn.com/cgi-bin/getmsgHL=1216hotmailtaglines_addphotos_3mf --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Scheduler in JBoss
All, Please for who worked on Scheduler and know how to use it in JBoss, please specify the needed steps for me to configure a Timer on Jboss to call the following URL every 30 minutes from the starting of the JBoss Server (Using JBoss 3.0.4). --- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user