Help coderanch get a
new server
by contributing to the fundraiser

Anoop Nair

Ranch Hand
+ Follow
since Oct 29, 2008
Merit badge: grant badges
For More
Cows and Likes
Total received
In last 30 days
Total given
Total received
Received in last 30 days
Total given
Given in last 30 days
Forums and Threads
Scavenger Hunt
expand Ranch Hand Scavenger Hunt
expand Greenhorn Scavenger Hunt

Recent posts by Anoop Nair

Figured out the issue.

The 2nd approach works. The issue was with my invocation of the deleteAllQueuedMessages message. The method takes a boolean argument which indicates the messages should be moved to the Exception Destination. I was not passing this argument !!!

I corrected the implementation as below and it works now.
Hi All,

I want to delete all the messages in a queue configured in Websphere 8.5 SIB. Below are two approaches I tried, but none of them seem to be working and each throws a different exception. Can someone please advise on what is the correct way to achieve this.

Approach 1

This approach throws the below exception. WebSphere:type=SIBQueuePoint,name=jms.queue.MY_QUEUE

Approach 2

This approach throws the below exception Target method not found:

Solved the issue. I wrote a message reciever for the queue with messageId as the selector.

I am writing an API to delete messages from Jboss service integration bus. I need to provide methods for deleting individual messages and also all the messages (purge) in the queue.

I tried finding the list of operations available on a queue using JMX. Below is the code I used for getting the list of operations. It has an operation "removeAllMessages" which would delete all the messages in the queue. However, I did not find any operation that would help me delete individual messages from the queue. Also, I found the QueueBrowser API of JMX. But the specification says that the class does not delete messages from the queue.

Please let me know how I can delete individual messages from the queue.
Thanks Mark.

That works perfectly now.

Although, I still do not understand why it was throwing an exception when the aop config was present in the same file.
12 years ago
Hi All,

I have a Spring 3.0 MVC application that works fine. I want to introduce AOP in this application. However on doing this I am getting the below exception.

Below is the application code:


Model interface and implementation:

Can someone please point out what I am doing wrong with this ??
12 years ago
Hi All,

I have a web service client. I am using Axis 1.4.

I want to setup the connection timeout interval in my client. Can someone tell me how I can do this?

Also, I want to handle the timeout exception that is thrown so that I can redirect it to an appropriate handler.
13 years ago
Hi All,

I have a webpage in which there is a "Save" button, which is supposed to save the entire page in PDF format.
The webpage has images, text and also CSS.

I tried using flying saucer and iText. However when using this, the background images (done via CSS) are not coming in the PDF file.

Below is the code I am using. Is there a better way to do this where the entire page can directly be converted to PDF format.

Thanks Peter,

There was indeed a firewall issue. Seems like the IP and port combination was not open.

Personally, I would not mix the two methods, nor would I bind any server to when using multiple IP address. In other words, I would either:

a) bind every server to and use different ports
b) bind each server to its own distinct IP address (each using the same ports) - this option requires a separate physical IP address for each server

My requirement is that only one of the servers should be listening on both the IPs, the others shouldnt be. Could you please point me to some article so that I can understand this ?
13 years ago
When running DF2 with -b <IP2>, on stopping the server I get the following exception:

Exception in thread "main" javax.naming.NameNotFoundException: jmx not bound
at org.jnp.server.NamingServer.getBinding(
at org.jnp.server.NamingServer.getBinding(
at org.jnp.server.NamingServer.getObject(
at org.jnp.server.NamingServer.lookup(
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(
at sun.reflect.DelegatingMethodAccessorImpl.invoke(
at java.lang.reflect.Method.invoke(
at sun.rmi.server.UnicastServerRef.dispatch(
at sun.rmi.transport.Transport$
at Method)
at sun.rmi.transport.Transport.serviceCall(
at sun.rmi.transport.tcp.TCPTransport.handleMessages(
at sun.rmi.transport.tcp.TCPTransport$ConnectionHandler.run0(
at sun.rmi.transport.tcp.TCPTransport$
at java.util.concurrent.ThreadPoolExecutor$Worker.runTask(
at java.util.concurrent.ThreadPoolExecutor$
at sun.rmi.transport.StreamRemoteCall.exceptionReceivedFromServer(
at sun.rmi.transport.StreamRemoteCall.executeCall(
at sun.rmi.server.UnicastRef.invoke(
at org.jnp.server.NamingServer_Stub.lookup(Unknown Source)
at org.jnp.interfaces.NamingContext.lookup(
at org.jnp.interfaces.NamingContext.lookup(
at javax.naming.InitialContext.lookup(
at org.jboss.Shutdown.main(

13 years ago
Thanks Jaikiran and Peter for your responses.

I am using JBoss AS 4.3 on Linux.

Three JBoss instances are running on the same system on different ports. The system has two IP addresses, IP1 and IP2. Ex. IP1 = and IP2 =

Instance1 is a clustered server (CL1). The binding works with this one. The other two are instances of the default server (DF1 and DF2). The binding works for one of the default servers (DF1).

After starting DF2 when I do, the console doesnt come up. However, if I do it comes up.

The server is started using command with the below arguments

I am not able to figure out what could be the difference in the configuration of the two default servers.

I also tried running DF2 with -b IP2.
However, this also doesnt work. In this case the console doesnt come up on doing trying IP1 as well, which was expected.
13 years ago
Hi All,

I had previously posted here to know how I can make JBoss listen on two IPs.

I tried that and it worked. However, when I try the same thing on another JBoss instance it doesnt work.
The only difference I noted was that the first one was a clustered server whereas the second one is a default server.

Am I missing something here ?
13 years ago
Thanks Jaikiran.

I have made the server listen on now.
13 years ago
Hi Jaikiran,

Thanks for your reply.

I tried this. But it overwrites the IP specified in bind.address.
And so it listens only on the IP specified by -b.
13 years ago
I tried setting the run parameter bind.address.
If I set it to, it works. But then it listens to all the IPs of the system. Run Parameters Explained

Is there a way to specify specific IP address ?

13 years ago