[jboss-user] [Spring Integration] - Re: Spring Component Auto Detection

2009-11-23 Thread nbhatia
Ales, Is the code for spring-int (specifically org.jboss.spring.vfs) still maintained at https://anonsvn.jboss.org/repos/jbossas/projects/spring-int? Is the jar now available in JBoss AS 5.1.0 or part of some maven repository? Thanks. Naresh View the original post :

[jboss-user] [JBoss Messaging] - Re:

2009-07-20 Thread nbhatia
Thanks Tim. I will surely try out your suggestion of using raw JMS to send and receive from a queue. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4244464#4244464 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4244464

[jboss-user] [JBoss Messaging] - Re:

2009-07-20 Thread nbhatia
Clebert, Tim, Thanks for your detailed responses. So I understand how to deal with database persistence. The only question that remains is how I should configure the JMS piece. Drop MDBs/JCA/JTA? (since that is turning out to be slow too.) But, replace it with what? My own

[jboss-user] [JBoss Messaging] - Re:

2009-07-20 Thread nbhatia
timfox wrote : Why are you persisting orders in a database? To clarify, orders are persisted in two databases, one on each system. The two systems belong to different departments (or even different companies) - so there is an ownership issue here and both systems need to save the data.

[jboss-user] [JBoss Messaging] - Re:

2009-07-20 Thread nbhatia
timfox wrote : The right way depends on what you are trying to do. | | From your test program I can see you are just sending messages to a queue, and consuming them via an MDB which does nothing but log a message. | | In this case you don't need transactions on your MDB, also there's no

[jboss-user] [JBoss Messaging] - Re:

2009-07-20 Thread nbhatia
timfox wrote : I'm slightly confused - I can't see where in your test program the Spring JMS Template is being used... The test program doesn't use Spring at all. All my comments about Spring were in reference to the performance testing section of the JBM manual. View the original post :

[jboss-user] [JBoss Messaging] - Re:

2009-07-20 Thread nbhatia
timfox wrote : clebert.suco...@jboss.com wrote : timfox wrote : If you post your example application on a JIRA, then someone next week can have a look at it and see why it's acting slow... | | | | | | | The test we were using to replicate the ping issue replicates this

[jboss-user] [JBoss Messaging] - Re:

2009-07-20 Thread nbhatia
My example is already posted in JIRA (see https://jira.jboss.org/jira/browse/JBMESSAGING-1677 - JmsTest-v2.zip). It obviously uses all the bad things :-), i.e. MDB, JCA, JTA. I think the best thing to do is to change the example to work in the recommended way and use it as a reference. I read

[jboss-user] [JBoss Messaging] - Re:

2009-07-20 Thread nbhatia
Well, my test is very slim - it does not do any database transactions or message processing. I even disabled the logging of the messages to make sure I am getting raw message times. The only thing that is potentially slowing down the performance is the use of XA, through the use of JCA and

[jboss-user] [JBoss Messaging] - Re:

2009-07-20 Thread nbhatia
Please don't ask me to drop MDBs :-). I have tinkered with so many options since last month (including ActiveMQ), and settled on this one - at least it is working! I figured this is the best way to get robust connection pooling. Based on this, I even gave up my easier war packaging for an ear.

[jboss-user] [JBoss Messaging] - Re:

2009-07-20 Thread nbhatia
Ok I checked out your latest tweaks on the trunk, and it seems like the problem is gone. 1 messages sent and received without any hiccups!. That's great! As a side note, it took 12 minutes for the full round trip, which translates to about 14 tps. Any tips on how this can be improved? Of

[jboss-user] [JBoss Messaging] - Re:

2009-07-20 Thread nbhatia
Clebert, to answer your question, I am running on a real Windows XP machine - not a VM. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4244056#4244056 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4244056

[jboss-user] [JBoss Messaging] - Re:

2009-07-13 Thread nbhatia
Andy and Tim, thanks for answering my questions. I guess I was not very clear on the boundaries between JBM and JBoss, so your explanation was very helpful. Since many users will use JBoss and JBM together, I suppose including that explanation in the manual would also be very useful. I have

[jboss-user] [JBoss Messaging] - Re:

2009-07-10 Thread nbhatia
Hi Andy, Thanks for the pointers. Based on your suggestions I have been able to send and receive 1000 messages on my Windows XP box without any problems! I tried to push this number upwards but it breaks at about 3000 messages - same Connection failure has been detected message. Anyway, I am

[jboss-user] [JBoss Messaging] - Re:

2009-07-09 Thread nbhatia
Clebert, I have now tried the same code (with the modifications you suggested) on 3 machines - Windows XP, Windows Vista and Windows NT. The only machine without the connection failures is Windows NT. XP and Vista seem to start giving issues after receiving 500 messages. What OS did you run

[jboss-user] [JBoss Messaging] - Re:

2009-07-09 Thread nbhatia
Hi Tim, To answer your questions: - I am not mixing jars from beta1/2 with beta 3. I have completely separate JBoss installations for JBoss 5.1.0 + JBM 2.0.0.BETA1 and JBoss 5.1.0 + JBM 2.0.0.BETA3. The JBoss installations were created by running ant in JBM's config\jboss-as directory with

[jboss-user] [JBoss Messaging] - Re:

2009-07-09 Thread nbhatia
Hi Tim, To answer your questions: - I am not mixing jars from beta1/2 with beta3. I have completely separate JBoss installations for JBoss+JBM.BETA1 and JBoss+JBM.BETA3. The JBoss installations were created by running ant in JBM's config\jboss-as directory with appropriate versions installed.

[jboss-user] [JBoss Messaging] - Re:

2009-07-09 Thread nbhatia
Sorry about the double post. I did not realize that the first one had gone to page 2. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4242737#4242737 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4242737

[jboss-user] [JBoss Messaging] - Re:

2009-07-07 Thread nbhatia
Clebert, thanks for testing my app. I will try your suggestions and let you know if it makes any difference. Quick followup question - how do I use the JCA connection factory? Is there one existing in the default configuration and what is its JNDI name? Thanks. Naresh View the original post :

[jboss-user] [JBoss Messaging] - Re:

2009-07-06 Thread nbhatia
Done. https://jira.jboss.org/jira/browse/JBMESSAGING-1677 View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4242032#4242032 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4242032 ___

[jboss-user] [JBoss Messaging] - MessagingException when deploying ear

2009-07-05 Thread nbhatia
I am getting the following MessagingException when I deploy my ear. I am using JBoss Messaging 2.0.0.BETA3. Any idea why this could be happening? (The same ear on another machine with JBM 2.0.0.BETA1 is working just fine.) | org.jboss.deployers.spi.DeploymentException: Endpoint activation

[jboss-user] [JBoss Messaging] - Re: MessagingException when deploying ear

2009-07-05 Thread nbhatia
Clebert, thanks so much for the pointers. You are correct, the default configuration in beta3 does not contain either the in-vm connector or the acceptor. After adding both, the exception went away. Just out of curiosity, is this intentional? I would prefer that the default configuration

[jboss-user] [JBoss Messaging] - Connection failure has been detected message

2009-07-05 Thread nbhatia
I am having trouble receiving messages reliably using JBM 2.0.0.BETA3 deployed in JBoss AS 5. Every once in a while I am getting a Connection failure has been detected message and then I start loosing messages. Can someone help me identify the issue? I have simplified my web application down

[jboss-user] [JBoss Messaging] - Re: Can't control queues from jconsole

2009-06-28 Thread nbhatia
Thanks Jeff. That worked for me. View the original post : http://www.jboss.org/index.html?module=bbop=viewtopicp=4240556#4240556 Reply to the post : http://www.jboss.org/index.html?module=bbop=postingmode=replyp=4240556 ___ jboss-user mailing list

[jboss-user] [JBoss Messaging] - Re: Can't control queues from jconsole

2009-06-26 Thread nbhatia
How do I look up queues in JBoss JMX console? I click jboss.messaging then name=JMSProvider,service=JMSProviderLoader, but I don't see any queues under there. At least with jconsole I was able to get to the queues quite easily. View the original post :

[jboss-user] [JBoss Messaging] - Can't control queues from jconsole

2009-06-25 Thread nbhatia
I am not able to operate on any of my queues from jconsole. For example, clicking on listAllMessages gives the following error: Problem invoking listAllMessages: UnmarshallException... Nested Exception: ClassNotFoundException: org.jboss.messaging.utils.SimpleString What am I missing? Is there a

[jboss-user] [JBoss jBPM] - Can process and task variables be defined in the process def

2008-10-14 Thread nbhatia
I understand that process and task variables exist on process instances and task instances. However, is there a way to define them in a process definition? This would allow us to create a predefined variable whenever a process instance or a task instance is created from a process definition. Is

[jboss-user] [JBoss jBPM] - Re: Can process and task variables be defined in the process

2008-10-14 Thread nbhatia
I have not seen any reference to such functionality in the manual or on the web. The jpdl schema also suggests that this is not possible. I am fairly certain that such a feature will improve the usability of jBPM as it provides an easy way to provide personality to processes and tasks at

[jboss-user] [JBoss jBPM] - Finding all running process instances for a process definiti

2008-10-07 Thread nbhatia
How do I find all running process instances for a process definition? I tried GraphSession.findProcessInstances(long processDefinitionId), but this method returns all process instances including those that have ended (potentially a very expensive query). I found the following named query in

[jboss-user] [JBoss jBPM] - Re: Finding all running process instances for a process defi

2008-10-07 Thread nbhatia
Ah ok! That was the missing link I was looking for. Still getting used to the API. Thanks so much. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4180907#4180907 Reply to the post : http://www.jboss.com/index.html?module=bbop=postingmode=replyp=4180907

[jboss-user] [JBoss jBPM] - Re: Differntiationg between types of tasks

2008-09-22 Thread nbhatia
Thanks Ronald, I will take a look at Seam/jBPM integration. BTW, I just tried to follow the examples included with jBPM Console and they do exactly what I am looking for. For example, the task_all.xhtml page shows all tasks and when any of the task links is pressed, the appropriate form is

[jboss-user] [JBoss jBPM] - Differntiationg between types of tasks

2008-09-20 Thread nbhatia
I am developing an application where I need to show a task list for the user who is logged in. Tasks can be of different types, e.g. Fill out a W2 form vs. Submit your timecard (they may belong to one of several workflows). Each task is presented as a link which takes the user to a completely

[jboss-user] [JBoss jBPM] - Re: Differntiationg between types of tasks

2008-09-20 Thread nbhatia
Ah yes, that will work :-). Thanks. It does involve an if-then-else though, so wasn't sure if I was missing some better way of doing this. View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=4177855#4177855 Reply to the post :

[jboss-user] [EJB 3.0] - Re: Persisting POJO entities defined in a different jar

2008-07-21 Thread nbhatia
Here you go... | ?xml version=1.0 encoding=UTF-8? | !DOCTYPE application PUBLIC | -//Sun Microsystems, Inc.//DTD J2EE Application 1.3//EN | http://java.sun.com/dtd/application_1_3.dtd; | application | display-nameestore-app/display-name | module |

[jboss-user] [EJB 3.0] - Persisting POJO entities defined in a different jar

2008-07-20 Thread nbhatia
I have an existing jar file containing POJO entities (no JPA annotations, no persistence.xml). I would like to persist there entities using a new EJB jar file which contains a persistence.xml and a mapping file. Is this possible? I tried it, but I am getting a InvalidMappingException: |

[jboss-user] [EJB 3.0] - Re: Accessing EJB3 without a home interface

2008-07-19 Thread nbhatia
Thanks Andrew. I was able to use @RemoteBinding to control the JNDI name. Now I would like to move this specification only to jboss.xml. However, I could not find much documentation around it. I have already looked through the following URLs | *

[jboss-user] [EJB 3.0] - Re: Accessing EJB3 without a home interface

2008-07-19 Thread nbhatia
Answering my own question :-). This is how I was able to do it: | jboss version=3.0 | | enterprise-beans | session | ejb-nameHelloWorldBean/ejb-name | jndi-nameHelloWorld/jndi-name | /session | /enterprise-beans | |

[jboss-user] [EJB 3.0] - Accessing EJB3 without a home interface

2008-07-13 Thread nbhatia
According to the EJB 3.0 Spec: anonymous wrote : | The requirement for Home interfaces has been eliminated. Session beans are no longer required to have home interfaces. A client may acquire a reference to a session bean through one of the mechanisms described in Chapter 8. | I am trying

[jboss-user] [EJB 3.0] - Re: Accessing EJB3 without a home interface

2008-07-13 Thread nbhatia
Thanks Andrew. That was the issue! So I have couple of follow up questions: 1) Is this JNDI name (helloworldejb3-app-1.0/HelloWorldBean/remote) implementation specific? Is there any way to give it a more user friendly JNDI name, such as HelloWorld? 2) Is there a nicer way to get a reference to

[jboss-user] [JBoss Seam] - Re: Service-Oriented Architecture and Seam

2007-01-08 Thread nbhatia
Thanks Gavin. I will start by creating a loosely-coupled (SOA) application and see how far I can take it. I will post on the forums in case I have questions or need clarifications. Thanks. Naresh View the original post : http://www.jboss.com/index.html?module=bbop=viewtopicp=3999148#3999148

[jboss-user] [JBoss Seam] - Re: Service-Oriented Architecture and Seam

2007-01-04 Thread nbhatia
Thanks hstang and Norman for your opinions - very informative and useful. And yeah, Norman, I will feel free to join in as soon as I can :-), currently very busy with two other open source projects. BTW, I totally agree with your comment about over-architecting applications when there is

[jboss-user] [JBoss Seam] - Service-Oriented Architecture and Seam

2007-01-03 Thread nbhatia
I am a newbie to Seam and just getting started with it. First of all, I would like to commend Gavin for putting together a bold and compelling architecture that is indeed groundbreaking. The concepts around Seam contexts and use of stateful session beans to save state indeed yield a very simple

[jboss-user] [JBoss Seam] - Showing updated entity on postback

2006-12-27 Thread nbhatia
I have created a seam application using seam-gen. I have a page that displays a master entity and its children. The page also allows the user to add a new child. However, when I click the submit button on the page to add the new child, the finally rendered page does not show this child. The

[jboss-user] [JBoss Seam] - Re: Showing updated entity on postback

2006-12-27 Thread nbhatia
Correct - the child is added fine, but the rendered page does not show the newly added child. The reason is that the Thread and Posts are fetched from the database during the Apply Request Values phase, and only later in the Invoke Application phase the new Post is inserted. Here's the source