RE: [JBoss-user] JMX MBean question
Harm, I want to be able to configure which handler a particular directory watcher MBean uses. Therefore I thought it might be a good idea to make the Handler class a MBean aswel. One simple solution might be to create a HandlerFactory that knows the mapping of the different file types to the Handlers that handle them. Your code might look like this: Handler handler = HandlerFactory.createHandler(File file); But I'm confused about your wish to be able to specify which kind of Handler is used by a specific Watcher. If that is the case, why not just give the Watcher the name of the class it has to instantiate as a parameter? -- Jeroen There are about 20 different handlers but they all implement the interface Handler.java: public interface Handler { public void handle(File file); } I have written all the code... But don't know where to go from here How can I instantiate the right Handler and call its 'handle()' method? All ideas are more then welcome, Thanks, Harm de Laat Informatiefabriek --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_06 1203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] dynamic sql?
I was wondering why JBoss has dynamic ql (where a bean can create a ql query at runtime), but not dynamic sql? ittay -- === Ittay Dror ([EMAIL PROTECTED]) User Space, RD Qlusters Inc. Tel: +972-3-6081956 Fax: +972-3-6081841 --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Insufficient method permissions
(B (B (B (B (B (B (B (BHi all, (B (B (B (BWhen I run the (Bfollowing piece of code: (B (B (B (B Properties properties = new Properties(); (B (B properties.put(java.naming.provider.url, url); (B (B properties.put(java.naming.factory.initial, jndiContextClass); (B (B properties.setProperty(Context.SECURITY_PRINCIPAL, (Badministrator); (B (B properties.setProperty(Context.SECURITY_CREDENTIALS, (Badministrator); (B (B Context context = new InitialContext(properties); (B (B PromotionInfoManagerHome promotionInfoManagerHome (B= (PromotionInfoManagerHome) context.lookup(PromotionInfoManager); (B (B PromotionInfoManager promotionInfoManager (B= promotionInfoManagerHome.create(); (B (B PromotionProgramValue promotionProgramValue (B= new PromotionProgramValue(test, test, published, (Bnull, false); (B (B promotionInfoManager.createPromotionProgram(promotionProgramValue); (B (B (B (BI get the (Bfollowing exception: (B (B (B (Bjava.rmi.ServerException: RemoteException (Boccurred in server thread; nested exception is: (B (B java.rmi.ServerException: EJBException:; nested exception is: (B (B javax.ejb.EJBException: checkSecurityAssociation; (BCausedByException is: (B (B Insufficient (Bmethod permissions, principal=null, method=createPromotionProgram, (Binterface=REMOTE, requiredRoles=[Administrator, (BSystemUser], principalRoles=[] (B (B$B!D(J (B (B (B (BAlthough the (Baccount I used above (username=administrator, password=administrator, and its (Brole is $B!H(JAdministrator$B!I(J) is a valid account, when I use that account to login (Bfrom my web server, and then call the method of the bean above, everything is OK. (BPlease tell me what the problem is. (B (B (B (BThanks and regards (B (BQuan (B (B (B (B (B (B (B (B
RE: [JBoss-user] JMX MBean question
I see your point. Maybe I should clarify myself a bit. Each handler has it's own configuration. For instance there is an email-handler. Which sends an email to a specific email-address when a file arrives in the 'watched' directory. The handler also has some other attributes such as the subject of the email message, reply-to address and so on Therefore I would like to make my Handler class a MBean. So I can easily set these properties using the JMXConsole. (Also taking advantage of persistent attributes, etc)... That is why I would like to lookup the Handler class using the MBeanServer. But, from the documentation I only see a way to get the class over RMI. (RMIAdaptor). But, since I'm on the same VM, I think this will not be nessecary. What would be the way to go here? Thanks in advance, Harm de Laat Informatiefabriek [EMAIL PROTECTED] Sent by: [EMAIL PROTECTED] 07/01/2003 09:35 AM Please respond to [EMAIL PROTECTED] To [EMAIL PROTECTED] cc Subject RE: [JBoss-user] JMX MBean question Harm, I want to be able to configure which handler a particular directory watcher MBean uses. Therefore I thought it might be a good idea to make the Handler class a MBean aswel. One simple solution might be to create a HandlerFactory that knows the mapping of the different file types to the Handlers that handle them. Your code might look like this: Handler handler = HandlerFactory.createHandler(File file); But I'm confused about your wish to be able to specify which kind of Handler is used by a specific Watcher. If that is the case, why not just give the Watcher the name of the class it has to instantiate as a parameter? -- Jeroen There are about 20 different handlers but they all implement the interface Handler.java: public interface Handler { public void handle(File file); } I have written all the code... But don't know where to go from here How can I instantiate the right Handler and call its 'handle()' method? All ideas are more then welcome, Thanks, Harm de Laat Informatiefabriek --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_06 1203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] NIS login module
Hi, is there a NIS login module available somewhere (over the rainbow) ? thanks, ionel --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Finder generating wrong SQL statement in Jboss-3.2.1
Hi All, I have a finder defined in the jwas.xml like this below finder namefindAllOrdered/name query/ orderCREATINGTIME DESC/order /finder i dont have any query because i want all results only in the Creating time desc format but jboss is generating the following sql query 2003-07-01 10:55:24,007 DEBUG [org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand] findAllOrdered command executing: SELECT PeerTask.OID, CREATINGTIME FROM PeerTask where ORDER BY CREATINGTIME DESC in the above sql statement there should not be a where condition as the query has nothing in it which is generated by Jboss can any one help me urgently how to fix this thanks janardhan --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re[2]: [JBoss-user] JBossDO
Hello Pete, yes, I'll write about what is not implemented yet, what is implemented but not optimized yet and what is planned. I will keep this page up to date. And, remember, it is the first iteration. alex Monday, June 30, 2003, 9:51:36 PM, Pete Beck wrote: PB Hi guys, PB Will the docs identify what *isn't* implemented yet? I think Alex PB mentioned that it doesn't support inheritance yet for example. PB On Mon, 2003-06-30 at 19:15, Bill Burke wrote: It will be officially released tomorrow or Wednesday. Alex should be putting up docs momentarily. It won't be a full implementation, again, this is a developer release. Bill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Peter Spiess Sent: Monday, June 30, 2003 12:44 PM To: [EMAIL PROTECTED] Subject: [JBoss-user] JBossDO Has anyone tried out JBossDO yet? I just checked out the latest sources and compiled JBoss 4, and now I'm wondering if anyone could point me in the right direction for some of the JDO stuff. Thanks, Peter --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] NIS login module
On Tue, 2003-07-01 at 09:55, Ionel Gardais wrote: Hi, is there a NIS login module available somewhere (over the rainbow) ? thanks, ionel Or a PAM login module - that would be able to do either NIS, SMB or passwd auth. Although I guess that would need a JNI part. Alex. --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] dynamic sql?
Hello Ittay, because no one has implemented it yet. Hopefully, we could address it in JBoss-4. Also, in JBoss-4, JBossQL compiler supports insert, update and delete statements. alex Tuesday, July 01, 2003, 10:39:25 AM, Ittay Dror wrote: ID I was wondering why JBoss has dynamic ql (where a bean can create a ql ID query at runtime), but not dynamic sql? ID ittay --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Finder generating wrong SQL statement in Jboss-3.2.1
I'm guessing here, but: 1) Can you remove the query/ element? Does this stop JBoss from generating the where clause? 2) Can you set the query to something like 1=1? Dan. -- Danny Yates -Original Message- From: Janardhan Burugupalli [mailto:[EMAIL PROTECTED] Sent: 01 July 2003 10:04 To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] Finder generating wrong SQL statement in Jboss-3.2.1 Hi All, I have a finder defined in the jwas.xml like this below finder namefindAllOrdered/name query/ orderCREATINGTIME DESC/order /finder i dont have any query because i want all results only in the Creating time desc format but jboss is generating the following sql query 2003-07-01 10:55:24,007 DEBUG [org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand] findAllOrdered command executing: SELECT PeerTask.OID, CREATINGTIME FROM PeerTask where ORDER BY CREATINGTIME DESC in the above sql statement there should not be a where condition as the query has nothing in it which is generated by Jboss can any one help me urgently how to fix this thanks janardhan --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ 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 sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re[2]: [JBoss-user] Finder generating wrong SQL statement in Jboss-3.2.1
Hello Janardhan, JAWS was replaced with JBossCMP a long time ago and is not supported anymore. Sorry, I really don't know what is wrong with your finder. alex Tuesday, July 01, 2003, 12:03:42 PM, Janardhan Burugupalli wrote: JB Hi All, JB I have a finder defined in the jwas.xml like this below JB finder JB namefindAllOrdered/name JB query/ JB orderCREATINGTIME DESC/order JB /finder JB i dont have any query because i want all results only in the Creating JB time desc format JB but jboss is generating the following sql query JB 2003-07-01 10:55:24,007 DEBUG JB [org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand] findAllOrdered command JB executing: SELECT PeerTask.OID, CREATINGTIME FROM PeerTask where ORDER JB BY CREATINGTIME DESC JB in the above sql statement there should not be a where condition as the JB query has nothing in it which is generated by Jboss JB can any one help me urgently how to fix this JB thanks janardhan --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: Re[2]: [JBoss-user] JBossDO
That's great! It's not always too easy to figure those things out from the code. :-) On Tue, 2003-07-01 at 10:26, Alexey Loubyansky wrote: Hello Pete, yes, I'll write about what is not implemented yet, what is implemented but not optimized yet and what is planned. I will keep this page up to date. And, remember, it is the first iteration. alex Monday, June 30, 2003, 9:51:36 PM, Pete Beck wrote: PB Hi guys, PB Will the docs identify what *isn't* implemented yet? I think Alex PB mentioned that it doesn't support inheritance yet for example. PB On Mon, 2003-06-30 at 19:15, Bill Burke wrote: It will be officially released tomorrow or Wednesday. Alex should be putting up docs momentarily. It won't be a full implementation, again, this is a developer release. Bill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Peter Spiess Sent: Monday, June 30, 2003 12:44 PM To: [EMAIL PROTECTED] Subject: [JBoss-user] JBossDO Has anyone tried out JBossDO yet? I just checked out the latest sources and compiled JBoss 4, and now I'm wondering if anyone could point me in the right direction for some of the JDO stuff. Thanks, Peter --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- Peter Beck BEng (hons) MIEE - Managing Director, Electrostrata Ltd. http://www.electrostrata.com --+-+-- Experts in e-business and e-commerce --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Virus Warning
The message you emailed to [EMAIL PROTECTED], dated 07/01/03 06:22:26, contains the W32/Sobig-E virus in the your_details.zip attachment. The action taken was: deleted the attachment. --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Finder generating wrong SQL statement in Jboss-3.2.1
[EMAIL PROTECTED] wrote: I'm guessing here, but: 1) Can you remove the query/ element? Does this stop JBoss from generating the where clause? 2) Can you set the query to something like 1=1? Dan. Hi Dan, I made it so that i was equating a filed with thee same like finder namefindAllOrdered/name queryOID = OIDquery/ orderCREATINGTIME DESC/order /finder OID is a primary key field. tha above code works but it just a work around Janardhan. --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Problem binding RMI to particular interface
Hi, I hope someone can help me with what may be a simple JNDI problem. I have a multi-homed host running JBoss-3.0.6/j2sdk1.4.2 (on RedHat 9) and I have another application on the other side of a firewall that need to be able to do JNDI and RMI to this JBoss instance I've managed to make JNDI return references relative to a given interface by starting JBoss with a -Djava.rmi.server.hostname=IP_address_of_interface In ~/conf/jboss-service.xml I've successfully locked down the JNDI naming service by port and by IP address thus: ---snip--- mbean code=org.jboss.naming.NamingService name=jboss:service=Naming !-- The listening port for the bootstrap JNP service. Set this to -1 to run the NamingService without the JNP invoker listening port. -- attribute name=BindAddress192.168.12.226/attribute attribute name=Port1099/attribute attribute name=RmiPort2099/attribute /mbean mbean code=org.jboss.naming.JNDIView name=jboss:service=JNDIView/ --snip-- But I also wanted to lock down the RmiPort to a fixed port and IP address and in the above snippet, BindAddress appears to apply only to the JNDI Port, the RmiPort still ends up being a wildcard bind to all interfaces on the server thus: ---snip--- [EMAIL PROTECTED] conf]$ netstat -tan Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp0 0 0.0.0.0:32768 0.0.0.0:* LISTEN tcp0 0 127.0.0.1:32769 0.0.0.0:* LISTEN tcp0 0 0.0.0.0:34213 0.0.0.0:* LISTEN tcp0 0 0.0.0.0:34214 0.0.0.0:* LISTEN tcp0 0 0.0.0.0:34215 0.0.0.0:* LISTEN tcp0 0 192.168.12.226:1099 0.0.0.0:* LISTEN tcp0 0 192.168.12.226:1100 0.0.0.0:* LISTEN tcp0 0 0.0.0.0:111 0.0.0.0:* LISTEN tcp0 0 192.168.12.226:4466 0.0.0.0:* LISTEN tcp0 0 0.0.0.0:20990.0.0.0:* LISTEN tcp0 0 192.168.12.226:8083 0.0.0.0:* LISTEN tcp0 0 0.0.0.0:22 0.0.0.0:* LISTEN tcp0 0 127.0.0.1:250.0.0.0:* LISTEN tcp0 0 192.168.12.226: 0.0.0.0:* LISTEN tcp0 48 192.168.12.102:22 192.168.1.57:45395 ESTABLISHED [EMAIL PROTECTED] conf]$ ---snip--- So the obvious questions are: a) Can I do this at all? b) Is there something I've overlooked in the config? All suggestions gratefully recieved Phil Packer [EMAIL PROTECTED] ** The information contained in this e-mail and any attachment is confidential. It is intended solely for the attention of the intended addressee(s) and may be covered by legal privilege and/or protected by law. If you are not the named addressee, please notify the sender immediately and delete this e-mail from your computer. Any use, dissemination, distribution or copying of this e-mail and associated files is strictly prohibited and may be unlawful. Internet communications are not secure and therefore YooMedia cannot accept liability if this e-mail is accessed by third parties during the course of transmission or is modified or amended following despatch. Furthermore YooMedia does not accept legal responsibility for the contents of this message. Any views or opinions expressed are solely those of the author and do not necessarily represent those of YooMedia unless otherwise specifically stated. Although YooMedia has taken every reasonable precaution to ensure that any attachment to this e-mail has been checked for viruses, it is strongly recommended that you carry out your own virus check before opening any attachment, as we cannot accept liability for any damage sustained as a result of software virus infection. YooMedia reserves the right, and senders of messages shall be taken to have consented to, the monitoring and recording of e-mails. ** --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Integrating Tomcat in JBoss
Hi, I want to integrate a release of tomcat in jboss. I don't want to use the ready made version of JBoss which has tomcat inside, because it lacks several features (for example jspc). Any pointers are welcome Thank you, Ittay -- === Ittay Dror ([EMAIL PROTECTED]) User Space, RD Qlusters Inc. Tel: +972-3-6081956 Fax: +972-3-6081841 --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] EXCEPTION: configuration 'IIOP Stateless SessionBean' not found in JBoss 3.0.7
Hi! I have a requirement whereby an external CORBA client should be able to invoke methods on my Session Bean's remote interface. I have put the following in the jboss.xml: ... session ejb-nameClusteredSLSB/ejb-name jndi-nameejb/ClusteredSLSB/jndi-name clusteredTrue/clustered cluster-config partition-nameDefaultPartition/partition-name home-load-balance-policyorg.jboss.ha.framework.interfaces.RoundRobin/home -load-balance-policy bean-load-balance-policyorg.jboss.ha.framework.interfaces.RoundRobin/bean -load-balance-policy /cluster-config configuration-nameIIOP Stateless SessionBean/configuration-name /session ... On deploying the jar, I get the following exception. Will appreciate any solution to this!!! Thanks, Surajit 16:11:47,665 ERROR [XmlFileLoader] failed to load jboss.xml. There could be a syntax error. org.jboss.deployment.DeploymentException: Error in jboss.xml for Bean ClusteredSLSB: configuration 'IIOP Stateless SessionBean' not found in standardjboss.xml or jboss.xml at org.jboss.metadata.ApplicationMetaData.importJbossXml(ApplicationMetaData.ja va:751) at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:174) at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:438) at org.jboss.deployment.MainDeployer.create(MainDeployer.java:784) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:639) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613) at sun.reflect.GeneratedMethodAccessor23.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispat cher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) at $Proxy7.deploy(Unknown Source) at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanne r.java:280) at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner. java:407) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan( AbstractDeploymentScanner.java:200) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(Ab stractDeploymentScanner.java:211) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(Abs tractDeploymentScanner.java:190) 16:11:47,674 ERROR [MainDeployer] could not create deployment: file:/home/surajit/jboss/jboss-3.2.0_tomcat-4.1.24/server/all/deploy/cluster edapp.jar --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] CORBA Client to Session Bean NOT POSSIBLE in 3.2.2 ??
Hi all! I am looking for a way to have an external CORBA client invoke a method on a Session Bean's remote interface. I am not able to figure out a way of doing this in JBOSS !! Any help will be deeply appreciated!!! Thanks, Surajit --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: Re[2]: [JBoss-user] Finder generating wrong SQL statement inJboss-3.2.1
Try setting: querytrue/query On Tue, 2003-07-01 at 10:55, Alexey Loubyansky wrote: Hello Janardhan, JAWS was replaced with JBossCMP a long time ago and is not supported anymore. Sorry, I really don't know what is wrong with your finder. alex Tuesday, July 01, 2003, 12:03:42 PM, Janardhan Burugupalli wrote: JB Hi All, JB I have a finder defined in the jwas.xml like this below JB finder JB namefindAllOrdered/name JB query/ JB orderCREATINGTIME DESC/order JB /finder JB i dont have any query because i want all results only in the Creating JB time desc format JB but jboss is generating the following sql query JB 2003-07-01 10:55:24,007 DEBUG JB [org.jboss.ejb.plugins.jaws.jdbc.JDBCCommand] findAllOrdered command JB executing: SELECT PeerTask.OID, CREATINGTIME FROM PeerTask where ORDER JB BY CREATINGTIME DESC JB in the above sql statement there should not be a where condition as the JB query has nothing in it which is generated by Jboss JB can any one help me urgently how to fix this JB thanks janardhan --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- Peter Beck BEng (hons) MIEE - Managing Director, Electrostrata Ltd. http://www.electrostrata.com --+-+-- Experts in e-business and e-commerce --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] On the performance trail - again
As an addition to this, I should point out that you do see the memory reclaimed eventually. About three to four hours in idle time on my test system, sees the RSS drop to around the levels seen with the trimToSize() addition - probably the time it takes for the GC to find the areas to reclaim. However, this probably detracts from the performance. If I'm reading it correctly, 20Mb of memory is a lot to clean up, and in my books, a lot to give up. Since it happens at the metadata-read stage of proceedings, I guess redeployments are also going to be affected. If you have a big deployment, you might appreciate the immediate memory reclaim and the reduced GC interruption later. JonB -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Jon Barnett Sent: Tuesday, 1 July 2003 11:57 AM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] On the performance trail - again As an aside (and up front before the other numbers), I cleaned up some code around the MetaData area so that ArrayLists were trimmed and the other methods getUniqueChild, etc called my new getChildArrayByTagName method. I also finalized methods in this area and Containers and took out variable declarations within loops in these areas. The results were: RT: 115 ms (no change), min. 30 ms, max 3405 ms, VSZ: 183516Kb (down 0.37%), RSS: 106756Kb (down 17.57%). I probably gave up any performance gains for cleaning memory on the spot. It was interesting the in-memory use dropped that much. But IBM take the opposite view - sacrifice memory for speed. smime.p7s Description: S/MIME cryptographic signature
Re: [JBoss-user] problem accessing an inner class from an MBean
Thank you very much Mr. Stark! I can see the mistake now. Scott M Stark wrote: Thanks for the trace log output. The source of the issue is that there are two independent deployments that have the org.eupki.ca.ejb.services.CRLFactory class: deploy/eupki-ca-archive.jar deploy/eupki-ca.ear/eupki-ca.sar The eupki-ca-archive.jar has precedence over the eupki-ca.ear/eupki-ca.sar in terms of preferred ordering. This means that the classes should be coming from the class loader associated with the eupki-ca-archive.jar, however, when the CRLFactory class is loaded during service creation, there is a recursion into the class loading layer to loads its CRLFactoryMBean interface that is interferring with the loading precedence and the end result is: CRLFactoryMBean is loaded by the class loader of: eupki-ca-archive.jar CRLFactory is loaded by the class loader of: eupki-ca.ear CRLFactory$CertScanner is loaded by the class loader of: eupki-ca-archive.jar I have to look more into the precedence problem, but the workaround it to only have the CRLFactory class in one deployment scope. --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] CORBA Client to Session Bean NOT POSSIBLE in 3.2.2 ??
Can you check the Jacorb web site/documentation, I think they have sample code on how to access JBoss from a remote corba client. Cheeres, sacha -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Surajit Bhattacharjee Sent: mercredi, 2. juillet 2003 02:34 To: [EMAIL PROTECTED] Subject: [JBoss-user] CORBA Client to Session Bean NOT POSSIBLE in 3.2.2 ?? Hi all! I am looking for a way to have an external CORBA client invoke a method on a Session Bean's remote interface. I am not able to figure out a way of doing this in JBOSS !! Any help will be deeply appreciated!!! Thanks, Surajit --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_06 1203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Oracle LOB's on JBoss 3.2.1
Actually, I have the exact same code (same class) working in a standalone application. It only seems to be a problem within JBoss. Karl Hi, I don't think this has much to do with JBoss. Try to get this code to work in a standalone program first, and if you still have problems, ask on one of the Oracle discussion forums. Steve Coy On Tuesday, July 1, 2003, at 05:50 AM, Karl Koster wrote: Has anyone had any success using Oracle LOB's on JBoss? I have persistantly had this problem up to and including 3.2.1 where I can insert LOB's just fine. But on update I get the dreaded ORA-01002: Fetch out of sequence. I am using JBoss3.2.1, Oracle 9i, and the 9i thin driver (ojbdc14_g.jar). Here a code snippet that persistantly fails: try { boolean big = cr.getCurveData().length() 4000; if (!big) { stmt = factory.getSqlStatement(Curves, Update, conn); stmt.setString(1, cr.getCurveData()); stmt.setTimestamp(2, new Timestamp(new java.util.Date().getTime())); stmt.setInt(3, cr.getUserId()); stmt.setInt(4, cr.getTopicId()); stmt.setDate(5, new Date(cr.getMarketDay().getDate().getTime())); result = stmt.executeUpdate(); } else { stmt = factory.getSqlStatement(Curves, UpdateLarge, conn); stmt.setTimestamp(1, new Timestamp(new java.util.Date().getTime())); stmt.setInt(2, cr.getUserId()); stmt.setInt(3, cr.getTopicId()); stmt.setDate(4, new Date(cr.getMarketDay().getDate().getTime())); result = stmt.executeUpdate(); if (result == 0) { return result; } stmt = factory.getSqlStatement(Curves, SelectUpdate, conn); stmt.setInt(1, cr.getTopicId()); stmt.setDate(2, new Date(cr.getMarketDay().getDate().getTime())); OracleResultSet rs = (OracleResultSet) stmt.executeQuery(); if (rs != null rs.next()) { rs.getCLOB(1).putString(1, cr.getCurveData()); rs.close(); } } return result; } finally { try { if (stmt != null) { stmt.close(); } } catch (SQLException e) { logger.warn(Failed to close a SQL resource., e); } } The error, ORA-01002, is raised on the invocation of OracleResultSet rs = (OracleResultSet) stmt.executeQuery(). My understanding is that, as long as autocommit is false, this should work. Since the connection is fetched from a connection pool managed by JBoss, this should be the case. Any clues as to why this does not work? Karl ** This e-mail contains privileged attorney-client communications and/or confidential information, and is only for the use by the intended recipient. Receipt by an unintended recipient does not constitute a waiver of any applicable privilege. Reading, disclosure, discussion, dissemination, distribution or copying of this information by anyone other than the intended recipient or his or her employees or agents is strictly prohibited. If you have received this communication in error, please immediately notify us and delete the original material from your computer. Sempra Energy Trading Corp. (SET) is not the same company as SDGE or SoCalGas, the utilities owned by SET's parent company. SET is not regulated by the California Public Utilities Commission and you do not have to buy SET's products and services to continue to receive quality regulated service from the utilities. ** --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/ 01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] org.jboss.persistence.schema.DuplicateNameException
Hello Christofer, I recommend you to switch back to 3.2. 3.2 is our production branch. EJB/CMP in 3.2 is more stable and feature reach at the moment. alex Tuesday, July 01, 2003, 2:51:54 PM, Christofer Dutz wrote: CD Hi, CD after a small break on my work with the SPECjAppServer2002 I finaly was CD able to continue. CD Because I had some realy big problems with CMP in jboss 3.2 I decided to CD switch to 4.0. Hopefully the completely rewritten CMP-Engine CD would have some other problems ... ones which I could mabe find a CD solution to. CD The first thing I did, was change to the new 4.0 branch of jboss. My CD first try to deploy the benchmark resulted in DuplicateNameExceptions. CD In the test application there are three entities which are stored in the CD same table in the database. Each entity has a different view on the data. CD My first guess was that jboss simply won't allow me to map more than one CD entity to one table. Is this correct? And if it is, why? CD Christofer --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Datasource Problems
Hi All... My friends, I spent almost 3 weeks with a big problem with JBoss's DataSource. I am using Oracle, and I am sure of to close the connections after my events. However, seem never JBoss closes these connections... Then this fact happens every time , until to explode the number of connections, causing JBoss's restart. In more details: The number of connections grow from: 3-12-20-26-30-46...214 Then the service fails. This Application is WebService providing searches against a DataBase, with some services with EJB and JMS. The only problem is above, with connections about DataSource. I am using Oracle 9i and the newest jdbc driver Any Idea? Since now Thanks Edgar --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] javax.naming.NameNotFoundException after some redeploys
As the subject says, it happens that after some redeploys, a javax.naming.NameNotFoundException is thrown when on my web client I try to lookup the first Stateless session bean remote interface. At this point to have my app. working, I have to to restart jboss. Any suggestion? Thanks Davide signature.asc Description: PGP signature
RE: [JBoss-user] jms diagnostics?
Scott How much less proformant? We're not in a position to upgrade right now (we're just finishing testing for a release). Our usage of JMS isn't heavy. We only send messages occasionally. Is it a latency issue or a throughput issue (or both?). In other words, are individual messages quick but you just can't shove a lot through, or are the messages themselves slower. In the small tests I did the difference if any wasn't noticeable. I'll throw trace on and see if I can get to the bottom of why our disconnect isn't clean (we attempt to close all connections on shutdown), but for now the problem is on disconnect the app server can generate a very large number of disconnect messages. Thanks Eric Kaplan -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Scott M Stark Sent: Monday, June 30, 2003 6:59 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] jms diagnostics? UIL is less performant than OIL so don't go there. UIL2 first showed up in the 3.0.7 release. Trace is a custom log4j level so the syntax is: category name=org.jboss.mq.il priority value=TRACE class=org.jboss.logging.XLevel/ /category -- Scott Stark Chief Technology Officer JBoss Group, LLC Eric J Kaplan wrote: Thanks Scott. Is there a UIL2 protocol in 3.0.4? I only see a UIL, which I switched to, and the messages disappeared. However, I'm still concerned I might not be cleaning up properly on disconnect. First question, with UIL, is this an issue? Second, I turned trace on in log4j.xml through the following: category name=org.jboss.mq priority value=TRACE/ /category but don't see anything different on the output. Is this not right? Regards Eric Kaplan --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Integrating Tomcat in JBoss
Just add these jars/features to the existing jbossweb-tomcat.sar or follow the proceedure used to build this sar. See the tomcat41 module of the source tree for the details. -- Scott Stark Chief Technology Officer JBoss Group, LLC Ittay Dror wrote: Hi, I want to integrate a release of tomcat in jboss. I don't want to use the ready made version of JBoss which has tomcat inside, because it lacks several features (for example jspc). Any pointers are welcome Thank you, Ittay --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Oracle LOB's on JBoss 3.2.1
I'd check your initial assumption that the connection is not set to autocommit. I think you'll find it is still in autocommit. To test, you can set it to false before you use it. JonB -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Karl Koster Sent: Tuesday, 1 July 2003 11:14 PM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] Oracle LOB's on JBoss 3.2.1 Actually, I have the exact same code (same class) working in a standalone application. It only seems to be a problem within JBoss. Karl smime.p7s Description: S/MIME cryptographic signature
Re: [JBoss-user] Problem binding RMI to particular interface
You would have to specify an java.rmi.server.RMIServerSocketFactory instance that allowed for binding on a specific interface: attribute name=ServerSocketFactoryMyRMIServerSocketFactory /attribute We should probably just be installing an implementation that used the BindAddress setting if specified. I'll make that change. -- Scott Stark Chief Technology Officer JBoss Group, LLC Phil Packer wrote: Hi, I hope someone can help me with what may be a simple JNDI problem. I have a multi-homed host running JBoss-3.0.6/j2sdk1.4.2 (on RedHat 9) and I have another application on the other side of a firewall that need to be able to do JNDI and RMI to this JBoss instance I've managed to make JNDI return references relative to a given interface by starting JBoss with a -Djava.rmi.server.hostname=IP_address_of_interface In ~/conf/jboss-service.xml I've successfully locked down the JNDI naming service by port and by IP address thus: ---snip--- mbean code=org.jboss.naming.NamingService name=jboss:service=Naming !-- The listening port for the bootstrap JNP service. Set this to -1 to run the NamingService without the JNP invoker listening port. -- attribute name=BindAddress192.168.12.226/attribute attribute name=Port1099/attribute attribute name=RmiPort2099/attribute /mbean mbean code=org.jboss.naming.JNDIView name=jboss:service=JNDIView/ --snip-- But I also wanted to lock down the RmiPort to a fixed port and IP address and in the above snippet, BindAddress appears to apply only to the JNDI Port, the RmiPort still ends up being a wildcard bind to all interfaces on the server thus: ---snip--- [EMAIL PROTECTED] conf]$ netstat -tan Active Internet connections (servers and established) Proto Recv-Q Send-Q Local Address Foreign Address State tcp0 0 0.0.0.0:32768 0.0.0.0:* LISTEN tcp0 0 127.0.0.1:32769 0.0.0.0:* LISTEN tcp0 0 0.0.0.0:34213 0.0.0.0:* LISTEN tcp0 0 0.0.0.0:34214 0.0.0.0:* LISTEN tcp0 0 0.0.0.0:34215 0.0.0.0:* LISTEN tcp0 0 192.168.12.226:1099 0.0.0.0:* LISTEN tcp0 0 192.168.12.226:1100 0.0.0.0:* LISTEN tcp0 0 0.0.0.0:111 0.0.0.0:* LISTEN tcp0 0 192.168.12.226:4466 0.0.0.0:* LISTEN tcp0 0 0.0.0.0:20990.0.0.0:* LISTEN tcp0 0 192.168.12.226:8083 0.0.0.0:* LISTEN tcp0 0 0.0.0.0:22 0.0.0.0:* LISTEN tcp0 0 127.0.0.1:250.0.0.0:* LISTEN tcp0 0 192.168.12.226: 0.0.0.0:* LISTEN tcp0 48 192.168.12.102:22 192.168.1.57:45395 ESTABLISHED [EMAIL PROTECTED] conf]$ ---snip--- So the obvious questions are: a) Can I do this at all? b) Is there something I've overlooked in the config? All suggestions gratefully recieved Phil Packer [EMAIL PROTECTED] --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Insufficient method permissions
Our default login mechanism is not through the JNDI InitialContext. If (Byou want to do that you need to use the (Borg.jboss.security.jndi.LoginInitialContextFactory: (B (B Properties env = new Properties(); (B // Try with a login that should succeed (B env.setProperty(Context.INITIAL_CONTEXT_FACTORY, (B"org.jboss.security.jndi.LoginInitialContextFactory"); (B env.setProperty(Context.PROVIDER_URL, "jnp://localhost:1099/"); (B env.setProperty(Context.SECURITY_CREDENTIALS, "theduke"); (B env.setProperty(Context.SECURITY_PRINCIPAL, "jduke"); (B env.setProperty(Context.SECURITY_PROTOCOL, "myLoginConfig"); (B (Bwhere myLoginConfig is a JAAS login configuration that has at least the (BJBoss ClientLogin module. (B (B-- (B (BScott Stark (BChief Technology Officer (BJBoss Group, LLC (B (B (BPham Thanh Quan wrote: (B (B Hi all, (B (B (B (B When I run the following piece of code: (B (B (B (B Properties properties = new Properties(); (B (B properties.put("java.naming.provider.url", url); (B (B properties.put("java.naming.factory.initial", jndiContextClass); (B (B properties.setProperty(Context.SECURITY_PRINCIPAL, "administrator"); (B (B properties.setProperty(Context.SECURITY_CREDENTIALS, "administrator"); (B (B Context context = new InitialContext(properties); (B (B PromotionInfoManagerHome promotionInfoManagerHome = (B (PromotionInfoManagerHome) context.lookup("PromotionInfoManager"); (B (B PromotionInfoManager promotionInfoManager = (B promotionInfoManagerHome.create(); (B (B PromotionProgramValue promotionProgramValue = new (B PromotionProgramValue("test", "test", "published", null, false); (B (B promotionInfoManager.createPromotionProgram(promotionProgramValue); (B (B (B (B I get the following exception: (B (B (B (B java.rmi.ServerException: RemoteException occurred in server thread; (B nested exception is: (B (B java.rmi.ServerException: EJBException:; nested exception is: (B (B javax.ejb.EJBException: checkSecurityAssociation; (B CausedByException is: (B (B Insufficient method permissions, principal=null, (B method=createPromotionProgram, interface=REMOTE, (B requiredRoles=[Administrator, SystemUser], principalRoles=[] (B (B $B!D(B (B (B (B (B Although the account I used above (username=administrator, (B password=administrator, and its role is $B!H(BAdministrator$B!I(B) is a valid (B account, when I use that account to login from my web server, and then (B call the method of the bean above, everything is OK. Please tell me what (B the problem is. (B (B (B (B Thanks and regards (B (B Quan (B (B (B (B (B (B (B (B--- (BThis SF.Net email sponsored by: Free pre-built ASP.NET sites including (BData Reports, E-commerce, Portals, and Forums are available now. (BDownload today and enter to win an XBOX or Visual Studio .NET. (Bhttp://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 (B___ (BJBoss-user mailing list (B[EMAIL PROTECTED] (Bhttps://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] On the performance trail - again
The metadata stuff would only affect boot time. I'm more concerned about runtime performance and overall memory footprint. Thanks again for your work, Bill -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Jon Barnett Sent: Tuesday, July 01, 2003 8:05 AM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] On the performance trail - again As an addition to this, I should point out that you do see the memory reclaimed eventually. About three to four hours in idle time on my test system, sees the RSS drop to around the levels seen with the trimToSize() addition - probably the time it takes for the GC to find the areas to reclaim. However, this probably detracts from the performance. If I'm reading it correctly, 20Mb of memory is a lot to clean up, and in my books, a lot to give up. Since it happens at the metadata-read stage of proceedings, I guess redeployments are also going to be affected. If you have a big deployment, you might appreciate the immediate memory reclaim and the reduced GC interruption later. JonB -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Jon Barnett Sent: Tuesday, 1 July 2003 11:57 AM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] On the performance trail - again As an aside (and up front before the other numbers), I cleaned up some code around the MetaData area so that ArrayLists were trimmed and the other methods getUniqueChild, etc called my new getChildArrayByTagName method. I also finalized methods in this area and Containers and took out variable declarations within loops in these areas. The results were: RT: 115 ms (no change), min. 30 ms, max 3405 ms, VSZ: 183516Kb (down 0.37%), RSS: 106756Kb (down 17.57%). I probably gave up any performance gains for cleaning memory on the spot. It was interesting the in-memory use dropped that much. But IBM take the opposite view - sacrifice memory for speed. --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] no dice on TRACE
Ive had no success turning TRACE on in jboss. 3.0.4. Even if I uncomment the lines in log4j.xml that say Ill get a lot of output I get nothing: category name=org.jboss.system priority value=TRACE class=org.jboss.logging.XLevel/ /category category name=org.jboss.ejb.plugins priority value=TRACE class=org.jboss.logging.XLevel/ /category Any ideas on what I might be doing wrong? I specifically need trace for jboss mq. Regards Eric J. Kaplan Armanta, Inc. 350 Mt. Kemble Ave. Morristown, NJ 07960
RE: [JBoss-user] 3.2.1: Persistence for SystemPropertiesService?
Thanks for the info. Are there any docs available on how to properly use XMBeans and what exactly the persistence semantics are? I do have the full doc subscription as well, but I didn't find anything on XMBeans in the versions I have. Dustin -Original Message- From: Scott M Stark [mailto:[EMAIL PROTECTED] Sent: Monday, June 30, 2003 4:28 PM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] 3.2.1: Persistence for SystemPropertiesService? XMBeans support persistence and are in 3.2. -- Scott Stark Chief Technology Officer JBoss Group, LLC Barlow, Dustin wrote: Has anyone added persistence to the SystemPropertiesService? IE, I want the changes made to system/global level properties (via JMX) to be persisted to the file that they came from or possibly written to a single delta file that on startup of JBoss would override the properties coming from the non-URL (and maybe even URL) based property file location(s). I notice that the load method in the SystemPropertiesService code doesn't keep the source of where the property came from with the property itself, so that's why i thought maybe the delta file would be a decent approach for persisting changes with minimal impact on the existing code base. If this hasn't been done yet, and I was interested in added the persistence functionality, what is the sanctioned approach for JMX/MBean persistence in the 3.2 series? I'm aware that there is a new MBean base in the 4.0 series that will do persistence, but I wasn't sure if this has been (or planned to be) backported to 3.2.1. It also wasn't clear to me if those new MBeans would naturally extend persisting the service based settings to also include persisting property changes in this case. Would anyone else benefit from this feature? Thanks, Dustin --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_06 1203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Problem binding RMI to particular interface
Thanks very much for the quick reply Scott! I sort of suspected that that might be the case - I'd be very happy to test any changes in that area (although I'm currently more of a system integrator than a Java programmer...) Many thanks again Phil On Tue, 2003-07-01 at 14:55, Scott M Stark wrote: You would have to specify an java.rmi.server.RMIServerSocketFactory instance that allowed for binding on a specific interface: attribute name=ServerSocketFactoryMyRMIServerSocketFactory /attribute We should probably just be installing an implementation that used the BindAddress setting if specified. I'll make that change. -- Phil Packer [EMAIL PROTECTED] --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Oracle LOB's on JBoss 3.2.1
Correct me if I am wrong, but the connection retrieved from JBoss's managed connection pool always has autocommit to set to false even if it reports true. If there is a configuration setting for the datasource that I am missing, I have not been able to find it. I am using a local transaction datasource configuration (no XA semantics). I'd check your initial assumption that the connection is not set to autocommit. I think you'll find it is still in autocommit. To test, you can set it to false before you use it. JonB -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Karl Koster Sent: Tuesday, 1 July 2003 11:14 PM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] Oracle LOB's on JBoss 3.2.1 Actually, I have the exact same code (same class) working in a standalone application. It only seems to be a problem within JBoss. Karl ** This e-mail contains privileged attorney-client communications and/or confidential information, and is only for the use by the intended recipient. Receipt by an unintended recipient does not constitute a waiver of any applicable privilege. Reading, disclosure, discussion, dissemination, distribution or copying of this information by anyone other than the intended recipient or his or her employees or agents is strictly prohibited. If you have received this communication in error, please immediately notify us and delete the original material from your computer. Sempra Energy Trading Corp. (SET) is not the same company as SDGE or SoCalGas, the utilities owned by SET's parent company. SET is not regulated by the California Public Utilities Commission and you do not have to buy SET's products and services to continue to receive quality regulated service from the utilities. ** --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] no dice on TRACE
remove THRESHOLD from the appender On Tue, 1 Jul 2003, Eric J Kaplan wrote: I've had no success turning TRACE on in jboss. 3.0.4. Even if I uncomment the lines in log4j.xml that say I'll get a lot of output I get nothing: category name=org.jboss.system priority value=TRACE class=org.jboss.logging.XLevel/ /category category name=org.jboss.ejb.plugins priority value=TRACE class=org.jboss.logging.XLevel/ /category Any ideas on what I might be doing wrong? I specifically need trace for jboss mq. Regards Eric J. Kaplan Armanta, Inc. 350 Mt. Kemble Ave. Morristown, NJ 07960 --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Axis logging
Is it possible to reduce the pages of stack trace that are generated every time an Axis web service throws a user exception? -- Eric Jain --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Workflow engine for JBoss 3.2 ?
I'm looking for a workflow engine to integrate into JBoss. I would prefer it to be MBean based and to be open source. I did a bit of googling and ran across Hanoi on sourceforge, but it hasn't been released yet, so it looks like that's a potential option in the future. Anyone familiar with this product? On the downloads section of the JBoss site, I noticed that that OakGrove Systems has a commercial product that integrates with the 3.0.4 series. I presume that it would also work with the 3.2 and possibly the 4.0 series as well. Does anyone here have direct experience with the product and can you give a brief synopsis of your experiences with it? Are there any other JBoss sanctioned workflow engines out there? Thanks for the info, Dustin --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] SLSB atomicity
Hi, I have a SLSB acting as a facade for all my CMP entities. In one of my SLSBmethods, I create two CMP beans. Is it possible to give this method an atomicity so if the first bean's creation fails, the second one shouldn't be created OR if the second bean's creation fails, the first bean should be deleted ? thanks, ionel --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] no dice on TRACE
You need to remove the filter on the appender that specfies only INFO is shown. Adrian Brock Director of Support Back Office JBoss Group, LLC -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Eric J Kaplan Sent: 01 July 2003 15:20 To: [EMAIL PROTECTED] Subject: [JBoss-user] no dice on TRACE I've had no success turning TRACE on in jboss. 3.0.4. Even if I uncomment the lines in log4j.xml that say I'll get a lot of output I get nothing: category name=org.jboss.system priority value=TRACE class=org.jboss.logging.XLevel/ /category category name=org.jboss.ejb.plugins priority value=TRACE class=org.jboss.logging.XLevel/ /category Any ideas on what I might be doing wrong? I specifically need trace for jboss mq. Regards Eric J. Kaplan Armanta, Inc. 350 Mt. Kemble Ave. Morristown, NJ 07960 --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] no dice on TRACE
Juha That worked, thank you. Open source is great. There aren't too many products where you can ask a question (albeit a trivial one) and one of the leading authorities (whose book I have sitting on my desk) answers. Regards Eric -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Juha-P Lindfors Sent: Tuesday, July 01, 2003 10:41 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] no dice on TRACE remove THRESHOLD from the appender On Tue, 1 Jul 2003, Eric J Kaplan wrote: I've had no success turning TRACE on in jboss. 3.0.4. Even if I uncomment the lines in log4j.xml that say I'll get a lot of output I get nothing: category name=org.jboss.system priority value=TRACE class=org.jboss.logging.XLevel/ /category category name=org.jboss.ejb.plugins priority value=TRACE class=org.jboss.logging.XLevel/ /category Any ideas on what I might be doing wrong? I specifically need trace for jboss mq. Regards Eric J. Kaplan Armanta, Inc. 350 Mt. Kemble Ave. Morristown, NJ 07960 --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re[2]: [JBoss-user] org.jboss.persistence.schema.DuplicateNameException
Tuesday, July 01, 2003, 5:29:53 PM, Christofer Dutz wrote: CD Alexey Loubyansky wrote: Hello Christofer, I recommend you to switch back to 3.2. 3.2 is our production branch. EJB/CMP in 3.2 is more stable and feature reach at the moment. CD Well I know that this is a beta version. The thing is that as I already CD said, the 3.2 doesn't work properly (StackOverflowErrors) and I could CD not find a solution for this problem. The tips I got from this CD mailinglist didn't work. Nevertheless, you ask for help in this list ;) Some more tips from me ;) Switch to the last version of 3.2 and try again. If there is a StackOverflowException, then, please, submit a bug report providing the stacktrace. Feel free to contact me directly in this regard, alex CD The other thing was, that I was woried that if I run into problems in CD the 3.2 branch (after having solved my current problem) mabe it will CD take much longer for them to be fixed or I am told to wait for 4.0. CD chris alex Tuesday, July 01, 2003, 2:51:54 PM, Christofer Dutz wrote: CD Hi, CD after a small break on my work with the SPECjAppServer2002 I finaly was CD able to continue. CD Because I had some realy big problems with CMP in jboss 3.2 I decided to CD switch to 4.0. Hopefully the completely rewritten CMP-Engine CD would have some other problems ... ones which I could mabe find a CD solution to. CD The first thing I did, was change to the new 4.0 branch of jboss. My CD first try to deploy the benchmark resulted in DuplicateNameExceptions. CD In the test application there are three entities which are stored in the CD same table in the database. Each entity has a different view on the data. CD My first guess was that jboss simply won't allow me to map more than one CD entity to one table. Is this correct? And if it is, why? CD Christofer --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] SLSB atomicity
Assuming the SLSB requires a transaction and the CMP create does not create a new one it should be atomic already. -Original Message- From: Ionel Gardais [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2003 7:51 AM To: [EMAIL PROTECTED] Subject: [JBoss-user] SLSB atomicity Hi, I have a SLSB acting as a facade for all my CMP entities. In one of my SLSBmethods, I create two CMP beans. Is it possible to give this method an atomicity so if the first bean's creation fails, the second one shouldn't be created OR if the second bean's creation fails, the first bean should be deleted ? thanks, ionel --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] WSDL Part names within messages.
Title: Message Hi Dr. Jung, Just a quick heads up on how I got on with the parameter problem. Basically I amended the jboss-net-ejb.xml.xdt xdoclet template to include an extra xdoclet method tag @jboss-net:wsdd-operation. I stuck the following xdoclet code between the tags that generated the allowed-methods parameter and the request flow parameter. *** XDtMethod:forAllMethods XDtMethod:ifHasMethodTag tagName="jboss-net:wsdd-operation"operation name="XDtEjbIntf:interfaceMethodName/"XDtMethod:ifHasMethodTag tagName='jboss-net:wsdd-operation' paramName='returnQName' returnQName="XDtMethod:methodTagValue tagName='jboss-net:wsdd-operation' paramName='returnQName'/"/XDtMethod:ifHasMethodTagXDtParameter:forAllMethodParamsparameter name="XDtParameter:methodParamName/"//XDtParameter:forAllMethodParams/operation /XDtMethod:ifHasMethodTag /XDtMethod:forAllMethods requestFlow name="XDtClass:classTagValue tagName='jboss-net:web-service' paramName='urn'/Request" *** Then I placed the following tags over the method for which I needed the actual parameter names. * @jboss-net:wsdd-operation * returnQName="AppointmentDate" public String makeAppointment(String MRN, String specialist) Running the ejbdoclet task produced the normal web-service.xml along with this snippet. operation name="makeAppointment" returnQName="AppointmentDate"parameter name="MRN"/ parameter name="specialist"//operation The axis wsdl generator produces the following WSDL from this wsdd. wsdl:message name="makeAppointmentRequest"wsdl:part name="MRN" type="xsd:string" / wsdl:part name="specialist" type="xsd:string" / /wsdl:message wsdl:message name="makeAppointmentResponse" wsdl:part name="AppointmentDate" type="xsd:string" / /wsdl:message The wsdl generator must retrieve the part type from the class itself as although you can supply it in the wsdd's operation tag, I didn't as it would have been rewritting code that was already there. I'm not sure if this is what you had in mind and in fact the more I think about it maybe you meant for me to amend the axis code as opposed to manipulating the xdoclet stuff. Anyway I'd really appreciate your thoughts on this, any glaring errors etc as I'm not the oldest hat to web-services andcan't see many of the obvious errors that will resultfrom this. For example I've no ideahow thiswould handle types other than simple objects Strings Booleans i.e. yer basic java.langclasses. I'm not sure if the axis generator will handle them or what might happen. Maybe it's a bit narrow minded in that it's only really applicable to ejbs? Thanks, Mark. -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jung , Dr. ChristophSent: 25 June 2003 14:24To: '[EMAIL PROTECTED]'Subject: AW: [JBoss-user] WSDL Part names within messages. I would be quite interested in the results of your experiments given that we will rewrite EJBProvider for a more tight integration with the jboss invocation stack. CGJ -Ursprüngliche Nachricht-Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Mittwoch, 25. Juni 2003 14:43An: [EMAIL PROTECTED]Betreff: RE: [JBoss-user] WSDL Part names within messages. Hi Dr. Jung, I was hoping you'd get back to me. Thanks again. I think I'll have a look at the BCEL and XJavadoc option. Thanks very much for your help, Mark. -Original Message-From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Jung , Dr. ChristophSent: 25 June 2003 07:36To: '[EMAIL PROTECTED]'Subject: AW: [JBoss-user] WSDL Part names within messages. Mark, Axis has several ways of annotating such meta-data to be used by the WSDL Emitter (which uses reflection and builtin naming rules to build its default meta-data thats why the parameter names are so ugly). First the deployment descriptor itself, but in this case it does not leave you much options except giving a service name. You could also subclass the provider implementation (EJBProvider in this case) for preparing the WSDL emitter with additional information, .e.g, doing the reflection via a different bytecode analyzer, such as BCEL or xjavadoc or What Ive also seen is the possibilty for some target beans (Im not sure for EJBProvider, but you should look in the Axis docu) to implement a static method that will return the already prepared meta-data to the emitter. CGJ -Ursprüngliche Nachricht-Von: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Gesendet: Dienstag, 24.
RE: [JBoss-user] no dice on TRACE
;-) On Tue, 1 Jul 2003, Eric J Kaplan wrote: Juha That worked, thank you. Open source is great. There aren't too many products where you can ask a question (albeit a trivial one) and one of the leading authorities (whose book I have sitting on my desk) answers. Regards Eric -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Juha-P Lindfors Sent: Tuesday, July 01, 2003 10:41 AM To: [EMAIL PROTECTED] Subject: Re: [JBoss-user] no dice on TRACE remove THRESHOLD from the appender On Tue, 1 Jul 2003, Eric J Kaplan wrote: I've had no success turning TRACE on in jboss. 3.0.4. Even if I uncomment the lines in log4j.xml that say I'll get a lot of output I get nothing: category name=org.jboss.system priority value=TRACE class=org.jboss.logging.XLevel/ /category category name=org.jboss.ejb.plugins priority value=TRACE class=org.jboss.logging.XLevel/ /category Any ideas on what I might be doing wrong? I specifically need trace for jboss mq. Regards Eric J. Kaplan Armanta, Inc. 350 Mt. Kemble Ave. Morristown, NJ 07960 --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] org.jboss.persistence.schema.DuplicateNameException
Ok .. here my Stacktrace 2003-07-01 17:52:04,656 ERROR [org.jboss.ejb.plugins.LogInterceptor] EJBException, causedBy: javax.ejb.TransactionRolledbackLocalException: null; CausedByException is: Unexpected Error java.lang.StackOverflowError ; CausedByException is: Unexpected Error java.lang.StackOverflowError ; CausedByException is: null; CausedByException is: Unexpected Error java.lang.StackOverflowError ; CausedByException is: Unexpected Error java.lang.StackOverflowError at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:204) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:243) at org.jboss.ejb.plugins.TxInterceptorCMT.invokeHome(TxInterceptorCMT.java:74) at org.jboss.ejb.plugins.SecurityInterceptor.invokeHome(SecurityInterceptor.java:92) at org.jboss.ejb.plugins.LogInterceptor.invokeHome(LogInterceptor.java:120) at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invokeHome(ProxyFactoryFinderInterceptor.java:93) at org.jboss.ejb.EntityContainer.internalInvokeHome(EntityContainer.java:477) at org.jboss.ejb.Container.invoke(Container.java:694) at org.jboss.ejb.plugins.local.BaseLocalProxyFactory.invokeHome(BaseLocalProxyFactory.java:272) at org.jboss.ejb.plugins.local.LocalHomeProxy.invoke(LocalHomeProxy.java:110) at $Proxy48.create(Unknown Source) at org.spec.jappserver.mfg.workorderses.ejb.WorkOrderSesEJB.scheduleWorkOrder(WorkOrderSesEJB.java:117) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.ejb.StatelessSessionContainer$ContainerInterceptor.invoke(StatelessSessionContainer.java:629) at org.jboss.resource.connectionmanager.CachedConnectionInterceptor.invoke(CachedConnectionInterceptor.java:186) at org.jboss.ejb.plugins.StatelessSessionInstanceInterceptor.invoke(StatelessSessionInstanceInterceptor.java:72) at org.jboss.ejb.plugins.AbstractTxInterceptor.invokeNext(AbstractTxInterceptor.java:84) at org.jboss.ejb.plugins.TxInterceptorCMT.runWithTransactions(TxInterceptorCMT.java:243) at org.jboss.ejb.plugins.TxInterceptorCMT.invoke(TxInterceptorCMT.java:104) at org.jboss.ejb.plugins.SecurityInterceptor.invoke(SecurityInterceptor.java:117) at org.jboss.ejb.plugins.LogInterceptor.invoke(LogInterceptor.java:191) at org.jboss.ejb.plugins.ProxyFactoryFinderInterceptor.invoke(ProxyFactoryFinderInterceptor.java:122) at org.jboss.ejb.StatelessSessionContainer.internalInvoke(StatelessSessionContainer.java:322) at org.jboss.ejb.Container.invoke(Container.java:674) at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispatcher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) at org.jboss.invocation.local.LocalInvoker.invoke(LocalInvoker.java:101) at org.jboss.invocation.InvokerInterceptor.invoke(InvokerInterceptor.java:83) at org.jboss.proxy.TransactionInterceptor.invoke(TransactionInterceptor.java:46) at org.jboss.proxy.SecurityInterceptor.invoke(SecurityInterceptor.java:45) at org.jboss.proxy.ejb.StatelessSessionInterceptor.invoke(StatelessSessionInterceptor.java:100) at org.jboss.proxy.ClientContainer.invoke(ClientContainer.java:85) at $Proxy101.scheduleWorkOrder(Unknown Source) at org.spec.jappserver.webbeans.WorkOrderSesBean.scheduleWorkOrder(WorkOrderSesBean.java:192) at org.apache.jsp.schedule_work_order_jsp._jspService(schedule_work_order_jsp.java:173) at org.apache.jasper.runtime.HttpJspBase.service(HttpJspBase.java:137) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:210) at org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:295) at org.apache.jasper.servlet.JspServlet.service(JspServlet.java:241) at javax.servlet.http.HttpServlet.service(HttpServlet.java:853) at org.mortbay.jetty.servlet.ServletHolder.handle(ServletHolder.java:360) at org.mortbay.jetty.servlet.WebApplicationHandler.dispatch(WebApplicationHandler.java:294) at org.mortbay.jetty.servlet.ServletHandler.handle(ServletHandler.java:558) at org.mortbay.http.HttpContext.handle(HttpContext.java:1714) at org.mortbay.jetty.servlet.WebApplicationContext.handle(WebApplicationContext.java:507) at org.mortbay.http.HttpContext.handle(HttpContext.java:1664) at
RE: [JBoss-user] SLSB atomicity
Ionel The container will manage all of this for you. In your ejb-jar.xml, specify container transaction type Requires for the create methods of your two entity beans, and RequiresNew as the transaction type for your SLSB method. The container will manage handling exactly what you want. Make sure in your session definition in ejb-jar.xml you specify transaction-type as container. Regards Eric -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ionel Gardais Sent: Tuesday, July 01, 2003 10:51 AM To: [EMAIL PROTECTED] Subject: [JBoss-user] SLSB atomicity Hi, I have a SLSB acting as a facade for all my CMP entities. In one of my SLSBmethods, I create two CMP beans. Is it possible to give this method an atomicity so if the first bean's creation fails, the second one shouldn't be created OR if the second bean's creation fails, the first bean should be deleted ? thanks, ionel --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Hypersonic hangs at shutdown
Anyone else seeing this? Friday jboss-head jdk 1.4.1_02 RedHat 8.0 Michael --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] SLSB atomicity
Catch the CreateException and setRollbackOnly() on the session context. Regards, Adrian Adrian Brock Director of Support Back Office JBoss Group, LLC -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ionel Gardais Sent: 01 July 2003 15:51 To: [EMAIL PROTECTED] Subject: [JBoss-user] SLSB atomicity Hi, I have a SLSB acting as a facade for all my CMP entities. In one of my SLSBmethods, I create two CMP beans. Is it possible to give this method an atomicity so if the first bean's creation fails, the second one shouldn't be created OR if the second bean's creation fails, the first bean should be deleted ? thanks, ionel --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_06 1203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Oracle LOB's on JBoss 3.2.1
Actually, I didn't mean change the pool as that would change for everything you did with connections from the pool. I meant just change it for your local connection. e.g. conn.setAutocommit(false); This is code we built back in JBoss 2.2 days against Oracle - we don't have an in-house Oracle as it chews too many resources, so I can't reverify the code operation against current JBoss builds. Assuming that nothing has changed, we used to have to turn off the autocommit. I can't tell you exactly the mechanics of why the pooled connection acts this way, but it does. // Oracle customisation public boolean setImage(ImageLocator imageLocator, Image image) { PreparedStatement updateImage = null; boolean imageSet = false; String sqlString = retrieveSQLCache(imageLocator); Connection connection = connectionPool.retrieveConnection(); if (connection != null) { try { connection.setAutoCommit(false); updateImage = connection.prepareStatement(sqlString); updateImage.setString(1, image.getImageName()); updateImage.setInt(2, image.getImageType()); updateImage.setInt(3, image.getLength()); updateImage.executeUpdate(); imageSet = createBlob(imageLocator, image, connection); } catch(Exception e) { String variables = imagename= + image.getImageName() + , length= + image.getLength() + , imagetype = + image.getImageType(); localEvent.setMethod(setImage); localEvent.setSeverity(EventType.SEVERE); localEvent.setException(e.toString()); localEvent.setMessage(Failed to set image.); localEvent.setVariables(variables); localEvent.setSQL(sqlString); localEvent.setDate(new java.util.Date()); logEvent(localEvent); } closePreparedStatement(updateImage); completeTransaction(sqlString, connection, imageSet); setAutoCommit(connection, true); closeConnection(connection); } return imageSet; } Hope this helps - at least it is something to try, rather than theorising about it. :) To badly misquote Bob Colwell, calibrate your foot and kick the tyres. JonB -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Karl Koster Sent: Wednesday, 2 July 2003 12:42 AM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] Oracle LOB's on JBoss 3.2.1 Correct me if I am wrong, but the connection retrieved from JBoss's managed connection pool always has autocommit to set to false even if it reports true. If there is a configuration setting for the datasource that I am missing, I have not been able to find it. I am using a local transaction datasource configuration (no XA semantics). smime.p7s Description: S/MIME cryptographic signature
Re: [JBoss-user] Workflow engine for JBoss 3.2 ?
On Tuesday 01 July 2003 16:44, Barlow, Dustin wrote: I'm looking for a workflow engine to integrate into JBoss. I would prefer it to be MBean based and to be open source. I did a bit of googling and ran across Hanoi on sourceforge, but it hasn't been released yet, so it looks like that's a potential option in the future. Anyone familiar with this product? On the downloads section of the JBoss site, I noticed that that OakGrove Systems has a commercial product that integrates with the 3.0.4 series. I presume that it would also work with the 3.2 and possibly the 4.0 series as well. Does anyone here have direct experience with the product and can you give a brief synopsis of your experiences with it? Are there any other JBoss sanctioned workflow engines out there? Thanks for the info, Dustin --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user Hi I tried to find a workflow for Jboss to but didn't succeed. It is rather easy to write a MBean interface to OSWorkflow (http://opensymphony.com/osworkflow/) which is also opensource!!. make an instace of the workflow in the startService function and then a wrapper function to all the other functions you need. -- Med venlig hilsen / Yours sincerely Kasper Fock EasySpeedy ApS ___ European Dedicated Server Hosting Extremely low prices, secure, and reliable Linux and BSD distributions only ___ --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Physical vs. Logical name lookups?
I just fixed a problem which had nagged me for a while regarding XDoclet generated Util class name lookups failing due to "ejb not bound" and while the details of the problem and solution are more appropriate for an XDoclet discussion, it did raise a question that I was hoping for some insight into. Apparently when adding the @ejb.util tags to bean classes, you can specify physical or logical as the name lookup type. Logical uses the fully qualified component name (and is the default) while physical uses the JNDI name. Are there reasons where one should be used over the other? Is there some logical reason why my name lookups would fail with JBoss using the XDoclet default of Logical? Thanks, Erik
RE: [JBoss-user] Oracle LOB's on JBoss 3.2.1
The connection coming from a JBoss datasource pool doesn't always have autocommit set to false. It depends on the context in which the connection is aquired from the JBoss pool. For example, if you have a JSP page or a Servlet directly grabbing a datasource from a JBoss pool, the connection returned will have autocommit set to true. While JBoss will certainly allow you to aquire a DataSource connection outside the context of the container, it is not considered J2EE-like to do so. If you aquire a datasource connection in an EJB which is setup for CMT (or BMT iirc) with a transaction attribute of Required, Mandatory, RequiresNew, etc. the connection will be returned from the pool with autocommit set to false. The following code snippet was taken from BaseWrapperedManagedConnection.jpp file in the connector/src/main/org/jboss/resource/adapter/jdbc. Notice the comments and how the code works. /** * The codecheckTransaction/code method makes sure the adapter follows the JCA * autocommit contract, namely all statements executed outside a container managed transaction * or a component managed transaction should be autocommitted. To avoid continually calling * setAutocommit(enable) before and after container managed transactions, we keep track of the state * and check it before each transactional method call. * */ void checkTransaction() throws SQLException { if (inManagedTransaction) { return; } // end of if () //Not in managed transaction. //Should we autocommit? if (jdbcAutoCommit != underlyingAutoCommit) { //set connection autocommit to agree with jdbcAutoCommit. underlyingAutoCommit = jdbcAutoCommit; con.setAutoCommit(jdbcAutoCommit); } // end of if () } /** * Get the JdbcAutoCommit value. * @return the JdbcAutoCommit value. */ boolean isJdbcAutoCommit() { return inManagedTransaction? false: jdbcAutoCommit; } /** * Set the JdbcAutoCommit value. * @param newJdbcAutoCommit The new JdbcAutoCommit value. */ void setJdbcAutoCommit(final boolean jdbcAutoCommit) throws SQLException { if (inManagedTransaction) { throw new SQLException(You cannot set autocommit during a managed transaction!); } // end of if () this.jdbcAutoCommit = jdbcAutoCommit; } void jdbcCommit() throws SQLException { if (inManagedTransaction) { throw new SQLException(You cannot commit during a managed transaction!); } // end of if () if (jdbcAutoCommit) { throw new SQLException(You cannot commit with autocommit set!); } // end of if () con.commit(); } Dustin Correct me if I am wrong, but the connection retrieved from JBoss's managed connection pool always has autocommit to set to false even if it reports true. If there is a configuration setting for the datasource that I am missing, I have not been able to find it. I am using a local transaction datasource configuration (no XA semantics). --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Workflow engine for JBoss 3.2 ?
Hi Dustin, Please look at jBpm http://jbpm.org A complete open source workflow engine. jBpm now works with 3.0.x, 3.2.1 compatibility is the first issue to be resolved (after the next release which is scheduled for later this week). Currently it is exposed as a set of session-beans but you could easily wrap it into an MBean, I think. Let me know what you think, Regards, Tom Baeyens [EMAIL PROTECTED] Founder jBpm Member of the expert group of JSR207 Process Definition for Java -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Barlow, Dustin Sent: 01 July 2003 16:44 To: [EMAIL PROTECTED] Subject: [JBoss-user] Workflow engine for JBoss 3.2 ? I'm looking for a workflow engine to integrate into JBoss. I would prefer it to be MBean based and to be open source. I did a bit of googling and ran across Hanoi on sourceforge, but it hasn't been released yet, so it looks like that's a potential option in the future. Anyone familiar with this product? On the downloads section of the JBoss site, I noticed that that OakGrove Systems has a commercial product that integrates with the 3.0.4 series. I presume that it would also work with the 3.2 and possibly the 4.0 series as well. Does anyone here have direct experience with the product and can you give a brief synopsis of your experiences with it? Are there any other JBoss sanctioned workflow engines out there? Thanks for the info, Dustin --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Plexus FloWare has a new J2EE version (Workflow for J2EE/JBoss)
Hello All, Plexus FloWare is an highly scalable enterprise class Workflow/BPM server. For details, refer www.plx.com A J2EE version of the product is already available for BEA Weblogic. A JBoss version is planned shortly. rgds MS --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] JBoss client
Hello, According to you what is the best way to implement an Artificial Intelligence process inside a JBoss server? One can imagine a scenario: a thread randomly invokes EJBs to modify a set of data. From what I've read, I can't implement such a thread inside an EJB :-(. So: - Is there a thread pool available that I can use? - If yes, how to start it properly after the ear deployment? - Should I use a timer? Thanks for your time, WS --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] javax.naming.NameNotFoundException after some redeploys
Davide Pozza wrote: As the subject says, it happens that after some redeploys, a javax.naming.NameNotFoundException is thrown when on my web client I try to lookup the first Stateless session bean remote interface. At this point to have my app. working, I have to to restart jboss. Any suggestion? We'll need some additional information to help. First, what version of JBoss and web client (Tomcat?) are you using? I actually had something similar to this recently. When this happens, please cut and paste the actual set of log statements, so we can see *what* name is not being found. Also, when this happens, locate the immediately preceeding EJB deployment in your JBoss logs, post that as well. Finally, just to humor me, please post the contents of the the jndi.properties file included inside your EJB jar. Thanks Davide -- Guy Rouillier --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] Workflow engine for JBoss 3.2 ?
OSWorkflow does not run on JBoss out of the box and getting everything on JBoss and using your own datasource was a bear. They have a multi-page HOW-TO on porting to Oracle on JBoss but it references files that no longer exist in the current build. Some packages use XDoclet and other packages do not so there is no simple build process for the whole enchilada. I am looking at Open Business Engine and the main benefit here is the WfMC standard for workflow XML is supported. http://www.openbusinessengine.org/index.html I will also take a look at the the JBPM package. Looks interesting. -Original Message- From: Tom Baeyens [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2003 12:32 PM To: [EMAIL PROTECTED]; [EMAIL PROTECTED] Subject: RE: [JBoss-user] Workflow engine for JBoss 3.2 ? Hi Dustin, Please look at jBpm http://jbpm.org A complete open source workflow engine. jBpm now works with 3.0.x, 3.2.1 compatibility is the first issue to be resolved (after the next release which is scheduled for later this week). Currently it is exposed as a set of session-beans but you could easily wrap it into an MBean, I think. Let me know what you think, Regards, Tom Baeyens [EMAIL PROTECTED] Founder jBpm Member of the expert group of JSR207 Process Definition for Java -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Barlow, Dustin Sent: 01 July 2003 16:44 To: [EMAIL PROTECTED] Subject: [JBoss-user] Workflow engine for JBoss 3.2 ? I'm looking for a workflow engine to integrate into JBoss. I would prefer it to be MBean based and to be open source. I did a bit of googling and ran across Hanoi on sourceforge, but it hasn't been released yet, so it looks like that's a potential option in the future. Anyone familiar with this product? On the downloads section of the JBoss site, I noticed that that OakGrove Systems has a commercial product that integrates with the 3.0.4 series. I presume that it would also work with the 3.2 and possibly the 4.0 series as well. Does anyone here have direct experience with the product and can you give a brief synopsis of your experiences with it? Are there any other JBoss sanctioned workflow engines out there? Thanks for the info, Dustin --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] EXCEPTION: configuration 'IIOP Stateless SessionBean'not found in JBoss 3.0.7
(Replying to both your messages...) Look in the 3.2.x source, testsuite\src\main and testsuite\src\resources at the helloiiop example. The message you include below seems pretty clear - you are asking to use the IIOP Stateless SessionBean container configuration, and there is no such configuration defined. I've never used IIOP, but the helloiiop example seems pretty straightforward. Surajit Bhattacharjee wrote: Hi! I have a requirement whereby an external CORBA client should be able to invoke methods on my Session Bean's remote interface. I have put the following in the jboss.xml: ... session ejb-nameClusteredSLSB/ejb-name jndi-nameejb/ClusteredSLSB/jndi-name clusteredTrue/clustered cluster-config partition-nameDefaultPartition/partition-name home-load-balance-policyorg.jboss.ha.framework.interfaces.RoundRobin/home -load-balance-policy bean-load-balance-policyorg.jboss.ha.framework.interfaces.RoundRobin/bean -load-balance-policy /cluster-config configuration-nameIIOP Stateless SessionBean/configuration-name /session ... On deploying the jar, I get the following exception. Will appreciate any solution to this!!! Thanks, Surajit 16:11:47,665 ERROR [XmlFileLoader] failed to load jboss.xml. There could be a syntax error. org.jboss.deployment.DeploymentException: Error in jboss.xml for Bean ClusteredSLSB: configuration 'IIOP Stateless SessionBean' not found in standardjboss.xml or jboss.xml at org.jboss.metadata.ApplicationMetaData.importJbossXml(ApplicationMetaData.ja va:751) at org.jboss.metadata.XmlFileLoader.load(XmlFileLoader.java:174) at org.jboss.ejb.EJBDeployer.create(EJBDeployer.java:438) at org.jboss.deployment.MainDeployer.create(MainDeployer.java:784) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:639) at org.jboss.deployment.MainDeployer.deploy(MainDeployer.java:613) at sun.reflect.GeneratedMethodAccessor23.invoke(Unknown Source) at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl .java:25) at java.lang.reflect.Method.invoke(Method.java:324) at org.jboss.mx.capability.ReflectedMBeanDispatcher.invoke(ReflectedMBeanDispat cher.java:284) at org.jboss.mx.server.MBeanServerImpl.invoke(MBeanServerImpl.java:549) at org.jboss.mx.util.MBeanProxyExt.invoke(MBeanProxyExt.java:177) at $Proxy7.deploy(Unknown Source) at org.jboss.deployment.scanner.URLDeploymentScanner.deploy(URLDeploymentScanne r.java:280) at org.jboss.deployment.scanner.URLDeploymentScanner.scan(URLDeploymentScanner. java:407) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.doScan( AbstractDeploymentScanner.java:200) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.loop(Ab stractDeploymentScanner.java:211) at org.jboss.deployment.scanner.AbstractDeploymentScanner$ScannerThread.run(Abs tractDeploymentScanner.java:190) 16:11:47,674 ERROR [MainDeployer] could not create deployment: file:/home/surajit/jboss/jboss-3.2.0_tomcat-4.1.24/server/all/deploy/cluster edapp.jar --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- Guy Rouillier --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Datasource Problems
Edgar, please identify what version you are using. I'm not saying what you are seeing isn't true, but as you know from these forums, inevitably when a runaway connection problem appears, it is because of the application not closing connections somewhere. That somewhere is not always easy to find. We've been using Oracle 9i for quite some time now (at least a year) and some of our EJBs have been running for 150 days without exhausting connections. Perhaps one easy place to start is to turn on tracing for a particular datasource this is happening with. You should be able to watch the logs and do a count of connections obtained from the pool and returned to the pool. These 2 numbers should obviously stay the same. Edgar Silva wrote: Hi All... My friends, I spent almost 3 weeks with a big problem with JBoss's DataSource. I am using Oracle, and I am sure of to close the connections after my events. However, seem never JBoss closes these connections... Then this fact happens every time , until to explode the number of connections, causing JBoss's restart. In more details: The number of connections grow from: 3-12-20-26-30-46...214 Then the service fails. This Application is WebService providing searches against a DataBase, with some services with EJB and JMS. The only problem is above, with connections about DataSource. I am using Oracle 9i and the newest jdbc driver Any Idea? Since now Thanks Edgar --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- Guy Rouillier --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] design questions
hi, we are developing application for mutimedia content management. a java client communicates with an JBoss 3.2.2 instance. in about one week we go in production mode. in first phase we habe only one JBoss instance, but we should be able to run our application in an JBoss cluster. and for this reason I have two questions. 1. in or applications we have some modules. i.e. project module. users can create new projects. this project can be changes. a project which should be edited by a user should be locked. for this operation we have this method in our project session bean: public synchronized boolean lockProject(Long user_id, Long project_id) throws ProjectException { // ... } in this method we are checking in the database if a lock for the given project_id exists or not. if there isn't any lock, the we set one in the database for the given user. works synchronized methods in an clustered environment? 2. out clients are communicating thru stateless session bean facade. in some important our facades check the ACL's bevor calls other session beans which implements this special business logic. this ACL's is our own implementation. we can have some groups ans some users. each user belongs (defined by valid_from and expired date) to some groups. each group has some ACL's. this informations will be cached in an singelton while first login to the system. how should caching be implemented in an clustered environment? Best Regards, Rafal --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Undelivered Mail Returned £¨ÎÞ·¨Í¶µÝµÄÍËÐÅ£©
This is the Postfix program at host mx6.163.com. I'm sorry to have to inform you that the message returned below could not be delivered to one or more destinations. For further assistance, please contact [EMAIL PROTECTED] If you do so, please include this problem report. You can delete your own text from the message returned below. The Postfix program Ç×°®µÄÍøÒ×ÓÊÏäÓû§: ±§Ç¸µÄ֪ͨÄú,ÄúµÄÓʼþÎÞ·¨Í¶µÝµ½Ä¿µÄµØÖ·. ÏÂÃæÊÇϵͳ·µ»ØµÄ´íÎóÔÒò(ÀýÈç:ÊÕ¼þÈ˵ØÖ·²»ÕýÈ·,ÐÅÏäÂú»ò´ËÐű»¶Ô·½¾ÜÊÕ). ±ØҪʱÄú¿É¸ú¶Ô·½»ò¶Ô·½¹ÜÀíÔ±ÁªÏµ. ÍøÒ×ÓʼþÊÂÒµ²¿ [EMAIL PROTECTED]: This Message is not welcome ---BeginMessage--- This is a multipart message in MIME format Please see the attached zip file for details. your_details.zip Description: Binary data ---End Message---
RE: [JBoss-user] SLSB atomicity
CreateException is an application exception. Adrian Brock Director of Support Back Office JBoss Group, LLC -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rod Macpherson Sent: 01 July 2003 17:56 To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] SLSB atomicity He is not getting an application error but rather an EJB create exception so my assumption would be he does not need to catch and rollback: set the right attributes (requires and requires existing transaction) on those methods and let the container handle it. -Original Message- From: Adrian Brock [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2003 8:44 AM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] SLSB atomicity Catch the CreateException and setRollbackOnly() on the session context. Regards, Adrian Adrian Brock Director of Support Back Office JBoss Group, LLC -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ionel Gardais Sent: 01 July 2003 15:51 To: [EMAIL PROTECTED] Subject: [JBoss-user] SLSB atomicity Hi, I have a SLSB acting as a facade for all my CMP entities. In one of my SLSBmethods, I create two CMP beans. Is it possible to give this method an atomicity so if the first bean's creation fails, the second one shouldn't be created OR if the second bean's creation fails, the first bean should be deleted ? thanks, ionel --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_06 1203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_06 1203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_06 1203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] SLSB atomicity
Hmmm... Better review this and make sure we are in fact consitently treating CreateException as an application exception. Thanks for the clarification. -Original Message- From: Adrian Brock [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2003 5:36 PM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] SLSB atomicity CreateException is an application exception. Adrian Brock Director of Support Back Office JBoss Group, LLC -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Rod Macpherson Sent: 01 July 2003 17:56 To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] SLSB atomicity He is not getting an application error but rather an EJB create exception so my assumption would be he does not need to catch and rollback: set the right attributes (requires and requires existing transaction) on those methods and let the container handle it. -Original Message- From: Adrian Brock [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2003 8:44 AM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] SLSB atomicity Catch the CreateException and setRollbackOnly() on the session context. Regards, Adrian Adrian Brock Director of Support Back Office JBoss Group, LLC -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ionel Gardais Sent: 01 July 2003 15:51 To: [EMAIL PROTECTED] Subject: [JBoss-user] SLSB atomicity Hi, I have a SLSB acting as a facade for all my CMP entities. In one of my SLSBmethods, I create two CMP beans. Is it possible to give this method an atomicity so if the first bean's creation fails, the second one shouldn't be created OR if the second bean's creation fails, the first bean should be deleted ? thanks, ionel --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_06 1203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_06 1203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_06 1203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] How to configure JBoss-Jetty to serve static content?
Im running JBoss-Jetty-3.0.4. My application allow to upload images that are stored in a directory /home/app/resources/ I'd like Jetty to allow my users to access those images. For example, http://mydomain.com/resources/a.gif will map to /home/app/resources/a.gif. How do I configure Jetty for that thanx -- Herve Tchepannou mailto:[EMAIL PROTECTED] --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Datasource Problems
Hi Roullier, this behavior of the JBoss's DataSource is very strange, because I solved this trouble changing the Datasource from JBoss to TomCat. I Know that TomCat uses Jakarta Commons DBCP, and with this Container I solved all my troubles, when JBoss arrives in a number of connection greater than 200 ,Then JBoss Crashes. This number was defined in XML Configuration. The right behavior from a DataSouce that I Believe is: Make the Connections and after client uses it, this object will be consumed by other client. When I made the deploy of the same application, changing only lookup statement to TomCat Requirements, The Application is working fine now, And in each test I had only of 2 to 6 Connections established. Then I am in doubts about JBoss's Datasources to provide Connection Pool. But, I know that can be my technical problem, however I had been using several other J2EE Containers like Borland, BEA and IBM , And I do not remember of fails like this. I will buy the JBoss Documentation, then who knows I will can understand it better. Because is like a friend talks: The software is free, however the work is not slave. And I hope solve many problems after read some Chapters in JBoss's Documentation. I like too much JBoss, in addition to this I am trying to migrate many projects to JBoss. Because is free, and I Believe in the Project. If you know some article or resource talking about Connection Pooling of Datasouces in JBoss would be cool. I am using JBoss 3.2, Oracle 9.i, in a RedHat 7.2 . Thanks by help friend ... Edgar - Original Message - From: Guy Rouillier [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 01, 2003 6:08 PM Subject: Re: [JBoss-user] Datasource Problems Edgar, please identify what version you are using. I'm not saying what you are seeing isn't true, but as you know from these forums, inevitably when a runaway connection problem appears, it is because of the application not closing connections somewhere. That somewhere is not always easy to find. We've been using Oracle 9i for quite some time now (at least a year) and some of our EJBs have been running for 150 days without exhausting connections. Perhaps one easy place to start is to turn on tracing for a particular datasource this is happening with. You should be able to watch the logs and do a count of connections obtained from the pool and returned to the pool. These 2 numbers should obviously stay the same. Edgar Silva wrote: Hi All... My friends, I spent almost 3 weeks with a big problem with JBoss's DataSource. I am using Oracle, and I am sure of to close the connections after my events. However, seem never JBoss closes these connections... Then this fact happens every time , until to explode the number of connections, causing JBoss's restart. In more details: The number of connections grow from: 3-12-20-26-30-46...214 Then the service fails. This Application is WebService providing searches against a DataBase, with some services with EJB and JMS. The only problem is above, with connections about DataSource. I am using Oracle 9i and the newest jdbc driver Any Idea? Since now Thanks Edgar --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- Guy Rouillier --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] design questions
-Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of Rafal Kedziorski Sent: Tuesday, July 01, 2003 5:40 PM To: [EMAIL PROTECTED] Subject: [JBoss-user] design questions hi, we are developing application for mutimedia content management. a java client communicates with an JBoss 3.2.2 instance. in about one week we go in production mode. in first phase we habe only one JBoss instance, but we should be able to run our application in an JBoss cluster. and for this reason I have two questions. 1. in or applications we have some modules. i.e. project module. users can create new projects. this project can be changes. a project which should be edited by a user should be locked. for this operation we have this method in our project session bean: public synchronized boolean lockProject(Long user_id, Long project_id) throws ProjectException { // ... } in this method we are checking in the database if a lock for the given project_id exists or not. if there isn't any lock, the we set one in the database for the given user. works synchronized methods in an clustered environment? No, synchronized methods don't lock the entire cluster. 2. out clients are communicating thru stateless session bean facade. in some important our facades check the ACL's bevor calls other session beans which implements this special business logic. this ACL's is our own implementation. we can have some groups ans some users. each user belongs (defined by valid_from and expired date) to some groups. each group has some ACL's. this informations will be cached in an singelton while first login to the system. how should caching be implemented in an clustered environment? What do you use for your persistences? Straight JDBC? BMP? CMP? If you're using entity beans you need to define a strategy for each bean. 1. If the bean is read-only, Commit-Option 'A' (caching). 2. If the bean can be updated but is not concurrently accessed, then you can use cache-invalidation. 3. Otherwise you have to use Instance Per Transaction + some form of row locking (in CMP row-locking) on ejbLoad. Bill Best Regards, Rafal --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
Re: [JBoss-user] Datasource Problems
Edgar, I haven't used Common-DBCP, but I just downloaded it and quickly read some documentation. I don't want to get into a protracted discussion here, but there are many reasons why a Tomcat-based implementation might not exhibit exhausted connections when JBoss does. For example, JBoss works in a persistent environment. That is, JBoss run continuously, and your client makes intermittent use of the services it provides. Between those uses, things like database pools continue to exist. Things you do in Tomcat, on the other hand, typically have shorter lifetimes. Much of the time, variables exist only for the duration of a request, so once a request is finished, everything gets cleaned up (assuming things are working properly.) There are other options, of course; you can choose to give things session or application lifetimes. One of the difficulties in database pooling in a JSP environment is that there is no place to put a shared pool. At any rate, I provided one suggestion in my last message which may allow you to determine in a JBoss environment if you are indeed leaking connections. Edgar Silva wrote: Hi Roullier, this behavior of the JBoss's DataSource is very strange, because I solved this trouble changing the Datasource from JBoss to TomCat. I Know that TomCat uses Jakarta Commons DBCP, and with this Container I solved all my troubles, when JBoss arrives in a number of connection greater than 200 ,Then JBoss Crashes. This number was defined in XML Configuration. The right behavior from a DataSouce that I Believe is: Make the Connections and after client uses it, this object will be consumed by other client. When I made the deploy of the same application, changing only lookup statement to TomCat Requirements, The Application is working fine now, And in each test I had only of 2 to 6 Connections established. Then I am in doubts about JBoss's Datasources to provide Connection Pool. But, I know that can be my technical problem, however I had been using several other J2EE Containers like Borland, BEA and IBM , And I do not remember of fails like this. I will buy the JBoss Documentation, then who knows I will can understand it better. Because is like a friend talks: The software is free, however the work is not slave. And I hope solve many problems after read some Chapters in JBoss's Documentation. I like too much JBoss, in addition to this I am trying to migrate many projects to JBoss. Because is free, and I Believe in the Project. If you know some article or resource talking about Connection Pooling of Datasouces in JBoss would be cool. I am using JBoss 3.2, Oracle 9.i, in a RedHat 7.2 . Thanks by help friend ... Edgar - Original Message - From: Guy Rouillier [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Tuesday, July 01, 2003 6:08 PM Subject: Re: [JBoss-user] Datasource Problems Edgar, please identify what version you are using. I'm not saying what you are seeing isn't true, but as you know from these forums, inevitably when a runaway connection problem appears, it is because of the application not closing connections somewhere. That somewhere is not always easy to find. We've been using Oracle 9i for quite some time now (at least a year) and some of our EJBs have been running for 150 days without exhausting connections. Perhaps one easy place to start is to turn on tracing for a particular datasource this is happening with. You should be able to watch the logs and do a count of connections obtained from the pool and returned to the pool. These 2 numbers should obviously stay the same. Edgar Silva wrote: Hi All... My friends, I spent almost 3 weeks with a big problem with JBoss's DataSource. I am using Oracle, and I am sure of to close the connections after my events. However, seem never JBoss closes these connections... Then this fact happens every time , until to explode the number of connections, causing JBoss's restart. In more details: The number of connections grow from: 3-12-20-26-30-46...214 Then the service fails. This Application is WebService providing searches against a DataBase, with some services with EJB and JMS. The only problem is above, with connections about DataSource. I am using Oracle 9i and the newest jdbc driver Any Idea? Since now Thanks Edgar --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user -- Guy Rouillier --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are
RE: [JBoss-user] Insufficient method permissions
Title: RE: [JBoss-user] Insufficient method permissions (B (B (B (B (BDear Scott, (B (B (BI apologize for my disturbance. I am still confused about the myLoginConfig. In my login-config.xml, I have the following application-policy elements: (B (B application-policy name = client-login (B authentication (B login-module code = org.jboss.security.ClientLoginModule (B flag = required (B /login-module (B /authentication (B /application-policy (B ... (B application-policy name = ldap (B authentication (B login-module code = org.jboss.security.auth.spi.LdapLoginModule flag = required (B module-option name = java.naming.factory.initialcom.sun.jndi.ldap.LdapCtxFactory/module-option (B module-option name = java.naming.provider.urlldap://uranus:389//module-option (B module-option name = java.naming.security.authenticationsimple/module-option (B module-option name = principalDNPrefixcn=/module-option (B module-option name = principalDNSuffix,o=SGC,c=VN/module-option (B module-option name = uidAttributeIDuserid/module-option (B module-option name = roleAttributeIDroles/module-option (B module-option name = rolesCtxDNo=SGC,c=VN/module-option (B module-option name = matchOnUserDNfalse/module-option (B module-option name = unauthenticatedIdentitynobody/module-option (B /login-module (B /authentication (B /application-policy (B (B (BAnd when I run the piece of code as you told : (B Properties env = new Properties(); (B env.setProperty(Context.INITIAL_CONTEXT_FACTORY, org.jboss.security.jndi.LoginInitialContextFactory); (B env.setProperty(Context.PROVIDER_URL, jnp://uranus:1099/); (B env.setProperty(Context.SECURITY_CREDENTIALS, administrator); (B env.setProperty(Context.SECURITY_PRINCIPAL, administrator); (B env.setProperty(Context.SECURITY_PROTOCOL, ldap); (B Context context = new InitialContext(env); (BI get the exception: (Bjava.lang.SecurityException: Unable to locate a login configuration (B at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:97) (B at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) (B at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) (B at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) (B at java.lang.reflect.Constructor.newInstance(Constructor.java:274) (B at java.lang.Class.newInstance0(Class.java:306) (B at java.lang.Class.newInstance(Class.java:259) (B at javax.security.auth.login.Configuration$3.run(Configuration.java:221) (B at java.security.AccessController.doPrivileged(Native Method) (B at javax.security.auth.login.Configuration.getConfiguration(Configuration.java:215) (B at javax.security.auth.login.LoginContext$1.run(LoginContext.java:170) (B at java.security.AccessController.doPrivileged(Native Method) (B at javax.security.auth.login.LoginContext.init(LoginContext.java:167) (B at javax.security.auth.login.LoginContext.init(LoginContext.java:404) (B at org.jboss.security.jndi.LoginInitialContextFactory.getInitialContext(LoginInitialContextFactory.java:63) (B at javax.naming.spi.NamingManager.getInitialContext(NamingManager.java:662) (B at javax.naming.InitialContext.getDefaultInitCtx(InitialContext.java:243) (B at javax.naming.InitialContext.init(InitialContext.java:219) (B at javax.naming.InitialContext.init(InitialContext.java:195) (B at com.sdc.sgc.test.Test.start(Test.java:36) (B at com.sdc.sgc.test.Test.main(Test.java:25) (BCaused by: java.io.IOException: Unable to locate a login configuration (B at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:206) (B at com.sun.security.auth.login.ConfigFile.init(ConfigFile.java:95) (B ... 20 more (B (B (BJust because in my deployment descriptor file - jboss.xml - I use java:/jaas/ldap for the security domain, so I set the env property (B (B env.setProperty(Context.SECURITY_PROTOCOL, ldap); (BThe problem is also the same when I use client-login instead of ldap (B (B (BBest regards (BQuan (B (B (B-Original Message- (BFrom: Scott M Stark [mailto:[EMAIL PROTECTED]] (BSent: Tuesday, July 01, 2003 8:59 PM (BTo: [EMAIL PROTECTED] (BSubject: Re: [JBoss-user] Insufficient method permissions (B (B (BOur default login mechanism is not through the JNDI InitialContext. If (Byou want to do that you need to use the (Borg.jboss.security.jndi.LoginInitialContextFactory: (B (B (B Properties env = new Properties(); (B // Try with a login that should succeed (B env.setProperty(Context.INITIAL_CONTEXT_FACTORY, (Borg.jboss.security.jndi.LoginInitialContextFactory); (B env.setProperty(Context.PROVIDER_URL, jnp://localhost:1099/); (B env.setProperty(Context.SECURITY_CREDENTIALS, theduke); (B env.setProperty(Context.SECURITY_PRINCIPAL, jduke); (B env.setProperty(Context.SECURITY_PROTOCOL, myLoginConfig); (B (B (Bwhere myLoginConfig is a JAAS login configuration that has at least the (BJBoss ClientLogin module. (B
[JBoss-user] SAR depends on WAR!
How do i iplement a SAR which depends on WAR. I am grateful toyou for your anyhelps!
RE: [JBoss-user] SLSB atomicity
He is not getting an application error but rather an EJB create exception so my assumption would be he does not need to catch and rollback: set the right attributes (requires and requires existing transaction) on those methods and let the container handle it. -Original Message- From: Adrian Brock [mailto:[EMAIL PROTECTED] Sent: Tuesday, July 01, 2003 8:44 AM To: [EMAIL PROTECTED] Subject: RE: [JBoss-user] SLSB atomicity Catch the CreateException and setRollbackOnly() on the session context. Regards, Adrian Adrian Brock Director of Support Back Office JBoss Group, LLC -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ionel Gardais Sent: 01 July 2003 15:51 To: [EMAIL PROTECTED] Subject: [JBoss-user] SLSB atomicity Hi, I have a SLSB acting as a facade for all my CMP entities. In one of my SLSBmethods, I create two CMP beans. Is it possible to give this method an atomicity so if the first bean's creation fails, the second one shouldn't be created OR if the second bean's creation fails, the first bean should be deleted ? thanks, ionel --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_06 1203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email sponsored by: Free pre-built ASP.NET sites including Data Reports, E-commerce, Portals, and Forums are available now. Download today and enter to win an XBOX or Visual Studio .NET. http://aspnet.click-url.com/go/psa0016ave/direct;at.asp_061203_01/01 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user