[JBoss-user] [JBossWS] - Re: Hibernate 3.0 MBean in JBoss 4.0 - JDBC connection relea
fyi, we ended up using 4.0.3SP1 with patching jboss-hibernate.jar to use AFTER_TRANSACTION. using hibernate from the web layer (self started JTA transaction) with AFTER_STATEMENT jboss was leaking the actual oracle connections (no resource in pool exception after a few operations) using hibernate from CMT beans with pristine jboss works fine! patching jboss to use hibernate with AFTER_TRANSACTION works both for CMT beans and user started JTA transactions. ps: warning, it all happened several days ago in a many hours long debug session. my memory _may_ trick me... View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3907615#3907615 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3907615 --- This SF.Net email is sponsored by the JBoss Inc. Get Certified Today Register for a JBoss Training Course. Free Certification Exam for All Training Attendees Through End of 2005. For more info visit: http://ads.osdn.com/?ad_id=7628&alloc_id=16845&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Re: Hibernate 3.0 MBean in JBoss 4.0 - JDBC connection relea
anonymous wrote : To what did you set it? I've changed these two lines: settings.setProperty("hibernate.connection.agressive_release", "false"); | settings.setProperty("hibernate.connection.release_mode", "after_transaction"); But I think when agressive_release is false, release_mode is not considered at all. Thanks a lot for the answers, I'll try the UserTransaction scenario next week. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3902561#3902561 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3902561 --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Re: Hibernate 3.0 MBean in JBoss 4.0 - JDBC connection relea
anonymous wrote : First, not sure how a web service forum is the correct place for a discussion of Hibernate functionality... But that aside... | Sorry, I was searching for this problem and just replied here... anonymous wrote : 101: define "possible running transaction". The integration code assumes you are using JTA transactions and JTA DataSource. Is that the case? Sounds like not. I'm not sure how this works and I don't want to waste your time, but what happens if I have a running transaction (let's say a JTA transaction) in which I open a H session. In after statement aggressive release mode H closes (returns to the pool) the JDBC connection after each statement? How can it be done if the JDBC connection is opened in the transaction context? What happens at a possible rollback? How will the JDBC connection be rolled back? I'm directly using Hibernate from the web layer, and I have an aspect that automatically opens/closes H sessions as needed. In case of an open() I also session.beginTransaction()/commit()/rollback() as needed. The aspect worked/works fine, I've even checked the JDBC connection.close() calls H invokes from the H log and it seemed also right (open/close balanced). And still the JDBC pool was exhausted, no idea why/how tough. It started with 4.0.3. So we started to look why and found this aggressive release suspicious, and turned off. It solved out connection leak problem, but I still don't see why. anonymous wrote : I need to understand your setup to better understand what might need to change code-wise. BTW, setting the release mode to "on close" is typically on masking issues in your application code; hence why your solution may not be the best. Well, all I know is that our open/close calls to the H session is balanced. Do I have to take care of any other things? And from your response I suspect that if I start a JTA transaction before opening the H session then 4.0.3 would work fine with the default setup? So should I look up UserTransaction and begin a JTA transaction before H session open? Thanks for you time! View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3902501#3902501 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3902501 --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JBossWS] - Re: Hibernate 3.0 MBean in JBoss 4.0 - JDBC connection relea
This is an important issue. We also have to patch jboss 4.0.3 by hand to alter this Hibernate property. I don't understand how can this be an immutable default: it returns the jdbc connections to the pool without considering a possible running transaction? I may not see everything, but it was also leaking the jdbc connections for us. I've checked the close calls to the hibernate session, and to the jdbc connections, and both was correct, and still I ended up with a full jdbc pool. Turning off the aggressive release (with the patch) solved all our issues. View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=3902258#3902258 Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=3902258 --- This SF.Net email is sponsored by: Power Architecture Resource Center: Free content, downloads, discussions, and more. http://solutions.newsforge.com/ibmarch.tmpl ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: WebSphere Message Queue (WSMQ) and JBoss Message Driven
Sh*t, the most important part of the title just cut off. So I need and MDB with XA transactions using a WSMQ. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3882107#3882107 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3882107 --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - WebSphere Message Queue (WSMQ) and JBoss Message Driven Bean
Hi, I'm looking for a solution for the issue above. The most I could do is to set up the WSMQ and MDB using XA, but never got any message from the queue as described on the second link below. What I have found for this issue so far is this: http://www.jboss.org/index.html?module=bb&op=viewtopic&t=59958 and this: http://www.jboss.org/wiki/Wiki.jsp?page=SampleConfigurationForMQSeriesWebs I need more details on how to solve the issue, because I'm not that familiar with JBoss internals. There might already be a solution which I'm not aware of, please let me know if so. Best regards, levy View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3882106#3882106 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3882106 --- SF.Net email is sponsored by: Discover Easy Linux Migration Strategies from IBM. Find simple to follow Roadmaps, straightforward articles, informative Webcasts and more! Get everything you need to get up to speed, fast. http://ads.osdn.com/?ad_id=7477&alloc_id=16492&op=click ___ JBoss-user mailing list JBoss-user@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [EJB/JBoss] - Re: Scoped Ear / EJB Access
same problem here: two ear's, one calls into the other. salted with the need for ear scooping. jboss 3.2.5 siletly ignores the callbyvalue parameter, you need to add it to org\jboss\metadata\BeanMetaData.java callByValue = callByValueElt.equalsIgnoreCase ("True"); in importJbossXml() at an obvious place or wait for a new release. damn, i wasted an entire day... but that's just open source. but i could at least fix it... :) http://sourceforge.net/tracker/index.php?func=detail&aid=992441&group_id=22866&atid=376685[/url] View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842423#3842423 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842423 --- 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=4721&alloc_id=10040&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JCA/JBoss] - Re: Classloader used to deploy *-ds.xml files
It was a user bug... :) Hibernate does use the Thread's classloader first, except when loading it's properties. So copying the properties to the conf dir solved the issue. But thanks for the info, it's helped to understand things better! I owe you a beer, now you only need to visit Hungary once! :) View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842377#3842377 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842377 --- 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=4721&alloc_id=10040&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation & Configuration] - Re: Adv. classloading: ear with two wars
G, no it's not. It just loads randomly, as expected after a little thinking. I tried in the war's with no luck. Oh well... View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842059#3842059 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842059 --- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation & Configuration] - Re: Adv. classloading: ear with two wars
Fool me, it's FIXED in 3.2.5... View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842024#3842024 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842024 --- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation & Configuration] - Adv. classloading: ear with two wars
Hi! I've got an ear with two war's in it. The ear has a loader repository to isolate it from other deployments. But due to this loader repository the two war's can see each other's classes and as there is a duplication it causes a missbehaviour for me. (The duplication is needed because the classes are woven by AspectJ, so they are different, only their name is the same) There's a possibility to define a loader repository for war's and there i can set the java2ParentDelegaton=false to "loading with the deployment classes overriding the server classes" but it's only allowed for top level deployments. I've tried to configure tomcat in jboss-service.xml so that Java2ClassLoadingCompliance=false but after looking in the code it doesn't seem to be read anywhere. So I'm stuck... :( If someone knows the answer please could you add it here: http://www.jboss.org/wiki/Wiki.jsp?page=ClassLoadingConfiguration so everyone can lear from it? Or just answer here and I'll add it. Thanks in advance, - 101 View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842006#3842006 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842006 --- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation & Configuration] - Re: [Tomcat]NoClassDefFoundError: org/apache/catalina/Contex
filesystem security? maybe the process can not read some jars? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3842001#3842001 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3842001 --- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [JCA/JBoss] - Classloader used to deploy *-ds.xml files
I'm using ear scooped loader repositories, with Jboss 3.2.3. I need to separate my ear form other deployments, and that's the only way I know to do this. My problem is that when I have a *-ds.xml (hibernate stuff) in the ear, and jboss processes (deploys) the xml, then it's not using the ear scooped loader repository but instead the standard one (probably the one that loaded hibernate.rar). This prevents the datasource from proper operation, because my user classes needed by hibernate are isolated inside the loader repository. To overcome this I have to add hibernate.rar into the ear, but then i have another problem: i have two ear's and one depending on the other. Both need hibernate.rar but i can't put hibernate.rar in both ear's because jboss fails with an already registered resource adapter error. So i'm stuck... the only solution would be if JBoss would use the classloader that loaded the *-ds.xml to initialize the datasource. If i understand everything, then it could work because an ear scooped loader repository sees the stuff coming from the deploy directory, too. (So both ears would see hibernate classes coming from a single hibernate.rar deployed next to the ears) If it doesn't work, then maybe jboss could tolerate duplicate rar registrations coming from isolated ears? As a sidenote: i've got another similar issue with two war's in a single ear seeing each other's classes (due to an ear scoopend loader repository). I can't set a parameter that the war's should check their own classloaders/scoops and only ask for the parent when a class is not found. But I will ask it on a different forum. Thanks in advance, - 101 PS: sorry for the hijack, will open new topics from now on. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3841998#3841998 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3841998 --- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Connectors and JCA/JBoss] - Re: Cant connect to db
Adrian +1 the only way to keep the productivity and usefulness is to separate the newbies/careless from the others with user levels/rights/etc... on separation i mean read-only rights. i only asked questions here i couldn't answer, sometimes after days of trying! - 101 http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3825347#3825347";>View the original post http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3825347>Reply to the post --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Management, JMX/JBoss] - java: namespace from Timer events
Is there a way to access the java: namespace from a timer event? When i make a JNDI lookup from a method which is called by the timer service, it tries to look up the name in the global namespace even tough it's a java:/ name. At least it seems so... is there a limitation i don't know of, or something else? http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3825256#3825256";>View the original post http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3825256>Reply to the post --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation & Configuration] - 'run.sh --host localhost' makes 'shutdown.sh --server localh
i start jboss so that it listens only on localhost, and refusess external connections. as you can see from the exception the shutdown script will try to connect to the real ip address of the host instead of 127.0.0.1, which is refused. shutdown.sh --server 127.0.0.2 will try to connect to 127.0.0.2 so it's a localhost issue... probably in InitialContext. any ideas? Exception in thread "main" javax.naming.CommunicationException [Root exception is java.rmi.ConnectException: Connection refused to host: 192.168.35.105; nested exception is: java.net.ConnectException: Connection refused: connect] at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:647) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:507) at javax.naming.InitialContext.lookup(InitialContext.java:347) at org.jboss.Shutdown.main(Shutdown.java:182) Caused by: java.rmi.ConnectException: Connection refused to host: 192.168.35.105; nested exception is: java.net.ConnectException: Connection refused: connect at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:567) at sun.rmi.transport.tcp.TCPChannel.createConnection(TCPChannel.java:185) at sun.rmi.transport.tcp.TCPChannel.newConnection(TCPChannel.java:171) at sun.rmi.server.UnicastRef.invoke(UnicastRef.java:101) at org.jnp.server.NamingServer_Stub.lookup(Unknown Source) at org.jnp.interfaces.NamingContext.lookup(NamingContext.java:528) ... 3 more Caused by: java.net.ConnectException: Connection refused: connect at java.net.PlainSocketImpl.socketConnect(Native Method) at java.net.PlainSocketImpl.doConnect(PlainSocketImpl.java:305) at java.net.PlainSocketImpl.connectToAddress(PlainSocketImpl.java:171) at java.net.PlainSocketImpl.connect(PlainSocketImpl.java:158) at java.net.Socket.connect(Socket.java:452) at java.net.Socket.connect(Socket.java:402) at java.net.Socket.(Socket.java:309) at java.net.Socket.(Socket.java:124) at sun.rmi.transport.proxy.RMIDirectSocketFactory.createSocket(RMIDirectSocketFactory.java:22) at sun.rmi.transport.proxy.RMIMasterSocketFactory.createSocket(RMIMasterSocketFactory.java:128) at sun.rmi.transport.tcp.TCPEndpoint.newSocket(TCPEndpoint.java:562) ... 8 more [EMAIL PROTECTED] /cygdrive/d/work/granite/workspace/pvsr http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3825085#3825085";>View the original post http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3825085>Reply to the post --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation & Configuration] - Re: JNDI localhost problem
could be related: when you do a new InitialContext() with localhost as the jndi provider then it will actually try to connec to the real ip address of the machine instead of 127.0.0.1. i'm looking for a solution because if you run.sh --host localhost (to disallow connections from other hosts) then you can not shutdown.sh later as it will try to connect to the ip address instead of localhost (127.0.0.7) which is rejected. http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3825083#3825083";>View the original post http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3825083>Reply to the post --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Installation & Configuration] - Re: Listen on localhost only?
run.sh --host localhost http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3825081#3825081";>View the original post http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3825081>Reply to the post --- This SF.Net email is sponsored by: IBM Linux Tutorials Free Linux tutorial presented by Daniel Robbins, President and CEO of GenToo technologies. Learn everything from fundamentals to system administration.http://ads.osdn.com/?ad_id=1470&alloc_id=3638&op=click ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user