This content has been marked as final.
Show 3 replies
-
1. Re: Invalidate cache for an Entity Bean?
mikolg Mar 27, 2007 11:48 PM (in response to sonu131)Hello sonu131
Did you find a solution? -
2. Re: Invalidate cache for an Entity Bean?
sonu131 Mar 28, 2007 10:43 AM (in response to sonu131)No, I did not find any solution so far. was looking at some of others queries/answers here but did not get any idea wether it is possible or not.
-
3. Re: Invalidate cache for an Entity Bean?
mikolg Apr 1, 2007 11:39 PM (in response to sonu131)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"