[jboss-user] [JCA] - Re: Question for the ResourceException: Interrupted while requesting permit! Waited 0 ms
Vicky Kak [http://community.jboss.org/people/vickyk] created the discussion Re: Question for the ResourceException: Interrupted while requesting permit! Waited 0 ms To view the discussion, visit: http://community.jboss.org/message/565294#565294 -- I am observing the error +ResourceException: Interrupted while requesting permit! Waited 0 ms+ in the peer node in the cluster when main node (the first node started in the cluster) is crashed unexpectedly. It is a crash related scenario and there could be possiblity that the invoking thread is trying to call the connection is being stopped, why are you worried about it since this is happening while there is a crash. You must me worried about the crash itself. I am using JBOSS 4.2.3 GA, and the cluster is consisting of 2 nodes. The DB i am using is postgres 8.4.4 and i am using a Fedora 8 box. I have read the thread ( http://community.jboss.org/message/150841#150841 http://community.jboss.org/message/150841) and it mentioned the error is related to the transaction time out, and it suggested that to include the option blocking-timeout-millis in the ds.xml. I still observing such error even after such option is enable in my db ds file. You are using Jboss4.2* series which does not contain the older in memory TM, the trasaction timeout would result in thread interruption in that case. So the transaction timeout should not be the cause for this case. -- Reply to this message by going to Community [http://community.jboss.org/message/565294#565294] Start a new discussion in JCA at Community [http://community.jboss.org/choose-container!input.jspa?contentType=1containerType=14container=2098] ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA] - Re: Classcast Exception using Oracle Blobs(10g) and JBoss 4.0
Vicky Kak [http://community.jboss.org/people/vickyk] created the discussion Re: Classcast Exception using Oracle Blobs(10g) and JBoss 4.0 To view the discussion, visit: http://community.jboss.org/message/565298#565298 -- Put some debugging statements in the code show us the result of those debuggings, also paste the complete error trace. -- Reply to this message by going to Community [http://community.jboss.org/message/565298#565298] Start a new discussion in JCA at Community [http://community.jboss.org/choose-container!input.jspa?contentType=1containerType=14container=2098] ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA] - Re: DEBUG [org.jboss.resource.deployment.RARDeployment] Error getting attribute AvailableProcessors
Vicky Kak [http://community.jboss.org/people/vickyk] created the discussion Re: DEBUG [org.jboss.resource.deployment.RARDeployment] Error getting attribute AvailableProcessors To view the discussion, visit: http://community.jboss.org/message/563215#563215 -- Which version of JBoss AS are you using? You are seeing the debug message, it should not be the issue. What changes have you made in the AS which is leading to these debug messages cropping in console? -- Reply to this message by going to Community [http://community.jboss.org/message/563215#563215] Start a new discussion in JCA at Community [http://community.jboss.org/choose-container!input.jspa?contentType=1containerType=14container=2098] ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA] - Re: Failed to enlist resource with Generic JCA-Adapter
Vicky Kak [http://community.jboss.org/people/vickyk] created the discussion Re: Failed to enlist resource with Generic JCA-Adapter To view the discussion, visit: http://community.jboss.org/message/563216#563216 -- [com.arjuna.ats.internal.jta.transaction.arjunacore.lastResource.disallow] Adding multiple last resources is disallowed. Current resource is org.jboss.resource.connectionmanager.txconnectionmanager$localxaresou...@1044bcb 2010-06-14 18:38:00,353 TRACE [org.jboss.resource.connectionmanager.TxConnectionManager] (WorkerThread#0[127.0.0.1:45941]) Failed to enlist resource You might have multiple local-tx-datasource being used in a single JTA transaction, it is unsafe check this http://community.jboss.org/docs/DOC-11443 http://community.jboss.org/wiki/Multiple1PC -- Reply to this message by going to Community [http://community.jboss.org/message/563216#563216] Start a new discussion in JCA at Community [http://community.jboss.org/choose-container!input.jspa?contentType=1containerType=14container=2098] ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA] - Re: Newbie: ORB Notify Channel Source JCA
Vicky Kak [http://community.jboss.org/people/vickyk] created the discussion Re: Newbie: ORB Notify Channel Source JCA To view the discussion, visit: http://community.jboss.org/message/563217#563217 -- Have you been able to get things working here, I have been in hibernating mode for some time. Hope to get back now ;) -- Reply to this message by going to Community [http://community.jboss.org/message/563217#563217] Start a new discussion in JCA at Community [http://community.jboss.org/choose-container!input.jspa?contentType=1containerType=14container=2098] ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
Re: [jboss-user] [JCA] - Newbie: ORB Notify Channel Source JCA
Vicky Kak [http://community.jboss.org/people/vickyk] replied to the discussion Newbie: ORB Notify Channel Source JCA To view the discussion, visit: http://community.jboss.org/message/539655#539655 -- I am not able to understand your questions clearly, however have you looked at the following wiki? http://community.jboss.org/wiki/JBossJCAMessageInflowExample http://community.jboss.org/wiki/JBossJCAMessageInflowExample -- Reply to this message by going to Community [http://community.jboss.org/message/539655#539655] Start a new discussion in JCA at Community [http://community.jboss.org/choose-container!input.jspa?contentType=1containerType=14container=2098] ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
Re: [jboss-user] [JCA] - JBoss As 5.1.0.GA Switch DefaultDS to Oracle DS
Vicky Kak [http://community.jboss.org/people/vickyk] replied to the discussion JBoss As 5.1.0.GA Switch DefaultDS to Oracle DS To view the discussion, visit: http://community.jboss.org/message/539658#539658 -- paata lominadze wrote: How to create Tables into database ? i thik that jboss must create them itself. You also need to make the changes here $JBOSS_HOME/server/default/deploy/uuid-key-generator.sar/META-INF/jboss-service.xml Check this entry in the jboss-service.xml depends optional-attribute-name=DataSourcejboss.jca:service=DataSourceBinding,name=DefaultDS/depends This change seem to be missing here too http://community.jboss.org/wiki/SetUpMysqlAsDefaultDS#comment-1999 http://community.jboss.org/wiki/SetUpMysqlAsDefaultDS#comment-1999 Try these changes and let us know if things work ok. -- Reply to this message by going to Community [http://community.jboss.org/message/539658#539658] Start a new discussion in JCA at Community [http://community.jboss.org/choose-container!input.jspa?contentType=1containerType=14container=2098] ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
Re: [jboss-user] [JCA] - JBoss As 5.1.0.GA Switch DefaultDS to Oracle DS
Vicky Kak [http://community.jboss.org/people/vickyk] replied to the discussion JBoss As 5.1.0.GA Switch DefaultDS to Oracle DS To view the discussion, visit: http://community.jboss.org/message/539659#539659 -- paata lominadze wrote: I've no any problem with postgreSQL or mySQL database, but no success with Oracle :( Can you make sure that the changes made for oracle datasource configured is same as that of postgreSQL/mySQL? -- Reply to this message by going to Community [http://community.jboss.org/message/539659#539659] Start a new discussion in JCA at Community [http://community.jboss.org/choose-container!input.jspa?contentType=1containerType=14container=2098] ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
Re: [jboss-user] [JCA] - AS400JDBCXADataSource - getting started with two txns
Vicky Kak [http://community.jboss.org/people/vickyk] replied to the discussion AS400JDBCXADataSource - getting started with two txns To view the discussion, visit: http://community.jboss.org/message/539660#539660 -- If you want help then make sure that you post the details which are readable, the application code is not readable. -- Reply to this message by going to Community [http://community.jboss.org/message/539660#539660] Start a new discussion in JCA at Community [http://community.jboss.org/choose-container!input.jspa?contentType=1containerType=14container=2098] ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
Re: [jboss-user] [JCA] - How to define a read-only connection ?
Vicky Kak [http://community.jboss.org/people/vickyk] replied to the discussion How to define a read-only connection ? To view the discussion, visit: http://community.jboss.org/message/539661#539661 -- Can you make sure that com.ibm.db2.jcc.DB2XADataSource::setReadOnly()/getReadOnly() exists? The IBM docs shows that it exists but can you confirm if there are setter getter methods for it too ? http://publib.boulder.ibm.com/infocenter/db2luw/v8/index.jsp?topic=/com.ibm.db2.udb.doc/ad/rjvdsprp.htm Also you could try setting this in xa-datasource/local-tx-datasource? connection-property name=connectionPropertiesreadOnly=true/connection-property Let us know if this works. -- Reply to this message by going to Community [http://community.jboss.org/message/539661#539661] Start a new discussion in JCA at Community [http://community.jboss.org/choose-container!input.jspa?contentType=1containerType=14container=2098] ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
Re: [jboss-user] [JCA] - How to define a read-only connection ?
Vicky Kak [http://community.jboss.org/people/vickyk] replied to the discussion How to define a read-only connection ? To view the discussion, visit: http://community.jboss.org/message/539662#539662 -- Adrian Brock wrote: For local datasources we don't know the types since we use java.sql.Driver.connect(String, Properties); and like I said above, there is no way to specify it. I think we should be able to set the readOnly property above as readOnly=true. I am right now feeling lazy to check the source code ;) -- Reply to this message by going to Community [http://community.jboss.org/message/539662#539662] Start a new discussion in JCA at Community [http://community.jboss.org/choose-container!input.jspa?contentType=1containerType=14container=2098] ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA] New message: Re: How to define a read-only connection ?
User development, A new message was posted in the thread How to define a read-only connection ?: http://community.jboss.org/message/532504#532504 Author : Vicky Kak Profile : http://community.jboss.org/people/vickyk Message: -- Can you try setting the readOnly properties via the simple java standalone jdbc program and see if it works first, we can then take a look at why this does not work in JCA if you got it working in standalone jdbc program. -- To reply to this message visit the message page: http://community.jboss.org/message/532504#532504 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA] New message: Re: HornetQ RA integration
User development, A new message was posted in the thread HornetQ RA integration: http://community.jboss.org/message/532518#532518 Author : Vicky Kak Profile : http://community.jboss.org/people/vickyk Message: -- I don't understand how I can find whether the managed connection factory will use XA or not when I effectively create the JMS resources in HornetQRAConnectionFactory class. I don't understand why you need to do so, the ConnectionManager should identify if it is localtx or xatx and accordingly enlist the XAResource. The client application will get the ConnectionFactory which will call the ConnectionManager::allocateConnection() and further invoke createManagedConnection Or matchManagedConnection. The createManagedConnection will basically invoke the MCF::createConnection(). PS: If you could explain the details then I could take a deeper look at the specs and corresponding details, right now I am putting all what is there in top of my mind. Regards, Vicky -- To reply to this message visit the message page: http://community.jboss.org/message/532518#532518 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA] New message: Re: HornetQ RA integration
User development, A new message was posted in the thread HornetQ RA integration: http://community.jboss.org/message/532592#532592 Author : Vicky Kak Profile : http://community.jboss.org/people/vickyk Message: -- jmesnil wrote: At that time, I need to know if I should create a XASession (if xa-transaction / was specified), a transacted Session (if local-transaction /) or a non-transacted Session (if in a no-tx-connection-factory element). This created session will be returned later by ManagedConnection.getConnection(). Is that If xa-transaction is specified the ConnectionManager implementation i.e org.jboss.resource.connectionmanager.TxConnectionManager::createConnectionListerner(..) will get the XAResource from the MC::getXAResource Here is the code public ConnectionListener createConnectionListener(ManagedConnection mc, Object context) throws ResourceException { XAResource xaResource = null; if (localTransactions) { xaResource = new LocalXAResource(log); if (xaResourceTimeout != 0) log.debug(XAResource transaction timeout cannot be set for local transactions: + getJndiName()); } else { xaResource = JcaXAResourceWrapperFactory.getResourceWrapper(mc.getXAResource(), isSameRMOverrideValue); if (xaResourceTimeout != 0) { try { if (xaResource.setTransactionTimeout(xaResourceTimeout) == false) log.debug(XAResource does not support transaction timeout configuration: + getJndiName()); } catch (XAException e) { throw new JBossResourceException(Unable to set XAResource transaction timeout: + getJndiName(), e); } } } ConnectionListener cli = new TxConnectionEventListener(mc, poolingStrategy, context, log, xaResource); mc.addConnectionEventListener(cli); return cli; } The ConnectionListener/ConnectionManager creates the XASession and non XASession, you will have to implement the getXAResource and getLocalTransaction appropriately. The JCA CM will call these methods approprately during the execution. You can find more from JCA specs CM chapter. HTH ! -- To reply to this message visit the message page: http://community.jboss.org/message/532592#532592 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA] New message: Re: HornetQ RA integration
User development, A new message was posted in the thread HornetQ RA integration: http://community.jboss.org/message/532609#532609 Author : Vicky Kak Profile : http://community.jboss.org/people/vickyk Message: -- According to the log, getXAResource() is called on the ManagedConnection- I create the underlying JMS XA Session Then the tm realizes there is no TX and does not enlist the xaresource Finally getConnection() is called on the ManagedConnection - It will return the JMS XA session yes this flow is in the CM::allocateConnection(), you can see the implementation here http://anonsvn.jboss.org/repos/jbossas/trunk/connector/src/main/java/org/jboss/resource/connectionmanager/BaseConnectionManager2.java jmesnil wrote: It's not clear to me but this seems to imply that a ManagedConnection with XA transaction has to accept doing work outside a transaction. I don't find the relevant section in the JCA spec. wdyt? It does work outside the transaction, you will only get the pooling functionality and not the transparent TX enlistment since this is not called in the TX context. Check 7.6.4 Scenario: Transactional Setup for a ManagedConnection of JCA1.5 specs, this talks about the case when the TX propagation is there. If the application server decides that the transaction manager will manage the current transaction, it conducts the following transactional setup on the ManagedConnection instance: Using the xa resource with transaction context does not make any sense as there is no tx propagation, in such cases no-tx resource could be used. I don't understand how the Session.recovery would be called in tests where there is no tx propagation, if the TX is not being present in the usecases then i don't see recovery being called , therefore the TX recovey mechanism will not call Session::recovery. The recovery will come in picture in case of TX only. I may need to understand the TCK testcase to provide more details. -- To reply to this message visit the message page: http://community.jboss.org/message/532609#532609 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA] New message: Re: HornetQ RA integration
User development, A new message was posted in the thread HornetQ RA integration: http://community.jboss.org/message/532617#532617 Author : Vicky Kak Profile : http://community.jboss.org/people/vickyk Message: -- jmesnil wrote: Session.recover() is used to recover message acknowledgementswhen the JMS session is not transacted. Sorry for the confusion. thanks for the clarification, jeff Not sure if I understood this, it seems that Session.recovery is not the part of the jms API. Would you explain the failure cause in details, your earlier description wasn't that clear to me? Also you could take a look at the older implementation for some reference, since this implementation would have passed the TCK tests http://anonsvn.jboss.org/repos/jbossas/trunk/connector/src/main/java/org/jboss/resource/adapter/jms/ AFAIR the tx enlistment will not happen if the xa specific RA if it is not used in tx context, it should not pose any issues. I don't know how the recovery() call as pointed by you is being made after the session is retrieved from the jms RA. -- To reply to this message visit the message page: http://community.jboss.org/message/532617#532617 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA] New message: Re: HornetQ RA integration
User development, A new message was posted in the thread HornetQ RA integration: http://community.jboss.org/message/532659#532659 Author : Vicky Kak Profile : http://community.jboss.org/people/vickyk Message: -- timfox wrote: We're discussing this here: http://community.jboss.org/message/532625#532625 AIUI (Jeff please correct me if I am wrong), the JBoss JCA impl is calling getXAResource() even though no work is being done as part of an XA tx, which seems incorrect to me Yes it does call the getXAReosource() on the MC even if there is not TX propagation. Here is the code which does it org.jboss.resource.connectionmanager.TxConnectionManager::createConnectionListener() http://anonsvn.jboss.org/repos/jbossas/trunk/connector/src/main/java/org/jboss/resource/connectionmanager/TxConnectionManager.java Also the JCA interacts with the XASession's i.e which I assume are the XAResource via the TM, the TM could interact with the XAResources only when it is enlisted.If the TX is not propagated and JCA getting the XAResource and not making it available(by enlisting it in TX) should not have any effect AFAIU, I don't know how it is affecting TCK. Yes as per the JCA specs we should not be calling the getXAResource on MC if there is not a TX propagation, this looks a bug to me also. Jeff, are you able to get things working as it had been done in jboss messaing. I could try making the changes in JCA but it might need more time for testing etc, I will raise a discussion about it in design forums too so that we hear more from otheres. -- To reply to this message visit the message page: http://community.jboss.org/message/532659#532659 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA Development] New message: getXAResource should not be called without TX context
User development, A new message was posted in the thread getXAResource should not be called without TX context: http://community.jboss.org/message/532662#532662 Author : Vicky Kak Profile : http://community.jboss.org/people/vickyk Message: -- In the current JCA implemetation the getXAResource is being called on the MC even if there is no tx context, it seems to be breaking the TCK for HornetQ RA, check this http://community.jboss.org/message/532626#532626 The JCA specs explains that the getXAResource not to be called outside the tx context! IMO we should have this fixed, I wanted to know more views before I could raise a JIRA. Any thoughts? -- To reply to this message visit the message page: http://community.jboss.org/message/532662#532662 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA] New message: Re: HornetQ RA integration
User development, A new message was posted in the thread HornetQ RA integration: http://community.jboss.org/message/532663#532663 Author : Vicky Kak Profile : http://community.jboss.org/people/vickyk Message: -- Here is the related link in JCA development forums http://community.jboss.org/thread/149602 -- To reply to this message visit the message page: http://community.jboss.org/message/532663#532663 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA] New message: Re: JMS Bridge and JMS Provider Resource Adapter (JCA)
User development, A new message was posted in the thread JMS Bridge and JMS Provider Resource Adapter (JCA): http://community.jboss.org/message/531602#531602 Author : Vicky Kak Profile : http://community.jboss.org/people/vickyk Message: -- bgillis wrote : But could you explain why Resource Adaptors only expose connection factory as ConnectionFactory and never as XAConnectionFactory ? The JCA specs points to expose the CF via JNDI to the component, the CF could be based on CCI interface or non-cci based. -- To reply to this message visit the message page: http://community.jboss.org/message/531602#531602 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA] New message: Re: JMS Bridge and JMS Provider Resource Adapter (JCA)
User development, A new message was posted in the thread JMS Bridge and JMS Provider Resource Adapter (JCA): http://community.jboss.org/message/531060#531060 Author : Vicky Kak Profile : http://community.jboss.org/people/vickyk Message: -- It looks more as an JMS related query, just wait for the response of the messaging team on the other cross post. -- To reply to this message visit the message page: http://community.jboss.org/message/531060#531060 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA] New message: Re: Changinh connection state in CMP EJB
User development, A new message was posted in the thread Changinh connection state in CMP EJB: http://community.jboss.org/message/529777#529777 Author : Vicky Kak Profile : http://community.jboss.org/people/vickyk Message: -- Jesper, This one had been there for long time so wanted to close it now I am planing to put a fix here http://anonsvn.jboss.org/repos/jbossas/branches/Branch_4_2/ Any thoughts about it? -- To reply to this message visit the message page: http://community.jboss.org/message/529777#529777 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA] New message: Re: (JBoss 5.0.0 EAP) - RAR contained in EAR no longer deployed before EJB Jars
User development, A new message was posted in the thread (JBoss 5.0.0 EAP) - RAR contained in EAR no longer deployed before EJB Jars: http://community.jboss.org/message/529169#529169 Author : Vicky Kak Profile : http://community.jboss.org/people/vickyk Message: -- smceneaney wrote: In JBoss 5 the deployment order has changed. The EJB JARs are deployed first and then subsequently the RARs. I have attempted using strict module deployment ordering but this no longer works. It is known issue with JBoss5 and if you are using EAP then talk to support team they would be able to give you one off patch. https://jira.jboss.org/jira/browse/JBAS-7106 If you are not using EAP then you will have to create one off patch for it, you can find the details from the above pointed JIRA. smceneaney wrote: In addition, I have added @Depends annotations to my MDBs but this does not work either. If I disable my MDBs and allow JBoss to start without them I can see all of the the EJBs and MDBs in my application being deployed followed by my ResourceAdapters. You should be able to set it via Depends annotaton, don't know what wrong is going on. Do you have a test case to explain it? You can also try using prefix deployment sorted in JB5, check this JIRA https://jira.jboss.org/jira/browse/JBAS-7614 I know it is much of backporting of features, can't help on that. -- To reply to this message visit the message page: http://community.jboss.org/message/529169#529169 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA] New message: Re: How best to handle DB failover?
User development, A new message was posted in the thread How best to handle DB failover?: http://community.jboss.org/message/529175#529175 Author : Vicky Kak Profile : http://community.jboss.org/people/vickyk Message: -- mcevikce wrote: But even with check-valid-connection-sql defined, my old connections are still there. I would expect all of the old connections to be recycled but thats not the case. Is there a way to clear all the connections in my datasource and recreate them with new URL? Actually you are not using ha datasource, it seems the URL gets changed on the fly. The DB connections available in the pool are alive, the check-valid-connection when called will basically take longer time since the DB is locked, it is not closed/shutdown. If it would have been closed/shutdown I would have recommended you to try use-fast-fail as mentioned here http://community.jboss.org/wiki/ConfigJCACommon In your case I would suggest you to write a custom MBean which will flush the pool by invoking flush() operation on one of the JCA infrastructure MBeans, check jboss.jca:* Mbeans ( ManagedConnectionPool::flush()). -- To reply to this message visit the message page: http://community.jboss.org/message/529175#529175 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA Development] New message: Re: JBJCA-272 - Standalone validator tool
User development, A new message was posted in the thread JBJCA-272 - Standalone validator tool: http://community.jboss.org/message/529001#529001 Author : Vicky Kak Profile : http://community.jboss.org/people/vickyk Message: -- I have to add the following lines explicitlity to get the validator build working for this build.xml https://svn.jboss.org/repos/jbossas/projects/jboss-jca/trunk/validator/build.xml property name=build.validator.dir value=${build.dir}/validator / path id=standalone.lib.path.id fileset dir=/home/vicky/workspace/jboss-jca/trunk/lib/standalone include name=**/*.jar/ /fileset fileset dir=/home/vicky/workspace/jboss-jca/trunk/target include name=**/*.jar/ /fileset /path Shouldn't build be working from here ? vi...@pamposh:~/workspace/jboss-jca/trunk/validator Jeff, are we in sync here? -- To reply to this message visit the message page: http://community.jboss.org/message/529001#529001 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA Development] New message: Re: JBJCA-272 - Standalone validator tool
User development, A new message was posted in the thread JBJCA-272 - Standalone validator tool: http://community.jboss.org/message/529042#529042 Author : Vicky Kak Profile : http://community.jboss.org/people/vickyk Message: -- Yes I could get things working when I run it from the top lovel directory. I do see couple of jboss-jca-validator related jars i.e jboss-jca-validator.jar and jboss-jca-validator-cli.jar. I don't think we should have two jars especially when the cli related jar is just having a Main class. Why not to have the Main class which is part of the cli related jar in the validator jar? Also where can we get the RAR's which are validated against the validator tool. -- To reply to this message visit the message page: http://community.jboss.org/message/529042#529042 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA] New message: Re: How to reference an embedded JCA resource adapater
User development, A new message was posted in the thread How to reference an embedded JCA resource adapater: http://community.jboss.org/message/526773#526773 Author : Vicky Kak Profile : http://community.jboss.org/people/vickyk Message: -- cgrf wrote: Is there a way to reference the embedded RAR file without hard-coding the containing archive's name? Thanks in advance! You should package the RAR seperately and not include it in the EAR, what is the reason that you want to have it in the EAR? AFAIK there is not way to refer to the RAR directly when it is a part of the EAR. -- To reply to this message visit the message page: http://community.jboss.org/message/526773#526773 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA] New message: Re: How to reference an embedded JCA resource adapater
User development, A new message was posted in the thread How to reference an embedded JCA resource adapater: http://community.jboss.org/message/526781#526781 Author : Vicky Kak Profile : http://community.jboss.org/people/vickyk Message: -- cgrf wrote: Another reason is encapsulation: when included within the EAR file, the adapter is not accessible to other applications on the same server. Also, multiple instances of my application could easily bring along their own configuration of the adapter. Well I understand that you have scoped EAR, so what you could do here is have multiple EAR's like plainear.ear and rarear.ear. Both of these ear's should be isolated and share the same CL, this can be controlled via the jboss-app.xml in EAR. The loader-repository entry in the plainear.ear/META-INF/jboss-app.xml and rarear.ear/META-INF/jboss-app.xml should have similar entry. You can give it a try and let us know if that sorts the issue. -- To reply to this message visit the message page: http://community.jboss.org/message/526781#526781 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA] New message: Re: Network boundaries in JCA?
User development, A new message was posted in the thread Network boundaries in JCA?: http://community.jboss.org/message/525640#525640 Author : Vicky Kak Profile : http://community.jboss.org/people/vickyk Message: -- ljnelson wrote: It is for this reason of course that the connection factory (little c, little f) needs to be both Serializable and Referenceable. All fine and good. It is referencable since the CF needs to be bound to JNDI and implements seriablizable so that the remove clients can get the refernce over wire. The JCA specs explicitity indicates that the CF should implement Referencable interface. So the client asks its JNDI implementation to look up my connection factory. This all takes place, I presume, on the client VM. What I mean to say is that when the lookup completes, the client will have an instance of my connection factory, which was serialized over the wire, either at lookup time or at deployment time (doesn't really matter to me, although I'm curious here too). It is at the deployment time that the CF implemeting the Serializable interface gets bound to the JNDI, and during the usage of the CF by remote client at run time CF would be serialized over wire. Question #1: Is this guaranteed to be a network call? Is ConnectionManager a remote stub? Or does it drag along the entire connection pooling machinery with it when it crosses the wire? ConnectionManager#allocateConnection() now brings the flow back into the application server, which roots around, does some matching algorithms, and finally results in my ManagedConnectionFactory implementation having its createManagedConnection() method called. Yes it is a n/w call. The JCA infrastruture like the pooling implementation does not passed to the remote client. The remote client should get the proxy of the CF via JNDI along with the proxy of CM. Check the implemetation of the jdbc RA in Jboss, check this class https://anonsvn.jboss.org/repos/jbossas/branches/Branch_4_2/connector/src/main/org/jboss/resource/connectionmanager/ConnectionFactoryBindingService.java Question #2: Does this call take place on the server, or on the client? If it takes place on the server, why is ManagedConnection not mandated to be Serializable? Or my user connection implementation, for that matter? Neither needs to be Serializable, which tells me that therefore they don't need to cross the wire. And since the user connection needs to be on the client side, then because it retains a reference to its ManagedConnection, then that also tells me that the ManagedConnection is on the client side. You should get the Connection Proxy and the MCF/MC calls will happen on server. The Connection implementation should implement the Serializable interface, it does if you check the jdbc rar implementation in Jboss https://anonsvn.jboss.org/repos/jbossas/branches/Branch_4_2/connector/src/main/org/jboss/resource/adapter/jdbc/WrapperDataSource.java https://anonsvn.jboss.org/repos/jbossas/branches/Branch_4_2/connector/src/main/org/jboss/resource/adapter/jdbc/WrapperConnection.java Finally the usage of JCA is not intended to be used remotely, it is suppsoed to used by the jee components so that they get the infrastruture benefit like pooling,tx and security. In your case your need seems to get conneted to the EIS via JCA for a standalone java client, you could do it without the JCA tier. Ideally from the standalone application you should make a SLSB call which would delegate the calls to the JCA. In case of jdbc RAR you could use the thin client to connect to the EIS and need not to go via JCA tier, similar approach should be applicable with other EIS. Regards, Vicky -- To reply to this message visit the message page: http://community.jboss.org/message/525640#525640 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA] New message: Re: How to code JNDI lookup of JCA Resource ConnectionFactor
User development, A new message was posted in the thread How to code JNDI lookup of JCA Resource ConnectionFactory?: http://community.jboss.org/message/525647#525647 Author : Vicky Kak Profile : http://community.jboss.org/people/vickyk Message: -- Please enable the trace logging on JCA CM and let us know what you see from this code https://anonsvn.jboss.org/repos/jbossas/branches/Branch_4_2/connector/src/main/org/jboss/resource/connectionmanager/ConnectionFactoryBindingService.java I wanted to see what we get from ConnectionFactoryBinding::bindConnectionFactory . -- To reply to this message visit the message page: http://community.jboss.org/message/525647#525647 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA Development] New message: Re: About Project Plan Implementation
User development, A new message was posted in the thread About Project Plan amp; Implementation: http://community.jboss.org/message/525657#525657 Author : Vicky Kak Profile : http://community.jboss.org/people/vickyk Message: -- I understand that we eventually would be in a position where we can plugin the JBJCA in other environment, I am more inclined to get it in the Tomcat. There are couple of ways which I can think to achieve this 1) Have the embeded tomcat started from the JBJCA and write a deployer which would deploy .war/.ear. 2) Embed the JBJCA in the Tomcat and implement the required deployers in Tomcat which will deploy the .rar. In both the cases we have to integrate the deployers and provide the JCA infrastructure(pooling/tx/security) I don't see just a JCA container which would purely have a capability to deploy the RAR being useful in enterprise application, you need to have the deployers for other artifacts too. What is the plan here? -- To reply to this message visit the message page: http://community.jboss.org/message/525657#525657 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA] New message: Re: CachedConnectionManager API issue
User development, A new message was posted in the thread CachedConnectionManager API issue: http://community.jboss.org/message/524438#524438 Author : Vicky Kak Profile : http://community.jboss.org/people/vickyk Message: -- gaohoward wrote: As the method setTransactionManagerServiceName(ObjectName), I don't know how to adapt the above code to the new JCA apis. Can you give some advice? We could inject the tm like this TransactionManager tm = (TransactionManager) getServer().getAttribute(TRANSACTION_MANAGER_OBJECT_NAME ,TransactionManager); ccm.setTransactionManager(tm); But this will not help you as the following would not behave well mbeanServer.invoke(on, start, new Object[0], new String[0]); We may land up in code change in the CCM. Before we take a deep look into it, can you explain what exactly your test case is doing? -- To reply to this message visit the message page: http://community.jboss.org/message/524438#524438 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA] New message: Re: CachedConnectionManager API issue
User development, A new message was posted in the thread CachedConnectionManager API issue: http://community.jboss.org/message/524456#524456 Author : Vicky Kak Profile : http://community.jboss.org/people/vickyk Message: -- gaohoward wrote: My understanding is that it simulates a JCA start up in a JBoss server. This works with AS 4 lib set. Now I need this work with AS 5 too. It turned out AS 5 has changed the API. I don't know how to do it. The code basically plugs in the JCA infrastruture MBeans for the testcase. You can knock off the following call mbeanServer.invoke(on, start, new Object[0], new String[0]); This basically was calling the startService() operation in 4.x implementation which had been doing this protected void startService() throws Exception { tm = (TransactionManager) getServer().getAttribute(transactionManagerServiceName, TransactionManager); TransactionSynchronizer.setTransactionManager(tm); ServerVMClientUserTransaction.getSingleton().registerTxStartedListener(this); EnterpriseContext.setUserTransactionStartedListener(this); } With Jboss5 we only need to set the TM which can be done by calling the setTransactionManager() on the CachedConnectionManager implenetation, check code https://svn.jboss.org/repos/jbossas/trunk/connector/src/main/java/org/jboss/resource/connectionmanager/CachedConnectionManager.java The other parts are knocked off as needed for this https://jira.jboss.org/jira/browse/JBAS-6159 So what I had pointed before should be helpful, you should knockoff the call on start() operation on the CCM in your testcase. Also I am wondering if you really need to plugin the CCM, the CCM is used to track the connection taken by the meta-ware objects. I am not sure if your test case need it, this is what you will have to check. Go ahead and try the approach which I had suggested and let us know if you see red signal. -- To reply to this message visit the message page: http://community.jboss.org/message/524456#524456 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Datasource Configuration] New message: Re: How to Read my oracle*ds.xml
User development, A new message was posted in the thread How to Read my oracle*ds.xml: http://community.jboss.org/message/524518#524518 Author : Vicky Kak Profile : http://community.jboss.org/people/vickyk Message: -- jaikiran wrote: peterj wrote: I know that at one time the app server would close the connection for you if your servlet did not close it (saw lots of forums posts on this); not sure if that is still the case. I think (although i am not sure), the CachedConnectionManager comes into picture only in a app server environment (i.e. a client like a servlet, EJB etc...). Yes CCM comes into picture with meta-aware objects which are Servlet/EJB. -- To reply to this message visit the message page: http://community.jboss.org/message/524518#524518 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [Datasource Configuration] New message: Re: How to Read my oracle*ds.xml
User development, A new message was posted in the thread How to Read my oracle*ds.xml: http://community.jboss.org/message/524519#524519 Author : Vicky Kak Profile : http://community.jboss.org/people/vickyk Message: -- Isolate the problem from your end. Using the JCA connection in the standalone application does not add much value, you should use it via jee component(servlet/ejb). Perform some of the tests with the ejb components, your standalone client should talk to the SLSB and the SLSB should perform these tests. Let us know if you find the difference in tests. Investigate jca logs, dig code, attach test case which will simulate the issue. -- To reply to this message visit the message page: http://community.jboss.org/message/524519#524519 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA Development] New message: Re: JBJCA-201 - New validation rules
User development, A new message was posted in the thread JBJCA-201 - New validation rules: http://community.jboss.org/message/523684#523684 Author : Vicky Kak Profile : http://community.jboss.org/people/vickyk Message: -- Jeff, what is the status of this task? I am planning to work on this task, please confirm if you have not already started with it yet. -- To reply to this message visit the message page: http://community.jboss.org/message/523684#523684 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA Development] New message: Re: Management of configuration properties inside ra.xml
User development, A new message was posted in the thread Management of configuration properties inside ra.xml: http://community.jboss.org/message/523719#523719 Author : Vicky Kak Profile : http://community.jboss.org/people/vickyk Message: -- Did you manage to get things working? -- To reply to this message visit the message page: http://community.jboss.org/message/523719#523719 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user
[jboss-user] [JCA Development] New message: Re: Management of configuration properties inside ra.xml
User development, A new message was posted in the thread Management of configuration properties inside ra.xml: http://community.jboss.org/message/523753#523753 Author : Vicky Kak Profile : http://community.jboss.org/people/vickyk Message: -- Sounds ok, I was also going to suggest you take a look at the jboss.jca:* MBeans for retrieving the required information. It seems that you are overriding the -ds.xml which will make the -ds.xml to survice the server restart. I will take a look at the code whenever I get some free time -- To reply to this message visit the message page: http://community.jboss.org/message/523753#523753 ___ jboss-user mailing list jboss-user@lists.jboss.org https://lists.jboss.org/mailman/listinfo/jboss-user