Extreme,
Please check two things for me and let me know.
1) Compare your .settings/org.jboss.tools.jst.web.xml against your co-workers. Does your co-worker have this file? If he/she does, it might point to libraries or JBoss runtimes that are located in different directories than what you checked into SVN with the project.
2) Verify that your co-worker's copy of JBoss Tools has the right project-level properties. I.e., check the Seam settings and verify that his/her Seam run-time path is right.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4138049#4138049
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4138049
Hello. Up to now I was able to access a EJB from a pure Java client with code similar to this one:
Context context = new InitialContext();
| MyBeanRemote beanRemote = (MyBeanRemote)context.lookup("MyBean/remote");
But how do I access an EJB from a servlet? Please note that the code above is NOT working within a servlet (at least not here) !! It will throw this exception:
java.lang.ClassCastException: $Proxy141 cannot be cast to com.myself.MyBeanRemote
Any help is appreciated! :)
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4138046#4138046
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4138046
"CMP Entity Bean"? Is this a EJB 2.x question or a EJB3/JPA entity question? I'll assume the latter due to this forum being "EJB 3.0".
See entityManager.merge() - it merges an unattached JPA entity bean meaning whatever values are in the bean will be put into the DB. It doesn't merge one particular field - the entire bean is merged. I don't know of a way to force only a single field (dirty or not) to be merged into the DB - I don't think its possible, short of you writing your own JPQL UPDATE query and executing that explicitly.
View the original post : http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4138034#4138034
Reply to the post : http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4138034