Re: [JBoss-user] Jboss and Xdoclet problem
Jos, thank you for your answers. I downloaded 1.2b3 and now I can deploy automatically. Cheerse, Marco - Original Message - From: Jos Visser [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: Marco Tedone [EMAIL PROTECTED] Sent: Tuesday, June 17, 2003 8:17 AM Subject: Re: [JBoss-user] Jboss and Xdoclet problem Further to this thread: I did some digging around in the XDoclet source code and found out that the templates that XDoclet 1.2b2 uses for generating the JBoss XML descriptors support JBoss versions 2.4, 3.0, 3.0.1, 3.0.2, 3.0.3 and 3.1. Fortunately, XDoclet 1.2b3 (released last week) seems to support JBoss 3.2 and 4.0 as well (I did a quick, cursory, overview of the source code) So, all you JBoss 3.2+ users, switch to the new XDoclet (I will :-)... The XML (and DOCTYPE) generated by XDoclet depends on the JBoss version that is passed in on the ANT task: jboss version=3.2 / So ++Jos.es On Sun, Jun 15, 2003 at 02:34:19PM -0400 it came to pass that Felipe Oliveira wrote: marco: try replacing the dtds...in your 3.1 instead of 3.0. here's the task i use target depends=xdoclet name=replace dtds replace dir=${build.dir}/xdoclet-classes/META-INF include name=*.xml/ replacefilter token=jboss_3_0.dtd value=jboss_3_2.dtd/ replacefilter token=jbosscmp-jdbc_3_0.dtd value=jbosscmp-jdbc_3_2.dtd/ replacefilter token=DTD JBOSS 3.0 value=DTD JBOSS 3.2/ replacefilter token=JBOSSCMP-JDBC 3.0 value=JBOSSCMP-JDBC 3.2/ /replace /target Marco Tedone wrote: Hi, I'm deploying some EJBs produced by XDoclet on Jboss. Everything works fine till I put the jar under Jboss and I receive the following exception: 18:08:24,750 ERROR [XmlFileLoader] The markup declarations contained or pointed to by the document type declaration must be well-formed.:3:1 org.xml.sax.SAXParseException: The markup declarations contained or pointed to by the document type declaration must be well-formed. . . . I saw that the problem is in the !DOCTYPE element of jboss.xml and jbosscmp-jdbc.xml files. If I delete the !DOCTYPE element from them, the deployment is succesfull. Here follows the jboss.xml file: ?xml version=1.0 encoding=UTF-8? !DOCTYPE jboss PUBLIC -//JBoss//DTD JBOSS 3.1//EN http://www.jboss.org/j2ee/dtd/jboss_3_1.dtd; jboss enterprise-beans !-- To add beans that you have deployment descriptor info for, add a file to your XDoclet merge directory called jboss-beans.xml that contains the session/session, entity/entity and message-driven/message-driven markup for those beans. -- entity ejb-namePeople/ejb-name local-jndi-nameejb/jemos/core/PeopleEJB/local-jndi-name method-attributes /method-attributes /entity session ejb-namePeopleDbManager/ejb-name jndi-nameejb/jemos/core/PeopleDbManager/jndi-name local-jndi-namePeopleDbManagerLocal/local-jndi-name /session /enterprise-beans resource-managers /resource-managers /jboss Here follows the jbosscmp-jdbc.xml file: ?xml version=1.0 encoding=UTF-8? !DOCTYPE jbosscmp-jdbc PUBLIC -//JBoss//DTD JBOSSCMP-JDBC 3.0//EN http://www.jboss.org/j2ee/dtd/jbosscmp-jdbc_3_0.dtd; jbosscmp-jdbc defaults /defaults enterprise-beans !-- To add beans that you have deployment descriptor info for, add a file to your XDoclet merge directory called jbosscmp-jdbc-beans.xml that contains the entity/entity markup for those beans. -- entity ejb-namePeople/ejb-name datasourcejava:/Jemos_MySQL/datasource datasource-mappingmySQL/datasource-mapping create-tabletrue/create-table pk-constrainttrue/pk-constraint cmp-field field-nameemail/field-name not-null/ /cmp-field cmp-field field-namepassword/field-name not-null/ /cmp-field cmp-field field-namefirstName/field-name /cmp-field cmp-field field-namelastName/field-name /cmp-field cmp-field field-nameaddress1/field-name /cmp-field cmp-field field-nameaddress2/field-name /cmp-field cmp-field field-nameaddress3/field-name /cmp-field cmp-field field-namezip/field-name /cmp-field cmp-field field-namecity/field-name /cmp-field cmp-field field-namecountry/field-name /cmp-field !-- merge point: jbosscmp-jdbc-load-{0}.xml -- /entity /enterprise-beans /jbosscmp-jdbc What's wrong with the !DOCTYPE declaration? Thanks in advance, Marco Tedone --- This SF.NET email is sponsored by: eBay Great deals on office technology -- on eBay now! Click here: http://adfarm.mediaplex.com/ad/ck/711-11697-6916-5 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.NET email is sponsored by: eBay Great deals on office
RE: [JBoss-user] Developing and debuging
You could always move to WebSphere. I've seen that take upwards of an hour to deploy things! :-) -- Danny Yates -Original Message- From: Peng Zhao [mailto:[EMAIL PROTECTED] Sent: 17 June 2003 22:40 To: [EMAIL PROTECTED] Subject: [JBoss-user] Developing and debuging I met a big problem when developing and debuging. If I deploy the application as a war file, the jboss needs about 30 seconds to deploy it. Although it is not too long, for developing and debuging it is not affordable! The time for waiting is longer than the time for fixxing the bug! If I deploy the application as a directory (e.g. app.war), the .jsp can be reloaded when I replace a .jsp file in the directory. But the .class file can not be updated once it has run. It seems the jboss has a cache for the loaded .class file. Because the debuging-deploying is so slow, I wasted a lot of time for even fixxing a small bug. Furthermore, the .jsp is so slow when first loaded from the web-client. Is that usual? Thanks! Peng --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity. If this email originates from the U.K. please note that Bank of America, N.A., London Branch, Banc of America Securities Limited and Banc of America Futures Incorporated are regulated by the Financial Services Authority. _ --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] SOAP Integration in JBoss 3.0
Hi, I'm using Jboss3.0 and I need to integrate SOAP. I have done my program simply using and configuring Tomcat, without running JBoss. What should I do with mail.jar, activation.jar, xerces.jar and soap.jar to make SOAP works inside Jboss ? Thanks in advanced. -- == Mr Maxime CHAMBREUIL Eng student in Information System Eng Dpt http://www.maxime-chambreuil.fr.st F113, 13, Av de la Mare aux Daims 76800 St ETIENNE du ROUVRAY FRANCE == -- == Mr Maxime CHAMBREUIL Eng student in Information System Eng Dpt http://www.maxime-chambreuil.fr.st F113, 13, Av de la Mare aux Daims 76800 St ETIENNE du ROUVRAY FRANCE == --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Who is using JBoss in production?
I've the experience of working in a large scale intranet system and a middleware system both running in JBoss. They both are functioning smoothly. The Intranet system is for a huge Financial Institution and is being used extensively by minumum of 100 users concurrently. JBoss is just simply superb. On 6/17/03 4:57 PM, Giorgio Ponza [EMAIL PROTECTED] wrote: I Use JBoss 2.4.7 in 3 machines, and 10 sites Never had problems, but are small traffic ones ;) Giorgio Hi all, I was wondering? How many of you are actually running production systems on JBoss? Grtz, --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ** This email and its attachments are intended for the above named only and may be confidential. If they have come to you in error, you must take no action based on them, nor must you copy or show them to anyone; please reply to this email and highlight the error. Security Warning: Please note that this email has been created in the knowledge that the internet email is not a 100% secure communications medium. We advise that you understand and observe this lack of security when emailing us. Viruses: Although we have taken steps to ensure that this email and attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus free. If you have received this email in error please notify: [EMAIL PROTECTED] ** --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Developing and debuging
You could always move to WebSphere. I've seen that take upwards of an hour to deploy things! :-) -- Danny Yates Or you could go back to the good old days, when Tomcat was in a separate VM and you either coded in a deployment kicker or stopped, deleted the WAR and restarted Tomcat. I also remember those Uni days when you had a timeshare of x seconds CPU time to compile your working assignment submission. Really made you think about what you were going to submit to the queue for compilation. Yes the JSP is always slower on the first run when you redeploy a WAR because it hasn't been compiled in memory yet. You can speed things up by forcing load-on-startup for that JSP. However, if the processor has its hands full doing the deployment, I'm guessing that it probably won't have time to compile before you want to use it. JonB. smime.p7s Description: S/MIME cryptographic signature
RE: [JBoss-user] EJB reference to external EJB
Title: RE: [JBoss-user] EJB reference to external EJB Thanks for your replies Scott and Dan. My understanding of what is being said... I have an EJB 1 in EAR A that wants to reference EJB 2 in EAR B where both EARs are deployed in the same VM. According to the EJB spec, l cant use local interfaces to do this because the specs ejb-local-ref doesnt accomdate this. According to the EJB spec, l CAN use remote interfaces to do this because ejb-ref does accomodate this. When l use remote interfaces to create the link between the two EJB's, l use ejb-ref in EJB 1's ejb-jar.xml to reference the remote interface of EJB 2. I also use ejb-ref/jndi-name in EJB 1's jboss.xml to reference the JNDI name in the global namespace of EJB 2's remote interface. Because both applications are in the same VM, JBoss uses the local interfaces of EJB 2 instead of the remote interfaces. So EJB 1's deployment descriptors would be, [ejb-jar.xml] entity ejb-nameEJB1/ejb-name ... ejb-ref ejb-ref-nameejb/EJB2/ejb-ref-name ejb-ref-typeSession/ejb-ref-type homecom.company.EJB2RemoteHome/home remotecom.company.EJB2Remote/remote /ejb-ref /entity [jboss.xml] entity ejb-nameEJB1/ejb-name ... ejb-ref ejb-ref-nameejb/EJB2/ejb-ref-name jndi-nameEJB2RemoteHome/jndi-name /ejb-ref /entity And EJB 2's descriptors would be, [ejb-jar.xml] session ejb-nameEJB2/ejb-name homecom.company.EJB2RemoteHome/home remotecom.company.EJB2Remote/remote ... /session [jboss.xml] session ejb-nameEJB2/ejb-name jndi-nameEJB2RemoteHome/jndi-name ... /session Is this correct? Thanks -Original Message- From: Scott M Stark [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 17, 2003 4:52 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] EJB reference to external EJB This cannot be done, the ejb-link has to refer to an ejb in the same application. The overhead introduced by the remote interface is optimized away by default so its a minor performance issue when the caller and callee are in the same vm. Scott Stark Chief Technology Officer JBoss Group, LLC - Original Message - From: Burns, Jamie To: '[EMAIL PROTECTED]' Sent: Tuesday, June 17, 2003 4:37 AM Subject: RE: [JBoss-user] EJB reference to external EJB Ok. That works. Thanks Dan. Now l am using remote interfaces between applications in the same VM. In this situation l want the performance benefits of using local interfaces. Ive had a look in the EJB spec and there doesnt seem to be anything in there to say an application cant have a local ref to an EJB in another application in the same VM. Im assuming the ejb-link element is available as a convenience. Is anyone able to provide some ejb-jar.xml and jboss.xml that shows an EJB in one application with a local ref to an EJB in another application in the same VM? Thanks. This electronic mail system is used for information purposes and is not intended to form any legal contract or binding agreement. The content is confidential and may be legally privileged. Access by anyone other than the addressee(s) is unauthorised and any disclosure, copying, distribution or any other action taken in reliance on it is prohibited and maybe unlawful All incoming and outgoing e-mail communications and attachments are scanned automatically by software designed to detect and remove any material containing viruses or other unauthorised content. While we undertake best endeavours to ensure that this content checking software is up to date, recipients should take steps to assure themselves that e-mails received are secure. ***
RE: [JBoss-user] EJB reference to external EJB
Title: Message Seems pretty straight to me. -- Danny Yates -Original Message-From: Burns, Jamie [mailto:[EMAIL PROTECTED] Sent: 18 June 2003 10:48To: '[EMAIL PROTECTED]'Subject: RE: [JBoss-user] EJB reference to external EJB Thanks for your replies Scott and Dan. My understanding of what is being said... I have an EJB 1 in EAR A that wants to reference EJB 2 in EAR B where both EARs are deployed in the same VM. According to the EJB spec, l cant use local interfaces to do this because the specs ejb-local-ref doesnt accomdate this. According to the EJB spec, l CAN use remote interfaces to do this because ejb-ref does accomodate this. When l use remote interfaces to create the link between the two EJB's, l use ejb-ref in EJB 1's ejb-jar.xml to reference the remote interface of EJB 2. I also use ejb-ref/jndi-name in EJB 1's jboss.xml to reference the JNDI name in the global namespace of EJB 2's remote interface. Because both applications are in the same VM, JBoss uses the local interfaces of EJB 2 instead of the remote interfaces. So EJB 1's deployment descriptors would be, [ejb-jar.xml] entity ejb-nameEJB1/ejb-name ... ejb-ref ejb-ref-nameejb/EJB2/ejb-ref-name ejb-ref-typeSession/ejb-ref-type homecom.company.EJB2RemoteHome/home remotecom.company.EJB2Remote/remote /ejb-ref /entity [jboss.xml] entity ejb-nameEJB1/ejb-name ... ejb-ref ejb-ref-nameejb/EJB2/ejb-ref-name jndi-nameEJB2RemoteHome/jndi-name /ejb-ref /entity And EJB 2's descriptors would be, [ejb-jar.xml] session ejb-nameEJB2/ejb-name homecom.company.EJB2RemoteHome/home remotecom.company.EJB2Remote/remote ... /session [jboss.xml] session ejb-nameEJB2/ejb-name jndi-nameEJB2RemoteHome/jndi-name ... /session Is this correct? Thanks -Original Message- From: Scott M Stark [mailto:[EMAIL PROTECTED]] Sent: Tuesday, June 17, 2003 4:52 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] EJB reference to external EJB This cannot be done, the ejb-link has to refer to an ejb in the same application. The overhead introduced by the remote interface is optimized away by default so its a minor performance issue when the caller and callee are in the same vm. Scott Stark Chief Technology Officer JBoss Group, LLC - Original Message - From: Burns, Jamie To: '[EMAIL PROTECTED]' Sent: Tuesday, June 17, 2003 4:37 AM Subject: RE: [JBoss-user] EJB reference to external EJB Ok. That works. Thanks Dan. Now l am using remote interfaces between applications in the same VM. In this situation l want the performance benefits of using local interfaces. Ive had a look in the EJB spec and there doesnt seem to be anything in there to say an application cant have a local ref to an EJB in another application in the same VM. Im assuming the ejb-link element is available as a convenience. Is anyone able to provide some ejb-jar.xml and jboss.xml that shows an EJB in one application with a local ref to an EJB in another application in the same VM? Thanks. This electronic mail system is used for information purposes and is not intended to form any legal contract or binding agreement. The content is confidential and may be legally privileged. Access by anyone other than the addressee(s) is unauthorised and any disclosure, copying, distribution or any other action taken in reliance on it is prohibited and maybe unlawful All incoming and outgoing e-mail communications and attachments are scanned automatically by software designed to detect and remove any material containing viruses or other unauthorised content. While we undertake best endeavours to ensure that this content checking software is up to date, recipients should take steps to assure themselves that e-mails received are secure. *** _ Notice to recipient: The information in this internet e-mail and any attachments is confidential and may be privileged. It is intended solely for the addressee. If you are not the intended addressee please notify the sender immediately by telephone. If you are not the intended recipient, any disclosure, copying, distribution or any action taken or omitted to be taken in reliance on it, is prohibited and may be unlawful. When addressed to external clients any opinions or advice contained in this internet e-mail are subject to the terms and conditions expressed in any applicable governing terms of business or client engagement letter issued by the pertinent Bank of America group entity. If this email originates from the U.K.
RE: [JBoss-user] EJB reference to external EJB
JBoss still uses the remote interfaces of ejb 2 (that is what you ask for) but the invocation has local interface semantics since, inside the vm, objects are not copied by jboss on a call through the remote interfaces. david jencks On 2003.06.18 05:47 Burns, Jamie wrote: Thanks for your replies Scott and Dan. My understanding of what is being said... I have an EJB 1 in EAR A that wants to reference EJB 2 in EAR B where both EARs are deployed in the same VM. According to the EJB spec, l cant use local interfaces to do this because the specs ejb-local-ref doesnt accomdate this. According to the EJB spec, l CAN use remote interfaces to do this because ejb-ref does accomodate this. When l use remote interfaces to create the link between the two EJB's, l use ejb-ref in EJB 1's ejb-jar.xml to reference the remote interface of EJB 2. I also use ejb-ref/jndi-name in EJB 1's jboss.xml to reference the JNDI name in the global namespace of EJB 2's remote interface. Because both applications are in the same VM, JBoss uses the local interfaces of EJB 2 instead of the remote interfaces. So EJB 1's deployment descriptors would be, [ejb-jar.xml] entity ejb-nameEJB1/ejb-name ... ejb-ref ejb-ref-nameejb/EJB2/ejb-ref-name ejb-ref-typeSession/ejb-ref-type homecom.company.EJB2RemoteHome/home remotecom.company.EJB2Remote/remote /ejb-ref /entity [jboss.xml] entity ejb-nameEJB1/ejb-name ... ejb-ref ejb-ref-nameejb/EJB2/ejb-ref-name jndi-nameEJB2RemoteHome/jndi-name /ejb-ref /entity And EJB 2's descriptors would be, [ejb-jar.xml] session ejb-nameEJB2/ejb-name homecom.company.EJB2RemoteHome/home remotecom.company.EJB2Remote/remote ... /session [jboss.xml] session ejb-nameEJB2/ejb-name jndi-nameEJB2RemoteHome/jndi-name ... /session Is this correct? Thanks -Original Message- From: Scott M Stark [mailto:[EMAIL PROTECTED] Sent: Tuesday, June 17, 2003 4:52 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] EJB reference to external EJB This cannot be done, the ejb-link has to refer to an ejb in the same application. The overhead introduced by the remote interface is optimized away by default so its a minor performance issue when the caller and callee are in the same vm. Scott Stark Chief Technology Officer JBoss Group, LLC - Original Message - From: Burns, Jamie To: '[EMAIL PROTECTED]' Sent: Tuesday, June 17, 2003 4:37 AM Subject: RE: [JBoss-user] EJB reference to external EJB Ok. That works. Thanks Dan. Now l am using remote interfaces between applications in the same VM. In this situation l want the performance benefits of using local interfaces. Ive had a look in the EJB spec and there doesnt seem to be anything in there to say an application cant have a local ref to an EJB in another application in the same VM. Im assuming the ejb-link element is available as a convenience. Is anyone able to provide some ejb-jar.xml and jboss.xml that shows an EJB in one application with a local ref to an EJB in another application in the same VM? Thanks. This electronic mail system is used for information purposes and is not intended to form any legal contract or binding agreement. The content is confidential and may be legally privileged. Access by anyone other than the addressee(s) is unauthorised and any disclosure, copying, distribution or any other action taken in reliance on it is prohibited and maybe unlawful All incoming and outgoing e-mail communications and attachments are scanned automatically by software designed to detect and remove any material containing viruses or other unauthorised content. While we undertake best endeavours to ensure that this content checking software is up to date, recipients should take steps to assure themselves that e-mails received are secure. *** !DOCTYPE HTML PUBLIC -//W3C//DTD HTML 3.2//EN HTML HEAD META HTTP-EQUIV=Content-Type CONTENT=text/html; charset=us-ascii META NAME=Generator CONTENT=MS Exchange Server version 5.5.2653.12 TITLERE: [JBoss-user] EJB reference to external EJB/TITLE /HEAD BODY PFONT SIZE=2Thanks for your replies Scott and Dan./FONT /P PFONT SIZE=2My understanding of what is being said.../FONT /P PFONT SIZE=2I have an EJB 1 in EAR A that wants to reference EJB 2 in EAR B where both EARs are deployed in the same VM. According to the EJB spec, l cant use local interfaces to do this because the specs ejb-local-ref doesnt accomdate this. According to the EJB spec, l CAN use remote interfaces to do this because ejb-ref does accomodate this./FONT/P PFONT SIZE=2When l use remote
[JBoss-user] EJB Local and Remote Interfaces.
Hi Gurus, The application currently I am working is having only Remote Interfaces. But there are scenarios, like the client never invoked the entity bean directly. Only the session bean invokes the entity bean. The client invokes the stateless session beans. In such a scenario, does the implementation of Local interface give a performance boost(in the sense, less memory usage, quick response, etc...) to the application?. (Actaully the application is having 5 VM interaction including JBoss. Hence the question ;-) Thanks Muraly --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] MANIFEST Class-Path entries and packaging
I've been trying to package up some libraries required by my EJB (MDB actually) into my MDB's jar file and make a Class-Path entry in the MANIFEST.MF to put those libraries into the classloader associated with this EJB only. My package (MyMDB.jar) basically looks like this: MyMDB.class /META-INF/MANIFEST.MF /META-INF/ejb-jar.xml /META-INF/jboss.xml /META-INF/lib/libs.jar The MANIFEST.MF contains a line that looks like this: Class-Path: META-INF/lib/libs.jar The JBoss 3.2.1 deployer complains that it cannot find the META-INF directory in the %JBOSS_HOME%/server/default/deploy directory. This is not surprising, since this is not where the jar file actually gets unpackaged when deployed. How do I package my libs and tell JBoss how to find them? Cheers. Steve Maring Tarpon Springs, FL _ The information transmitted is intended only for the person or entity to which it is addressed and may contain confidential and/or privileged material. Any review, retransmission, dissemination or other use of, or taking of any action in reliance upon, this information by persons or entities other than the intended recipient is prohibited. If you received this in error, please contact the sender and delete the material from any computer. --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] EJB Local and Remote Interfaces.
Using the local interface bypasses the need to use a PortableRemoteObject, which can be quite expensive. So the coding for local use is: Object ref = naming.lookup(DefinitionManagerLocal); DefinitionManagerLocalHome home = (DefinitionManagerLocalHome)ref; DefinitionManagerLocal definitionManager = home.create(); Definition localDefinition = definitionManager.EntityDefinition(entityID); definitionManager.remove(); Versus: Object ref = naming.lookup(DefinitionManager); DefinitionManagerHome home = (DefinitionManagerHome)PortableRemoteObject.narrow( reference, DefinitionManagerHome.class); DefinitionManager definitionManager = home.create(); Definition definition = definitionManager.EntityDefinition(entityID); definitionManager.remove(); Other than that, JBoss does some optimizations when it detects that the EJB communications are intra-container so using the remote interface is nearly as fast as using the local interface. But the little gains do add up if you have a lot of these communications. Hope that gets it right. JonB -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Muraly R Sent: Wednesday, 18 June 2003 11:35 PM To: [EMAIL PROTECTED] Subject: [JBoss-user] EJB Local and Remote Interfaces. Hi Gurus, The application currently I am working is having only Remote Interfaces. But there are scenarios, like the client never invoked the entity bean directly. Only the session bean invokes the entity bean. The client invokes the stateless session beans. In such a scenario, does the implementation of Local interface give a performance boost(in the sense, less memory usage, quick response, etc...) to the application?. (Actaully the application is having 5 VM interaction including JBoss. Hence the question ;-) Thanks Muraly --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user smime.p7s Description: S/MIME cryptographic signature
Re: [JBoss-user] EJB Local and Remote Interfaces.
Hi guys, We have an .ear file which contains a few properties files from which the system gets initialized. Since this properties files should be configurable, we thought of moving those configurable properties files away from the ear file. (like how log4j.xml is in conf folder) Which is the best way of doing it?. Can I place my properties in conf folder and read them from my application or can I place it as a separate jar file. Please pour in your suggestions. Thank you, Skely ** This email and its attachments are intended for the above named only and may be confidential. If they have come to you in error, you must take no action based on them, nor must you copy or show them to anyone; please reply to this email and highlight the error. Security Warning: Please note that this email has been created in the knowledge that the internet email is not a 100% secure communications medium. We advise that you understand and observe this lack of security when emailing us. Viruses: Although we have taken steps to ensure that this email and attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus free. If you have received this email in error please notify: [EMAIL PROTECTED] ** --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Unable to passivate due to ctx lock
Can anyone tell me the meaning of this messages? [...] 17:04:38,714 WARN [AbstractInstanceCache] Unable to passivate due to ctx lock, id=[.4228.] 17:04:39,020 WARN [AbstractInstanceCache] Unable to passivate due to ctx lock, id=[.46.] 17:04:39,727 WARN [AbstractInstanceCache] Unable to passivate due to ctx lock, id=[.937.] [...] Thanks! Davide signature.asc Description: PGP signature
Re: [JBoss-user] Unable to passivate due to ctx lock
The instances are locked and can't be passivated (evicted from the cache). Could you provide deployment info on the entities that can't be passivated? Specifically, do you have foreign keys mapped to CMP fields? alex Wednesday, June 18, 2003, 6:13:39 PM, Davide Pozza wrote: DP Can anyone tell me the meaning of this messages? DP [...] DP 17:04:38,714 WARN [AbstractInstanceCache] Unable to passivate due to DP ctx lock, id=[.4228.] DP 17:04:39,020 WARN [AbstractInstanceCache] Unable to passivate due to DP ctx lock, id=[.46.] DP 17:04:39,727 WARN [AbstractInstanceCache] Unable to passivate due to DP ctx lock, id=[.937.] DP [...] DP Thanks! DP Davide --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Building Jboss 4.0 from cvs
Hi, I'm interested in webservices in Jboss and particularly juddi integration in Jboss, that's why i would like tobuild the jboss 4.0 branch from cvs. Is it posible? or even, can i build only the jboss.net contrib? greets
Re: [JBoss-user] Building Jboss 4.0 from cvs
Alberto Rodriguez Galdo wrote: Hi, I'm interested in webservices in Jboss and particularly juddi integration in Jboss, that's why i would like to build the jboss 4.0 branch from cvs. Is it posible? or even, can i build only the jboss.net contrib? greets Yeap. You can follow intructions on sf.net page: http://sourceforge.net/cvs/?group_id=22866 Where module name will be jboss-head so you go to build folder and type execute the build script. It will compile jboss with jboss.net To compile just the jboss.net I think you can go in the jboss.net folder and execute the build script. Also, jboss.net is available in the 3.2.x release. I hope it helps. -- Regards, Francisco Figueiredo Jr. --- My grandfather once told me that there are two kinds of people: those who work and those who take the credit. He told me to try to be in the first group; there was less competition there. - Indira Gandhi --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Build Jboss 4.0
I'm interested in building Jboss 4.0 from cvs, this cames from my interest in taking a look at how juddi integration is going Is posible to build the 4.0 branch, particularly the juddi and webservicies part (jbbos-net)part?
[JBoss-user] Problem with sudden unexpected shutdown
Hi, we're starting JBoss remotely on another machine to which we are connected via an ISDN line. Problem is, when we cut the ISDN connection to the remote machine, JBoss immediately shuts itself down if there are no other users using JBoss on the remote machine. What does cause the shutdown? JBoss should stay alive, after we have started it on the remote machine, even if we temporarily cut the wire connection to that machine. We're on JBoss 3.0.5. Any input would be greatly appreciated! Thanks, Bernie This e-mail and any attachment is for authorised use by the intended recipient(s) only. It may contain proprietary material, confidential information and/or be subject to legal privilege. It should not be copied, disclosed to, retained or used by, any other party. If you are not an intended recipient then please promptly delete this e-mail and any attachment and all copies and inform the sender. Thank you. --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] MBean deployment ignores depends tag
Hi David, After reading your and Scotts replies I've packaged the mbean classes and -service.xml into a .sar to try to get the classes loaded. I have a problem that both my mbean .sar and my ejb .jar both need to use the EJB interfaces, so I've packaged the interfaces into both the .sar and the ejb .jar. This cause problems with duplicate class errors like below. There is obviously a better way to do this - do I need to create a separare interfaces .jar? If so where would I deploy it to? TIA, Alex. 18:27:36,126 WARN [ClassLoadingTask] Duplicate class found: com.anvil.ate.marke t.interfaces.OrderBookData Current CS: (file:/home/alex/output/i686-pc-linux-gnu/ate-head/release/support/j boss/default/tmp/deploy/home/alex/output/i686-pc-linux-gnu/ate-head/release/supp ort/jboss/default/deploy/ejb-anvil-market.jar/31.ejb-anvil-market.jar no certif icates) Duplicate CS: (file:/home/alex/output/i686-pc-linux-gnu/ate-head/release/support /jboss/default/tmp/deploy/home/alex/output/i686-pc-linux-gnu/ate-head/release/su pport/jboss/default/deploy/anvil-market.sar/12.anvil-market.sar no certificates ) On Tue, 2003-06-17 at 22:07, David Jencks wrote: To expand a little on Scott's answer, In jb 3.2 and earlier, you have to have the mbean's class available before you try to deploy the mbean. When you deploy the mbean, it is created and the attributes are set. Then the dependency stuff starts, so create and start are not called until the needed mbeans are created and started. In jb4, if you try to deploy an mbean before its class is deployed, it will wait and deploy when the class becomes available (and undeploy when the class is removed). Also IIRC, there is a *-service.xml top level depends tag that you can use to depend on other mbeans, to make the *-service.xml wait for the DeploymentInfo mbean for the needed jar file. (Also IIRC, the DeploymentInfo is an mbean only in jb4) david jencks /** * David Jencks * Partner * Core Developers Network * http://www.coredevelopers.net **/ On 2003.06.09 09:37 Alex Hornby wrote: On Mon, 2003-06-09 at 14:25, Nicholas wrote: Can you send them again ? I could not find them in the archive. Hmmm, looks like the sourceforge archive strips off attachments. Here is the body of my reply to Scott and the attachment again: I've attached a gzip'd jboss log from a jboss 3.2.1 startup showing that the jboss-anvilmarket2-service.xml file is deployed before any of the EJBs in the ejb-anvil-market.jar are deployed, resulting in class not found error. I think the depends tags in jboss-anvilmarket2-service.xml should make the mbean deployment wait until after the named EJB has deployed, however this is not happening. The very same ejb jar and -service.xml work fine if I force the deployment order by copying them into the deploy directory manually one by one. Cheers, Alex. ?xml version=1.0 encoding=UTF-8? server classpath codebase=lib archives=quickfix.jar/ mbean code=com.anvil.ate.market.common.ApplicationConstants name=com.anvil.ate.market:service=ApplicationConstants dependsjboss:service=Naming/depends dependsjboss.j2ee:jndiName=market/MarketData,service=EJB/depends attribute name=ServerNamelocalhost/attribute attribute name=InOrderQinboundOrderQueue/attribute attribute name=InQuoteQinboundQuoteQueue/attribute attribute name=InSessionQinboundSessionQueue/attribute attribute name=OutQoutboundQueue/attribute /mbean /server --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Problem with sudden unexpected shutdown
Meyer-Willner, Bernhard wrote: Hi, we're starting JBoss remotely on another machine to which we are connected via an ISDN line. Problem is, when we cut the ISDN connection to the remote machine, JBoss immediately shuts itself down if there are no other users using JBoss on the remote machine. What does cause the shutdown? JBoss should stay alive, after we have started it on the remote machine, even if we temporarily cut the wire connection to that machine. We're on JBoss 3.0.5. Any input would be greatly appreciated! Is this linux? Use jboss_init_redhat.sh (BEST CHOICE), or tail. If you use run.sh directly and close terminal connection, the sheel is being killed by linux itself. Vlad --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] MP3
Title: 158 --- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] EJB Local and Remote Interfaces.
With the new 2.0 CMP specifications, whenever possible local interfaces are suggested. In your (and many other) cases, a session bean facade (that is hiding from client the entity bean, but managing it through a session bean) it is the right things to do. The main advantage from local interfaces instead of remote ones, is that objects are passed by reference and not by copying them). Additionally, with remote interface every method call is a remote method call, which is not true with local interfaces. Also, with remote interfaces, the container must create copies of all parameters that do not extend java.rmi.Remote, which is not true with local interfaces. Hope it will help, Marco - Original Message - From: Muraly R [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Wednesday, June 18, 2003 2:35 PM Subject: [JBoss-user] EJB Local and Remote Interfaces. Hi Gurus, The application currently I am working is having only Remote Interfaces. But there are scenarios, like the client never invoked the entity bean directly. Only the session bean invokes the entity bean. The client invokes the stateless session beans. In such a scenario, does the implementation of Local interface give a performance boost(in the sense, less memory usage, quick response, etc...) to the application?. (Actaully the application is having 5 VM interaction including JBoss. Hence the question ;-) Thanks Muraly --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Build Jboss 4.0
cvs checkout jboss-head www.sourceforge.net on how to anonymously attach to cvs. Bill -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]On Behalf Of Alberto Rodriguez GaldoSent: Wednesday, June 18, 2003 12:30 PMTo: [EMAIL PROTECTED]Subject: [JBoss-user] Build Jboss 4.0 I'm interested in building Jboss 4.0 from cvs, this cames from my interest in taking a look at how juddi integration is going Is posible to build the 4.0 branch, particularly the juddi and webservicies part (jbbos-net)part?
RE: [JBoss-user] Who is using JBoss in production?
Thanks everybody for providing your testimonials! Could you possibly do me a favor and repost on the Testimonial Forum if you haven't already? http://www.jboss.org/forum.jsp?forum=159 Thanks, Bill Bill Burke Chief Architect JBoss Group, LLC Cast your vote for JBoss as JDJ Best App Server http://www.sys-con.com/java/readerschoice2003/vote.cfm -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Magesh Prabhu Sent: Wednesday, June 18, 2003 4:59 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Who is using JBoss in production? I've the experience of working in a large scale intranet system and a middleware system both running in JBoss. They both are functioning smoothly. The Intranet system is for a huge Financial Institution and is being used extensively by minumum of 100 users concurrently. JBoss is just simply superb. On 6/17/03 4:57 PM, Giorgio Ponza [EMAIL PROTECTED] wrote: I Use JBoss 2.4.7 in 3 machines, and 10 sites Never had problems, but are small traffic ones ;) Giorgio Hi all, I was wondering? How many of you are actually running production systems on JBoss? Grtz, --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user ** This email and its attachments are intended for the above named only and may be confidential. If they have come to you in error, you must take no action based on them, nor must you copy or show them to anyone; please reply to this email and highlight the error. Security Warning: Please note that this email has been created in the knowledge that the internet email is not a 100% secure communications medium. We advise that you understand and observe this lack of security when emailing us. Viruses: Although we have taken steps to ensure that this email and attachments are free from any virus, we advise that in keeping with good computing practice the recipient should ensure they are actually virus free. If you have received this email in error please notify: [EMAIL PROTECTED] ** --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Problem with sudden unexpected shutdown
On Unix the typical behavior is for child processes to die (get a HUP signal) when the parent shell process dies. That is when the shell is closed either explicitely or because the connection is terminated. You can get around that by using the 'nohup' command as in: nohup your_command (That will redirect all output to a nohup.out file) Or by creating some kind of virtual terminal. I have used either 'screen' and VNC successfully for that. jboss_init_redhat.sh will also run your server on the background and provide you with some other nice features. -- Rodrigo Chandía Consultor de Software ACM Group [EMAIL PROTECTED] www.acmgrp.com Av. Paseo Enrique Eraso. Torre Tamanaco, P1 Of. 1-B San Román, Caracas, Venezuela 1060 Teléfono: +58(212)993-9097 Fax: +58(212)993-4302 Mensaje citado por Vladyslav Kosulin [EMAIL PROTECTED]: Meyer-Willner, Bernhard wrote: Hi, we're starting JBoss remotely on another machine to which we are connected via an ISDN line. Problem is, when we cut the ISDN connection to the remote machine, JBoss immediately shuts itself down if there are no other users using JBoss on the remote machine. What does cause the shutdown? JBoss should stay alive, after we have started it on the remote machine, even if we temporarily cut the wire connection to that machine. We're on JBoss 3.0.5. Any input would be greatly appreciated! Is this linux? Use jboss_init_redhat.sh (BEST CHOICE), or tail. If you use run.sh directly and close terminal connection, the sheel is being killed by linux itself. Vlad --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user - This mail sent through IMP: http://horde.org/imp/ --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Unexpected behavior when when deleting one entity in CMR 1-many rel
Using 3.0.7, I have two entity beans with a 1-to-many relationship defined. Using CMP CMR. This is not a parent-child relationship, so there is no cascade set up. Let's call them Car and Color. A Car has a Color. A Color may be related to several Cars. If I try and delete a Color that some Car is referencing and the underlying database COLOR_ID field is set to not null, I get a constraint violation and the operation fails. This is what I'd expect. If the underlying database COLOR_ID field is set to null, the Color is deleted and the COLOR_ID field is set to null. This is not what I would expect. I read somewhere that JBoss CMP enforced integrity, but in this case it doesn't seem to be the case. Rather it seems to rely on the underlying database to support integrity by performing an action that I didn't think I was asking for, namely nulling out the COLOR_ID field of all Car entries referring to the Color I'm deleting, with failure determined by the database's response. Is there some way to get JBoss CMP/CMR to enforce integrity at its level so that if I try and delete a Color still accessed by a Car I get an exception? Alternatively, is there a way to tell it not to try and null out the COLOR_ID fields in the Cars, so that it would get the exception from the DB? This is a general problem we're running into, so I'd prefer a general solution that modifies the behavior of CMP, rather than having to change some settings for each relationship I want to behave in this manor. And I know I can check this by hand, but that is not the solution I'm hoping for. I've found the same behavior in 3.2.1. Please reply to my email address in addition to the list. Thanks in advance. --Tim --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Unexpected behavior when when deleting one entity in CMR 1-many rel
When you make the COLOR_ID non null, then you are making the constraint mandatory inside the database, but the EJB specification does not have such a notion. When you remove the Color, the CMP nulls out the relationship in memory (as it should), but the constraint prevents this being persisted. If you make the COLOR_ID column nullable, then you are allowing Cars to exist that have an unknown Color. When you remove a referenced Color, CMP is correctly removing the reference in the database preserving its integrity. By removing a referenced entity, you are actually asking for this to happen. Regards Jeremy /* * Jeremy Boynes * Partner * Core Developers Network */ -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Tim McNerney Sent: Wednesday, June 18, 2003 2:19 PM To: [EMAIL PROTECTED] Subject: [JBoss-user] Unexpected behavior when when deleting one entity in CMR 1-many rel Using 3.0.7, I have two entity beans with a 1-to-many relationship defined. Using CMP CMR. This is not a parent-child relationship, so there is no cascade set up. Let's call them Car and Color. A Car has a Color. A Color may be related to several Cars. If I try and delete a Color that some Car is referencing and the underlying database COLOR_ID field is set to not null, I get a constraint violation and the operation fails. This is what I'd expect. If the underlying database COLOR_ID field is set to null, the Color is deleted and the COLOR_ID field is set to null. This is not what I would expect. I read somewhere that JBoss CMP enforced integrity, but in this case it doesn't seem to be the case. Rather it seems to rely on the underlying database to support integrity by performing an action that I didn't think I was asking for, namely nulling out the COLOR_ID field of all Car entries referring to the Color I'm deleting, with failure determined by the database's response. Is there some way to get JBoss CMP/CMR to enforce integrity at its level so that if I try and delete a Color still accessed by a Car I get an exception? Alternatively, is there a way to tell it not to try and null out the COLOR_ID fields in the Cars, so that it would get the exception from the DB? This is a general problem we're running into, so I'd prefer a general solution that modifies the behavior of CMP, rather than having to change some settings for each relationship I want to behave in this manor. And I know I can check this by hand, but that is not the solution I'm hoping for. I've found the same behavior in 3.2.1. Please reply to my email address in addition to the list. Thanks in advance. --Tim --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] depends on me startup problem - but redeployment works fine!
I'm trying to deploy Apache OJB in Jboss 3.2.0 as ojb.sar, with two MBeans defined in jboss-service.xml. This packaging structure worked fine in Jboss 3.0.6, but in 3.2 lots of exceptions are thrown at init, followed by the depends on me message shown below. The root problem appears to be the invoker is null error (jboss:service=invoker,type=jrmp) Yet, if I redeploy my EJB by copying db-ojb-1.0.rc2-beans.jar (the EJB jar) back into the ojb.sar directory after bringing up Jboss 3.2, it works fine! So, it appears that this EJB jar has some dependencies which need to be explicitly declared in JBoss. I tried many different Class-Path references in the EJB's manifest.mf file, but to no avail. Any advice would be appreciated (SWAGs are fine too ;-) -- 13:51:24,051 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean ope ration '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.j2ee:jndiName=org.apache.ojb.ejb.PersonManagerPBBean,service= EJB state: FAILED I Depend On: Depends On Me: java.lang.RuntimeException: invoker is null: jboss:service=invok er,type=jrmp, ObjectName: jboss.j2ee:jndiName=org.apache.ojb.ejb.ArticleManagerP BBean,service=EJB state: FAILED I Depend On: Depends On Me: java.lang.RuntimeException: invoker is null: jboss:service=invok er,type=jrmp, ObjectName: jboss.j2ee:jndiName=org.apache.ojb.ejb.PersonManagerOD MGBean,service=EJB state: FAILED I Depend On: Depends On Me: java.lang.RuntimeException: invoker is null: jboss:service=invok er,type=jrmp, ObjectName: jboss.j2ee:jndiName=org.apache.ojb.ejb.PBSessionBean,s ervice=EJB state: FAILED I Depend On: Depends On Me: java.lang.RuntimeException: invoker is null: jboss:service=invok er,type=jrmp, ObjectName: jboss.j2ee:jndiName=org.apache.ojb.ejb.PersonArticleMa nagerODMGBean,service=EJB state: FAILED I Depend On: Depends On Me: java.lang.RuntimeException: invoker is null: jboss:service=invok er,type=jrmp, ObjectName: jboss.j2ee:jndiName=org.apache.ojb.ejb.ODMGSessionBean ,service=EJB state: FAILED I Depend On: Depends On Me: java.lang.RuntimeException: invoker is null: jboss:service=invok er,type=jrmp, ObjectName: jboss.j2ee:jndiName=org.apache.ojb.ejb.PersonArticleMa nagerPBBean,service=EJB state: FAILED I Depend On: Depends On Me: java.lang.RuntimeException: invoker is null: jboss:service=invok er,type=jrmp, ObjectName: jboss.j2ee:jndiName=org.apache.ojb.ejb.ArticleManagerO DMGBean,service=EJB state: FAILED I Depend On: Depends On Me: java.lang.RuntimeException: invoker is null: jboss:service=invok er,type=jrmp] META-INF\jboss-service.xml ?xml version=1.0 encoding=UTF-8? server mbean code=org.apache.ojb.jboss.PBFactory name=DefaultDomain:service=PBAPI,name=ojb/PBAPI dependsjboss.jca:service=RARDeployer/depends attribute name=JndiNameojb/PBAPI/attribute /mbean mbean code=org.apache.ojb.jboss.ODMGFactory name=DefaultDomain:service=ODMG,name=ojb/defaultODMG dependsjboss.jca:service=RARDeployer/depends attribute name=JndiNameojb/defaultODMG/attribute /mbean /server --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] depends on me startup problem - but redeployment works fine!
Hi, The changes to the way the transaction manager is deployed have highlighted this problem. The root problem is that an ejb shouldn't be deployed until its declared invokers have started. There are a number of possible workarounds: 1) Make the EJB Deployer depend upon the invoker (no ejbs will be deployed until the invoker starts) 2) Move the transaction manager deployment back into jboss-service.xml (allowing the invoker to start before the scanner starts looking at /deploy) 3) Declare a dependency for each ejb on the invoker(s) in jboss.xml The real fix will be to make (3) automatic. Regards, Adrian Adrian Brock Director of Support Back Office JBoss Group, LLC -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bates, Alex Sent: 19 June 2003 01:52 To: [EMAIL PROTECTED] Subject: [JBoss-user] depends on me startup problem - but redeployment works fine! I'm trying to deploy Apache OJB in Jboss 3.2.0 as ojb.sar, with two MBeans defined in jboss-service.xml. This packaging structure worked fine in Jboss 3.0.6, but in 3.2 lots of exceptions are thrown at init, followed by the depends on me message shown below. The root problem appears to be the invoker is null error (jboss:service=invoker,type=jrmp) Yet, if I redeploy my EJB by copying db-ojb-1.0.rc2-beans.jar (the EJB jar) back into the ojb.sar directory after bringing up Jboss 3.2, it works fine! So, it appears that this EJB jar has some dependencies which need to be explicitly declared in JBoss. I tried many different Class-Path references in the EJB's manifest.mf file, but to no avail. Any advice would be appreciated (SWAGs are fine too ;-) -- 13:51:24,051 ERROR [URLDeploymentScanner] MBeanException: Exception in MBean ope ration '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.j2ee:jndiName=org.apache.ojb.ejb.PersonManagerPBBean,service= EJB state: FAILED I Depend On: Depends On Me: java.lang.RuntimeException: invoker is null: jboss:service=invok er,type=jrmp, ObjectName: jboss.j2ee:jndiName=org.apache.ojb.ejb.ArticleManagerP BBean,service=EJB state: FAILED I Depend On: Depends On Me: java.lang.RuntimeException: invoker is null: jboss:service=invok er,type=jrmp, ObjectName: jboss.j2ee:jndiName=org.apache.ojb.ejb.PersonManagerOD MGBean,service=EJB state: FAILED I Depend On: Depends On Me: java.lang.RuntimeException: invoker is null: jboss:service=invok er,type=jrmp, ObjectName: jboss.j2ee:jndiName=org.apache.ojb.ejb.PBSessionBean,s ervice=EJB state: FAILED I Depend On: Depends On Me: java.lang.RuntimeException: invoker is null: jboss:service=invok er,type=jrmp, ObjectName: jboss.j2ee:jndiName=org.apache.ojb.ejb.PersonArticleMa nagerODMGBean,service=EJB state: FAILED I Depend On: Depends On Me: java.lang.RuntimeException: invoker is null: jboss:service=invok er,type=jrmp, ObjectName: jboss.j2ee:jndiName=org.apache.ojb.ejb.ODMGSessionBean ,service=EJB state: FAILED I Depend On: Depends On Me: java.lang.RuntimeException: invoker is null: jboss:service=invok er,type=jrmp, ObjectName: jboss.j2ee:jndiName=org.apache.ojb.ejb.PersonArticleMa nagerPBBean,service=EJB state: FAILED I Depend On: Depends On Me: java.lang.RuntimeException: invoker is null: jboss:service=invok er,type=jrmp, ObjectName: jboss.j2ee:jndiName=org.apache.ojb.ejb.ArticleManagerO DMGBean,service=EJB state: FAILED I Depend On: Depends On Me: java.lang.RuntimeException: invoker is null: jboss:service=invok er,type=jrmp] META-INF\jboss-service.xml ?xml version=1.0 encoding=UTF-8? server mbean code=org.apache.ojb.jboss.PBFactory name=DefaultDomain:service=PBAPI,name=ojb/PBAPI dependsjboss.jca:service=RARDeployer/depends attribute name=JndiNameojb/PBAPI/attribute /mbean mbean code=org.apache.ojb.jboss.ODMGFactory name=DefaultDomain:service=ODMG,name=ojb/defaultODMG dependsjboss.jca:service=RARDeployer/depends attribute name=JndiNameojb/defaultODMG/attribute /mbean /server --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email is
Re: [JBoss-user] EJB Local and Remote Interfaces.
Either will work, as would creating a system configuration mbean so that you could edit the attributes dynamically. -- Scott Stark Chief Technology Officer JBoss Group, LLC Magesh Prabhu wrote: Hi guys, We have an .ear file which contains a few properties files from which the system gets initialized. Since this properties files should be configurable, we thought of moving those configurable properties files away from the ear file. (like how log4j.xml is in conf folder) Which is the best way of doing it?. Can I place my properties in conf folder and read them from my application or can I place it as a separate jar file. Please pour in your suggestions. Thank you, Skely --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: follow-up Re: [JBoss-user] failed lookup: java:comp/UserTransactionfrom Tomcat
The UserTransaction interface is supposed to be bound under java:comp/UserTransaction for the j2ee components so I'll look into what regressed. -- Scott Stark Chief Technology Officer JBoss Group, LLC Bryan Field-Elliot wrote: Evidently, changing my lookup from java:comp/UserTransaction to just UserTransaction works... The follow-on question is, is this standard? This seems like moving away from standard J2EE syntax, unless I'm missing something else... I thought I needed to look up these things in java:comp/ or java:comp/env/. Thanks, Bryan --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] jboss jndi timeout
There is no default timeout so 4 secs is something about the env you are running in. The jnp.timeout controls the intial connect timeout and the jnp.sotimeout controls the read timeout on the socket. -- Scott Stark Chief Technology Officer JBoss Group, LLC Sean Langford wrote: Hello, I need to shorten the time my jboss client will wait for a JDNI response from what looks like 4 seconds (default?) to less than 1 second. I've read all the for-pay jboss documentation and searched the email list and found: jnp.timeout, and jnp.sotimeout However I can't seem to get them working. Are these the wrong properties to use? I am setting the following properties on my InitialContext: java.naming.factory.initial=org.jnp.interfaces.NamingContextFactory java.naming.provider.url=jnp://dev-ejb2:1099 java.naming.factory.url.pkgs=org.jboss.naming:org.jnp.interfaces jnp.timeout=100 jnp.sotimeout=100 Any help appreciated! Thanks Sean --- This SF.Net email is sponsored by: INetU Attention Web Developers Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] ///
Title: BBS ! Sorry for the inconvenience we caused! 19925-28 02061246511 61246522 075526643270 QQ937319 CLINIKISO90001 20006 DNA 18 90% 8% 80% ; ;;; ;; ... 92528 66260 () 346C12505 P.C:510630 :(020)88313110 61246511 61210101 075526643270 13926033899 13049628028 02061246522 61210606 http://www.shimeitang.com CLINIK:P.O.BOX 301A Fairfield Heights N.S.W.2165 SYDNEY AUSTRALIA 8008768315 257 4 12608 \ 10942093B 44 6 B1-B4 95 78 57 166 D2196 12 14 33 12 ** ** 1() 201000 ** ** 020-88313110 61210101 9:00-22:00) 13926033899 (22:00-8:00) Emailshiemitang@shiemitang.com 18 937319 ( QQ) QQ ** ** 6688.COM,, ** ** 0020 07719145 12, 60142830718765201 12, 95599 8008 51718 30814 12, 2 3602880401030193574 12, 154.10234.32 ** ** --- This SF.Net email is sponsored by: INetU Attention Web Developers & Consultants: Become An INetU Hosting Partner. Refer Dedicated Servers. We Manage Them. You Get 10% Monthly Commission! INetU Dedicated Managed Hosting http://www.inetu.net/partner/index.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user