[JBoss-user] [EJB/JBoss] - Message driven bean and jboss scheduler
Hi all, I am wondering how to use Jboss scheduler service in MDB,I have a task to get message from MDB clients and process them nightly.How can I achieve this by using Jboss scheduler?Since the onMessage() is called my JMS container and perform() is called by jboss MBean server when time out is reached. Any hints and examples? Many thanks in advance! View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3845482#3845482 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3845482 --- 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] [Persistence & CMP/JBoss] - Performance issues of using BLOB in CMP
Hi all, I am wondering if you guys have experience on how CMP can handle BLOB type,Since I plan to use a BLOB type to store large file data(100MB-1GB) into a table using CMP and then read it back later on.I am trying to be clear about any potential performance hit before I do that approach. Now if I do File I/O directly it take about 16 secs to write a 70MByte file to my local directory,is that can be achieved in EJB CMP/or direct JDBC calls?Then how about reading performance. I am using Jbsoo3.2.3 and Oracle9i, Any special attentions I should pay to If I use CMP approach? Thanks a lot in advance View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3844610#3844610 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3844610 --- 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] [Performance Tuning] - performance issues with huge file upload
Hi all, My project involved a huge file(100MB) upload process in front end,then front end client sends the huge file stream to Message driven bean for processing the upload asynchrounsly and finally the MDB invokes file parser and other EJB components to feteh the the processed file data into DB. My problem is that the JbossMQ will be dead if I did such a large upload, possible solutions may be 1.Let the front end client save the large file in a temporary directory, then it send just a simple message via JMS to MDB so that MDB get the URI of the file and read the file from the temporary directory.This approach is easy to implement 2.Split the file stream into smaller pieces and the client send the smaller pieces info the MDB multiple times,but MDB has to assemble those smaller pieces again to the original one and this solution may be harder to implement. So any suggestions on my best choices?Thanks View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3844523#3844523 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3844523 --- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Re: Problem with sending huge message in jboss
Thank you ! But what do u mean 'message interally to JVM',another porblem here is that the jboss was preocupied during the course of sending this large message, it doesn't seems to be the asynchrouns nature of JMS,Also once server is down,I did n't notice themessage redelivery.Also do u know the maxium size a message could be sent by jbossMQ.Thank View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3844190#3844190 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3844190 --- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Messaging, JMS & JBossMQ] - Problem with sending huge message in jboss
Hi all, I am wondering if you guys have experience in sending Large (Text) Message in JMS,The project I am doing involves a Large File upload process which sends a huge string converted from a txt file(70M bytes) to Message Listener(which is a MDB),The problem I have is that the speed to send out message is very slow,the App server(Jboss3.2.3) issues Tx time out so that the large string does not get sent , Any ideas? The Xdoclet snippet for MDB @ejb.bean name="ImportMDB" * destination-type="javax.jms.Queue" * subscription-durability="Durable" * acknowledge-mode ="Auto-acknowledge" * * @jboss.destination-jndi-name name = "queue/ImportMDBQueue" * @jboss.container-configuration name ="Standard Message Driven Bean" * The following is error in the log file: Transaction TransactionImpl:XidImpl [FormatId=257, GlobalId=sd-vying//227, BranchQual=] timed out. status=STATUS_COMMITING 2004-08-04 11:49:12,649 WARN [org.jboss.tm.TransactionImpl] XAException: tx=TransactionImpl:XidImpl [FormatId=257, GlobalId=sd-vying//227, BranchQual=] errorCode=XA_UNKNOWN(0) org.jboss.resource.connectionmanager.JBossLocalXAException: wrong xid in rollback: expected: null, got: XidImpl [FormatId=257, GlobalId=sd-vying//227, BranchQual=1] at org.jboss.resource.connectionmanager.TxConnectionManager$LocalXAResource.rollback(TxConnectionManager.java:827) at org.jboss.tm.TransactionImpl.rollbackResources(TransactionImpl.java:1664) at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:403) at org.jboss.tm.TxManager.commit(TxManager.java:141) at org.jboss.mq.pm.jdbc2.PersistenceManager$TransactionManagerStrategy.endTX(PersistenceManager.java:178) at org.jboss.mq.pm.jdbc2.PersistenceManager.add(PersistenceManager.java:756) at org.jboss.mq.server.PersistentQueue.addMessage(PersistentQueue.java:44) at org.jboss.mq.server.JMSQueue.addMessage(JMSQueue.java:145) at org.jboss.mq.server.JMSDestinationManager.addMessage(JMSDestinationManager.java:407) at org.jboss.mq.server.JMSDestinationManager.addMessage(JMSDestinationManager.java:383) at org.jboss.mq.server.JMSServerInterceptorSupport.addMessage(JMSServerInterceptorSupport.java:136) at org.jboss.mq.security.ServerSecurityInterceptor.addMessage(ServerSecurityInterceptor.java:162) at org.jboss.mq.server.TracingInterceptor.addMessage(TracingInterceptor.java:270) at org.jboss.mq.server.JMSServerInvoker.addMessage(JMSServerInvoker.java:136) at org.jboss.mq.il.oil.OILServerILService$Client.run(OILServerILService.java:249) at java.lang.Thread.run(Thread.java:534) 2004-08-04 11:49:21,586 WARN [org.jboss.mq.il.oil.OILServerILService] Client request resulted in a server exception: org.jboss.mq.SpyJMSException: Could not start a transaction with the transaction manager.; - nested throwable: (org.jboss.tm.JBossRollbackException: Unable to commit, tx=TransactionImpl:XidImpl [FormatId=257, GlobalId=sd-vying//227, BranchQual=] status=STATUS_NO_TRANSACTION; - nested throwable: (org.jboss.resource.connectionmanager.JBossLocalXAException: wrong xid in rollback: expected: null, got: XidImpl [FormatId=257, GlobalId=sd-vying//227, BranchQual=1])) at org.jboss.mq.pm.jdbc2.PersistenceManager$TransactionManagerStrategy.endTX(PersistenceManager.java:183) at org.jboss.mq.pm.jdbc2.PersistenceManager.add(PersistenceManager.java:756) at org.jboss.mq.server.PersistentQueue.addMessage(PersistentQueue.java:44) at org.jboss.mq.server.JMSQueue.addMessage(JMSQueue.java:145) at org.jboss.mq.server.JMSDestinationManager.addMessage(JMSDestinationManager.java:407) at org.jboss.mq.server.JMSDestinationManager.addMessage(JMSDestinationManager.java:383) at org.jboss.mq.server.JMSServerInterceptorSupport.addMessage(JMSServerInterceptorSupport.java:136) at org.jboss.mq.security.ServerSecurityInterceptor.addMessage(ServerSecurityInterceptor.java:162) at org.jboss.mq.server.TracingInterceptor.addMessage(TracingInterceptor.java:270) at org.jboss.mq.server.JMSServerInvoker.addMessage(JMSServerInvoker.java:136) at org.jboss.mq.il.oil.OILServerILService$Client.run(OILServerILService.java:249) at java.lang.Thread.run(Thread.java:534) Caused by: org.jboss.tm.JBossRollbackException: Unable to commit, tx=TransactionImpl:XidImpl [FormatId=257, GlobalId=sd-vying//227, BranchQual=] status=STATUS_NO_TRANSACTION; - nested throwable: (org.jboss.resource.connectionmanager.JBossLocalXAException: wrong xid in rollback: expected: null, got: XidImpl [FormatId=257, GlobalId=sd-vying//227, BranchQual=1]) at org.jboss.tm.TransactionImpl.commit(TransactionImpl.java:413) at org.jboss.tm.TxManager.commit(TxManager.java:141) at org.jboss.mq.pm.jdbc2.PersistenceManager$TransactionManagerStrategy.endTX(PersistenceManager.java:178) ... 11 more Caused by: org.jboss.resource.connectionmanager.JBossLocalXAException: wrong xid in rollback: expected: null, got: XidImpl [FormatId=257, GlobalId=sd-vying//227, BranchQual=1]
[JBoss-user] [Persistence & CMP/JBoss] - performance issues updating data using CMP
Hi,all, I am doing a project which upload a file and then insert the parsing result into the DB(Oracle 9i). The situation is like this,there's main lineitem table and another 2 dependent tables,Each mainline will have a couple of vlaues to be inserted in the dependaent tables. The observation is that jboss will lauch select and insertion queries 1000 times if there's 1000 mainline to be inserted.meanwhile jboss will insert many times for each lineitem dependent value to those dependaent tables.So the performance is not that good:almost 0.3sec/per lineitem. The statisitcs are as follows: Total number of mainline from file parser to be put into DB: 923, Total Number of DB insertion operations:8359 Total Number of related DB query operations:9317 Total time to complete transaction:209secs I was trying to improve the performance for jboss,but it seems like most optimization is fordata loading(e.g read ahead ect..),so any good suggestion on improving performance for data updating using CMP? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3844039#3844039 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3844039 --- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence & CMP/JBoss] - Database trigger and Jboss Caching
Hi all, I have a question about how jboss handle caching mechnisms while involving data changes from database by triggers.Is there any limits set by Jboss due to using a Database trigger in a transaction? Can we use Database trigger when we use Jboss for EJB caching?Any thing we should pay special attention to?Thanks View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3841962#3841962 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3841962 --- 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] [EJB/JBoss] - Database trigger and JBOSS EJB caching
Hi all, I have a question about how jboss handle caching mechnisms while involving data changes from database by triggers.Is there any limits set by Jboss due to using a Database trigger in a transaction?Any suggestions,Thanks View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3841960#3841960 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3841960 --- 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] [Persistence & CMP/JBoss] - Re: Is this a jboss bug (entity setter mehod)?
Alex, I think the container is to handle the clearance before setting new ones whatever compound Pk exists .So will it be enhanced by Jboss in the near future?Thanks View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3833950#3833950 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3833950 --- This SF.Net email is sponsored by Sleepycat Software Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO. http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user
[JBoss-user] [Persistence & CMP/JBoss] - Re: Is this a jboss bug (entity setter mehod)?
Yes, it's a 1-to-many relationship.where B has a compound primary key. say A's Primary Key is PK_A, B's Primary Key is (PK_A,ColB),where ColB is another column in Table B. The scenario like this: say table B's structure is like:(PK_A,ColB,ColB2) and we have a row of old data here in table B:(1000,,'abcd');where 1000 is a Pk in Table A which is referenced by table B. In A's EntityEJB ,the CMR setter is setBs(collection bs),when we tried to set a new collection with new data (1000,,'efgh') from A's EntityEJB with that setter, then after calling the setter,the result in DB is like:(1000,,'abcd') +(1000,,'efgh').the old one is still there The CMR getter seems to get them all. Any suggestions? View the original post : http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3833789#3833789 Reply to the post : http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3833789 --- This SF.Net email is sponsored by Sleepycat Software Learn developer strategies Cisco, Motorola, Ericsson & Lucent use to deliver higher performing products faster, at low TCO. http://www.sleepycat.com/telcomwpreg.php?From=osdnemail3 ___ JBoss-user mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/jboss-user