It looks like xml code like this:
still prepares the queue with jndi name queue/AA, not queue/BB - that is what I see in jmx-console
You are confusing two different things.
In jmx you defined the queue as queue/AA
in jndi you defined it as queue/BB
Use jboss:service=JNDIView (the list operation) to view jndi