Hi
I removed entity bean (ejb2) from the cache in the following way:

rmiAdaptor = (RMIAdaptor) context.lookup("jmx/invoker/RMIAdaptor");

rmiAdaptor.invoke(new ObjectName(
                
"jboss.j2ee:jndiName=ENITITY-BEAN-JNDI,plugin=cache,service=EJB"),
                "remove", new Object[] { id },
                new String[] { "java.lang.String" });


just change ENITITY-BEAN-JNDI to your name.

Note: check that the following service extists in the jms-console
"jndiName=ENITITY-BEAN-JNDI,plugin=cache,service=EJB"

View the original post : 
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4033575#4033575

Reply to the post : 
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4033575
_______________________________________________
jboss-user mailing list
[email protected]
https://lists.jboss.org/mailman/listinfo/jboss-user

Reply via email to