Ole,

After restarting JBoss (2.2.1 with Jetty), the getEJBMetaData().getHomeInterfaceClass() works the way it should again.
I am also confused, why before restarting JBoss it was acting so strange!

Now it seems to work fine.

Thanxs a lot for your help!

Best regards

Lorenzo

Ole Husgaard wrote:
[EMAIL PROTECTED]">
Lorenzo Resta wrote:
I have tried the getEJBMetaData().getHomeInterfaceClass() method in JBoss,
but all i am getting here is the "$Proxy2" class name again,
so i suspect that the mentioned method returns the class that implements
the Home interface.

I dont think it should (or does), and I am a bit puzzled by
this. Just tried re-running the jbosstest CTS tests from the
latest CVS MAIN branch, and the testContainerObjects test
passes as usually:

Get the Meta-data object...OK
Probe the Meta-data object:
Home Interface : org.jboss.test.cts.interfaces.CtsBmpHome
PrimaryKey : org.jboss.test.cts.keys.AccountPK
Remote Interface: org.jboss.test.cts.interfaces.CtsBmp
Meta-data OK

Just for reference, the code that prints the above looks like:

System.out.print("Get the Meta-data object...");
EJBMetaData md = anotherHome.getEJBMetaData();
assert(md != null);
System.out.println("OK");
System.out.println("Probe the Meta-data object:");
String homeInterface = md.getHomeInterfaceClass().getName();
String primaryKey = md.getPrimaryKeyClass().getName();
String remoteInterface = md.getRemoteInterfaceClass().getName();
System.out.println(" Home Interface : " + homeInterface);
System.out.println(" PrimaryKey : " + primaryKey);
System.out.println(" Remote Interface: " + remoteInterface);
assert(homeInterface.equals("org.jboss.test.cts.interfaces.CtsBmpHome"));
assert(primaryKey.equals("org.jboss.test.cts.keys.AccountPK"));
assert(remoteInterface.equals("org.jboss.test.cts.interfaces.CtsBmp"));
System.out.println("Meta-data OK");

This test only tests the metadata for entity beans.

With which kinds of beans do you have these problems?


Best Regards,

Ole Husgaard.

_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
http://lists.sourceforge.net/lists/listinfo/jboss-user




Reply via email to