RE: [JBoss-user] [EJB/JBoss] - Cache size for a Stateless bean
Stateless doesn't use Cache. It uses pool. then, set this configuration in jboss.xml : container-configuration container-nameStandard Stateless SessionBean/container-name ... ... instance-poolorg.jboss.ejb.plugins.StatelessSessionInstancePool/instance-pool instance-cache/ persistence-manager/ transaction-managerorg.jboss.tm.TxManager/transaction-manager container-pool-conf MaximumSize2/MaximumSize /container-pool-conf /container-configuration regards, Mateus -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of grant71 Sent: terça-feira, 14 de setembro de 2004 07:43 To: [EMAIL PROTECTED] Subject: [JBoss-user] [EJB/JBoss] - Cache size for a Stateless bean I have a Stateless bean, but I want to limit the bean instances number at 2. Does anyone know if it is possible and HOW to configure it? View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3848121#3848121 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3848121 --- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email is sponsored by: YOU BE THE JUDGE. Be one of 170 Project Admins to receive an Apple iPod Mini FREE for your judgement on who ports your project to Linux PPC the best. Sponsored by IBM. Deadline: Sept. 13. Go here: http://sf.net/ppc_contest.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] [JCA/JBoss] - connectios are not returning to pool
We resolved this problem removing the methods hashCode() and equals() from the implementation of JCA, because it´s the container who must implement them. Mateus -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of kavuriprasad Sent: quinta-feira, 2 de setembro de 2004 23:52 To: [EMAIL PROTECTED] Subject: [JBoss-user] [JCA/JBoss] - connectios are not returning to pool Dear All, We are using JBoss and mysql, connectionpool we are using is JBossManagedConnectionpool. Normally it is working fine. But some times connections are not returning back to Connection Pool and it keep growing in 2-3 hrs. So once it happened the next request is not getting connection from connection pool , it just using the non-returned connection and we are getting SQL Exception i.e; SQL Error: 0 SQLState: 08S01 (since it is using the old (bad)connection). I have gone through the forum to check for related queries, but I was unlucky .. Your help is highly appreciatable .. Note: Connections InUse is growing when multiple requests are issued at same time and only one connection was returning back. And once after this scenario single request connectios also not returning back (some times only). Thanks in advance, Kavuri. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3847110#3847110 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3847110 --- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_id=5047alloc_id=10808op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email is sponsored by BEA Weblogic Workshop FREE Java Enterprise J2EE developer tools! Get your free copy of BEA WebLogic Workshop 8.1 today. http://ads.osdn.com/?ad_idP47alloc_id808op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] [Performance Tuning] - Re: Memory problems?
are you using the Oracle JDBC driver? This driver has memory leak probabily. In the release notes of 10g version has a comment about this. Mateus -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of clebertsuconic Sent: quarta-feira, 25 de agosto de 2004 23:59 To: [EMAIL PROTECTED] Subject: [JBoss-user] [Performance Tuning] - Re: Memory problems? Why you guys don't try to use jboss-profiler. It's a new project inside JBoss, but I have worked on this for one year now, and it's pretty stable. I know that the front-end (which is based on a Web application) doesn't have the best design approach, but it has all information you might need. For example, you can find where your memory are being created, and what methods are not releasing the memory initially allocated. The only problem now, is that you have to download it directly from CVS but it's easy to compile it. It requires ant+Java only, and it takes 1 minute to compile it. I can help over this forum or jboss-profiler forum with issues about it. Clebert View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3846238#3846238 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3846238 --- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media 100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33 Save 50% off Retail on Ink Toner - Free Shipping and Free Gift. http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] installing XA
people, i need help to install XA in my datasources, using Oracle. can anyone help me? Does anyone have a datasource example? Do I need change some parameter on oracle instance? I'm using jboss 3.0.8. thanks, mateus -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of monocongo Sent: segunda-feira, 14 de junho de 2004 15:34 To: [EMAIL PROTECTED] Subject: [JBoss-user] [Management, JMX/JBoss] - Re: How to bind an MBean to JNDI, then access from within ap In my MBean class, which extends ServiceMBeanSupport, I do the following in the startService() method: | protected void startService () | { | // create a HashTable of environment properties for the InitialContext | Hashtable environment = new Hashtable(); | environment.put(Context.INITIAL_CONTEXT_FACTORY, | org.jnp.interfaces.NamingContextFactory); | environment.put(Context.PROVIDER_URL, localhost:1099); | environment.put(java.naming.factory.url.pkgs, | org.jboss.naming:org.jnp.interfaces); | | try | { | // bind to JNDI | Context context = new InitialContext(environment); | Name fullName = context.getNameParser().parse(m_jndiName); | NonSerializableFactory.rebind(fullName, this, true); | } | catch (NamingException e) | { | System.out.println(Unable to bind UserManager MBean); | } | } | I have a variable m_jndiName which I set before this method is called (right now it is hard-coded, but later I will hopefully be able to pull it from a configuration file of some sort. In my EJB and servlet code I just do a lookup and cast of the object at that name: | // lookup and cast the user manager MBean | UserManager userManager; | try | { | // get the InitialContext and lookup the home interface | Context context = new InitialContext(environment); | userManager = (UserManager) context.lookup(mbean/UserManager); | } | catch (NameNotFoundException e) | { | // throw an UnavailableException so this servlet can never be called | throw new UnavailableException(Lookup of UserManager MBean failed: + e); | } | catch (NamingException e) | { | // log the error | //m_logger.error(Lookup of the IOIManagerHome interface failed, e); | | // throw an UnavailableException so this servlet can never be called | throw new UnavailableException(Lookup of UserManager MBean failed: + e); | } | I hope this is helpful for you. -James View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3838688#3838688 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3838688 --- This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user --- This SF.Net email is sponsored by The 2004 JavaOne(SM) Conference Learn from the experts at JavaOne(SM), Sun's Worldwide Java Developer Conference, June 28 - July 1 at the Moscone Center in San Francisco, CA REGISTER AND SAVE! http://java.sun.com/javaone/sf Priority Code NWMGYKND ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
RE: [JBoss-user] [Messaging, JMS JBossMQ] - Re: destroying a MDB after instantiation
throw new RuntimeException -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Behalf Of sgelberg Sent: terça-feira, 25 de maio de 2004 21:55 To: [EMAIL PROTECTED] Subject: [JBoss-user] [Messaging, JMS JBossMQ] - Re: destroying a MDB after instantiation Reason I want to do this is, that the message bean keeps trying to dq an invalid message and eventually get a jboss message resent too many times error...i just want to kill the process View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=3836136#3836136 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=3836136 --- This SF.Net email is sponsored by: Oracle 10g Get certified on the hottest thing ever to hit the market... Oracle 10g. Take an Oracle 10g class now, and we'll give you the exam FREE. http://ads.osdn.com/?ad_id149alloc_id66op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] Problem allocating large amount of memory with Linux
I found this problem too, but with VM Sun versions 1.4.2_01-b06 and 1.3.1_04-b02, and OS Linux kernels 2.4.18-14smp and 2.4.18-14bigmem. The maximum memory I could allocate was 1800Mb. My hardware have 6Gb free. what to do?? Regards, Mateus -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] Sent: quinta-feira, 09 de outubro de 2003 12:24 To: [EMAIL PROTECTED] Subject: Re: Re: [JBoss-user] Problem allocating large amount of memory Summary: I can't setup JBoss to sucessfully allocate mode than 1512Mb of memory. Hardware: - 8 cpus (Intel(R) XEON(TM) MP) 1,9GHz - 3,5Gb Physical RAM (Total available virtual memory: 12,8Gb) OS: - Windows 2000 Advanced Server v5.0.2195 SP3 Build 2195 JVM: - java version 1.4.2 Java(TM) 2 Runtime Environment, Standard Edition (build 1.4.2-b28) Java HotSpot(TM) Client VM (build 1.4.2-b28, mixed mode) PATCHED, i.e. with editbin.exe /LARGEADDRESSAWARE java.exe Well I think I've made all I could: - read the following link and apply the recommandations according to my problem (i.e. not the network relative or handles/cmd.exe points) - set /3GB in the boot.ini file - tried to launch the test application as a service using http://wrapper.tanukisoftware.org/doc/english/ (and setting the maximum memory parameter in the conf file to 1612M) The one thing I've discovered (by reading the webpage http://java.sun.com/docs/hotspot/ism.html) is that using: - -XX:+AggressiveHeap (without -Xmx and -Xms), JBoss runs with 1Gb with the original java.exe - -XX:+AggressiveHeap (without -Xmx and -Xms), JBoss runs with 1,4Gb with the patched java.exe So what else? How may I use all those 1,5Gb unused memory? Loic Search is your friend. http://www.mail-archive.com/cgi-bin/htsearch?method=andformat=shortconfig=jboss-user_lists_sourceforge_netrestrict=exclude=words=boot.ini Regards, Adrian On Mon, 2003-10-06 at 16:54, [EMAIL PROTECTED] wrote: Hello, I am trying to run JBoss (4.0.0DR2) on a Windows 2000 Advanced server SP3 with the SUN JVM 1.4.2_01. The server is an octo-processor (8 cpus) with 3Gb physical memory. However, I get the following message: === . JBoss Bootstrap Environment . JBOSS_HOME: D:\jboss-4.0.0DR2\bin\\.. . JAVA: D:\APPS\j2sdk1.4.2_01\bin\java . JAVA_OPTS: -server -Dprogram.name=run.bat -Xms128m -Xmx2000m . CLASSPATH: ;D:\APPS\j2sdk1.4.2_01\lib\tools.jar;D:\jboss-4.0.0DR2\bin\\run.jar . === . Error occurred during initialization of VM Could not reserve enough space for object heap Press any key to continue . . . According to this webpage: http://www.microsoft.com/whdc/hwdev/platform/server/pae/PAEmem.mspx I've also added the /3GB in the Boot.ini file but without sucess. Could you please explain me how to handle this? Is it a limitation of the SUN JVM? Are there other JVM available that support this amount of memory? Cheers, Loïc Lefèvre --- This SF.net email is sponsored by: SF.net Giveback Program. SourceForge.net hosts over 70,000 Open Source Projects. See the people who have HELPED US provide better services: Click here: http://sourceforge.net/supporters.php ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user