[jboss-user] [EJB/JBoss] - Re: Invalidate cache for an Entity Bean?

mikolg do-not-reply at jboss.com
Sun Apr 1 23:39:05 EDT 2007


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



More information about the jboss-user mailing list