Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp

kapil munjal

Ranch Hand
+ Follow
since May 11, 2004
Cows and Likes
Cows
Total received
0
In last 30 days
0
Total given
0
Likes
Total received
0
Received in last 30 days
0
Total given
1
Given in last 30 days
0
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by kapil munjal

Thanks Paul for you reply. Yes, it was the bespoke word which I could not understand.
5 years ago
Please share some understanding on Bespoke java code
5 years ago
I have come across a new term in java coding, which is Bespoke Java Coding. I currently have no idea about this, can someone throw some light on this.

What is Bespoke Java coding, how to do it and what are its benefits?

5 years ago
I am also looking for Star team integration with Eclipse. But my issue is that I have Star Team 2005 and Borland doesn't support 2005 integration with Eclipse.

Can somebody help me in achieving Eclipse integration with Star Team 2005.
But if there are dynamic values and I am not aware of the number of record, then how can I do this.

Regards
Kapil Kumar
8 years ago
JSF
Well, I didn't setup these 2 policies. These 2 applications were running on different JBoss instances. And their internal functionality uses "jbossmq" for EJBs.

Application 1, which has an MDB used for Message Queuing.

If I keep the "jbossmq" policy with Application 1, then application 2 doesn't work and it throws "EJB spec violation" error.

If I keep the "jbossmq" policy with Application 2, then application 1 doesn't work and it throws "XAConnectionFactory not bound" error.

Now, the situation is that I need make these applications work on single JBoss instance.

Thanks
9 years ago
Hi,

I need some guidance related to login-config.xml configuration.

I have 2 application EAR which needs to be deployed on the same instance. But these applications are using different "jbossmq" configuration. One application is using Database and other is using file state service.

Please tell me how I can change one application to use File state service instead of Database.

Application 1 -

It uses Database settings in the "jbossmq" application policy. This application has one MDB 2.1.


Application 2 -

It uses file-state service in the "jbossmq" application policy. This application has Entity beans 2.1.



I have tried changing the Application 1 to use file-state-service. But not able to make it work. I used the steps described in the jboss documentation.

Thanks
9 years ago
I need to test the performance of the application with the queues. But it would be suffice if I just try sending 400 requests to send messages to the queue and receive the reply.

Regards
Kapil
9 years ago
Hi,

I have been trying to test JBoss Queue implementation. Can someone let me know if there is some way to test the queue implementation with JUnit. Or if there is some other mechanism to test the queue, then please let me know.

Regards
Kapil
9 years ago
Hi,

I am trying to make communication between two web applications through JBoss Queues. I have been able to successfully pass on the MessageObject and receive the response. But whenever a cycle is complete, and I close the QueueConnection, it gives the error

2009-07-03 11:25:27,143 DEBUG [org.jboss.mq.il.uil2.SocketManager] Failed to handle: org.jboss.mq.il.uil2.msgs.CloseMsg15918731[msgType: m_connectionClosing, msgID: -2147483628, error: null]
java.io.IOException: Client is not connected
at org.jboss.mq.il.uil2.SocketManager.internalSendMessage(SocketManager.java:265)
at org.jboss.mq.il.uil2.SocketManager.sendReply(SocketManager.java:239)
at org.jboss.mq.il.uil2.ServerSocketManagerHandler.handleMsg(ServerSocketManagerHandler.java:128)
at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.java:396)
at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:392)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:761)
at java.lang.Thread.run(Thread.java:595)
2009-07-03 11:25:27,174 DEBUG [org.jboss.mq.il.uil2.SocketManager] Failed to send error reply
java.io.IOException: Client is not connected
at org.jboss.mq.il.uil2.SocketManager.internalSendMessage(SocketManager.java:265)
at org.jboss.mq.il.uil2.SocketManager.access$800(SocketManager.java:52)
at org.jboss.mq.il.uil2.SocketManager$ReadTask.handleMsg(SocketManager.java:409)
at org.jboss.mq.il.uil2.msgs.BaseMsg.run(BaseMsg.java:392)
at EDU.oswego.cs.dl.util.concurrent.PooledExecutor$Worker.run(PooledExecutor.java:761)
at java.lang.Thread.run(Thread.java:595)
2009-07-03 11:25:27,190 DEBUG [org.jboss.mq.il.uil2.SocketManager] End ReadTask.run
2009-07-03 11:25:27,190 DEBUG [org.jboss.mq.il.uil2.SocketManager] End WriteTask.run
2009-07-03 11:25:27,190 DEBUG [org.jboss.mq.il.uil2.UILClientILService] Stopping
2009-07-03 11:25:27,190 ERROR [STDERR] After sending the message to the queue.
2009-07-03 11:25:27,190 DEBUG [org.jboss.mq.il.uil2.ServerSocketManagerHandler] Exiting on IOE
java.net.SocketException: socket closed
at java.net.SocketInputStream.socketRead0(Native Method)
at java.net.SocketInputStream.read(SocketInputStream.java:129)
at java.io.BufferedInputStream.fill(BufferedInputStream.java:218)
at java.io.BufferedInputStream.read(BufferedInputStream.java:235)
at org.jboss.util.stream.NotifyingBufferedInputStream.read(NotifyingBufferedInputStream.java:79)
at java.io.ObjectInputStream$PeekInputStream.peek(ObjectInputStream.java:2205)
at java.io.ObjectInputStream$BlockDataInputStream.readBlockHeader(ObjectInputStream.java:2385)
at java.io.ObjectInputStream$BlockDataInputStream.refill(ObjectInputStream.java:2452)
at java.io.ObjectInputStream$BlockDataInputStream.read(ObjectInputStream.java:2524)
at java.io.ObjectInputStream$BlockDataInputStream.readByte(ObjectInputStream.java:2673)
at java.io.ObjectInputStream.readByte(ObjectInputStream.java:874)
at org.jboss.mq.il.uil2.SocketManager$ReadTask.run(SocketManager.java:317)
at java.lang.Thread.run(Thread.java:595)
2009-07-03 11:25:27,190 DEBUG [org.jboss.mq.il.uil2.SocketManager] End ReadTask.run
2009-07-03 11:25:27,190 DEBUG [org.jboss.mq.il.uil2.SocketManager] End WriteTask.run



My code which is handling the communication is



Please help me with this error. And also let me know if it is required to close the QueueConnection every time a communication cycle is complete.

Regards
Kapil
9 years ago
I am also facing the same issue. Please reply if anyone has the solution to the problem.
9 years ago
I am also facing the same issue. Please provide some link or tell us how to do it.
9 years ago
Thanks Jeanne. I think we will have to find all the steps.

Jeanne Boyarsky wrote:This is a very specific question. It's likely nobody has this experience.

9 years ago
Anybody who has worked on migrating applications from JBoss to OAS. Please reply!
9 years ago
Any moderator comments on this topic?
9 years ago