hi,
I have 2 entities CustomerLogin and CustomerProfile wth 1:N relation. Both local and
remote interfaces are generated for them.
ServiceLocator locator = ServiceLocator.getInstance();
CustomerProfileHome cpHome = (CustomerProfileHome)
locator.getHome(CustomerProfileHome.JNDI_NAME, CustomerProfileHome.class);
try{
CustomerProfile cp = cpHome.create(cpvo);
getCustomerProfiles().add(cp); // exception line
}
This is my CustomerLogin bean, when i create new CustomerProfile and try to add. it
throws the following error.
I have created a REMOTE CustomerProfile. Then why is it expecting a LOCAL
CustomerProfile??? Any clues.
BTW, the getCustomerProfiles() return empty collection in this case.
Caused by: java.lang.IllegalArgumentException: Object must be an instance of
com.fz.customer.interfaces.CustomerProfileLocal, but is an isntance of
[com.fz.customer.interfaces.CustomerProfile]
at org.jboss.ejb.plugins.cmp.jdbc.bridge.RelationSet.add(RelationSet.java:117)
TIA
Navjot Singh
Jboss 3.2.3
View the original post :
http://www.jboss.org/index.html?module=bb&op=viewtopic&p=3839770#3839770
Reply to the post :
http://www.jboss.org/index.html?module=bb&op=posting&mode=reply&p=3839770
-------------------------------------------------------
This SF.Net email sponsored by Black Hat Briefings & Training.
Attend Black Hat Briefings & Training, Las Vegas July 24-29 -
digital self defense, top technical experts, no vendor pitches,
unmatched networking opportunities. Visit www.blackhat.com
_______________________________________________
JBoss-user mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/jboss-user