[JBoss-user] [EJB 3.0] - Re: How to specify default values for attributes in service

2006-07-05 Thread dabramov
I'm interested in this as well, but so far I haven't found a way. The JBoss J2EE deployment descriptor XSD which includes the POJO Service deployement descriptor does not seem to allow for arbitrary management properties, however. I also tried the using a -service.xml file as describe in this

[JBoss-user] [Persistence, JBoss/CMP, Hibernate, Database] - Turning off Second Level cach w/ HibernateMBean

2006-06-15 Thread dabramov
JBoss 4.0.3 SP1, Hibernate 3.1 In a single har I have two instances of the JBoss Hibernate MBean sharing the same set of mapping files. I use the two SessionFactories to replicate data between a remote DB and a local DB. I'd like to be able to turn off second level caching for the remote DB Ses

[JBoss-user] [EJB 3.0] - Re: Help w/ TransactionAttributeType.REQUIRES_NEW

2006-06-07 Thread dabramov
I tried calling SessionContext.getBusinessObject() and also SessionContext.getInvokedBusinessInterface() from a SLSB method. However, I get an IllegalStateException - "Not Implemented". (aside: any reason to not to call getInvokedBusinessInterface() vs getBusinessObject()? It seems simpler to

[JBoss-user] [EJB 3.0] - Re: Help w/ TransactionAttributeType.REQUIRES_NEW

2006-06-07 Thread dabramov
Thanks for the discussion - it's been very helpful coming up to speed on this... In the case of a same EJB call, is there any difference between doing A) @EJB SameEJB same; vs: B) @Resource SessionContext ctx; ... SameEJB same = ctx.getBusinessObject(); I'm guessing in B) you get a local i

[JBoss-user] [EJB 3.0] - Re: Help w/ TransactionAttributeType.REQUIRES_NEW

2006-06-05 Thread dabramov
I ran my test in the debugger. When the TxTestBean is deployed I see the TxInterceptorFactory create a new instance of a TxInterceptor.RequiresNew for the part3() method. However when the test is executed, a breakpoint set on TxInterceptor.RequiresNew.invoke() never gets hit. View the original

[JBoss-user] [EJB 3.0] - Help w/ TransactionAttributeType.REQUIRES_NEW

2006-06-05 Thread dabramov
I have some test code that exercises REQUIRES_NEW, but looking at the TransactionManager logs, I don't see a new tx being created when that method executes. I'm using JBoss 4.0.4 GA and the EJB3 RC7 FD download. The players are two SLSBs TxTestBean. I'm calling the toplevel() method from a s

[JBoss-user] [Messaging, JMS & JBossMQ] - Sending to both UIL2 and JVM IL

2006-05-11 Thread dabramov
JBoss 4.0.3SP1, Java 1.5 We're using JMS for notifications to various local subsystems. However, we also have slave servers that need to receive the same notifications. Anyone know of a simple way to send a single notification that remote subscribers can receive on UIL2, and local subscribers

[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Tracking down MQ Threads

2005-09-13 Thread dabramov
Finally got around to doing some tracing - I turned on the TRACE logging for the TraceInterceptor. I can see subscriptions and unsubsciptions being logged. The problem is that the ID identifing any particular subscription are bogus - always -2147483648 which is min int. Based on this informati

[JBoss-user] [Messaging, JMS & JBossMQ] - Tracking down MQ Threads

2005-08-25 Thread dabramov
This is JBoss 3.2.6, Java 1.4.2 While debugging an issue, we did a thread dump on our application and noticed approximately 240 UIL2 ReadTask/WriteTask thread pairs. 116 pairs are associated w/ port 8093, which I would assume would represent our JMS queues and topics. 118 pairs are associated w

[JBoss-user] [JCA/JBoss] - Re: problem w/ OracleValidConnectionChecker

2005-07-06 Thread dabramov
A bit more info - I added some debug to the OracleValidConnectionChecker. It appears that the Connection that is getting passed to the isValidConnection(Connection c) method is not, in fact, an oracle.jdbc.driver.OracleConnection but rather a JBoss proxy of some kind. The top of the isValidCon

[JBoss-user] [JCA/JBoss] - problem w/ OracleValidConnectionChecker

2005-07-05 Thread dabramov
Using: JBoss 3.2.6 Java 1.4.2_05-b04 Oracle: 9.2.0.1.0 Oracle driver: 9.0.2.0.0 I'm trying to use the OracleValidConnectionChecker, but get the exception below when a connection is requested. >From the error and taking a look a the OracleValidConnectionChecker, it looks >like Connection being

[JBoss-user] [Management, JMX/JBoss] - Re: mbean lifecycle

2005-04-21 Thread dabramov
Fair enough. Thanks. View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3874891#3874891 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3874891 --- This SF.Net email is spo

[JBoss-user] [Management, JMX/JBoss] - Re: mbean lifecycle

2005-04-21 Thread dabramov
Thanks for the quick replies. In this case, the MBean that I'm looking up is not extending ServiceMBeanSupport. Can I get at the state information via another mehtod (MBeanServer.getAttribute()) ? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3874888#38748

[JBoss-user] [Management, JMX/JBoss] - mbean lifecycle

2005-04-21 Thread dabramov
Can someone confirm (or deny - though I prefer confirm) that if I lookup an MBean through the MBeanServer it will only be available after the MBean has completed its start() method? Thanks. -Dan View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3874863#3874863