I've been reading the tutorial on http://wiki.jboss.org/wiki/Wiki.jsp?page=WebservicesAndEJB3
about using EJB3 in a web service project.
What happens in this tutorial is that a EJB2.1 Session Bean is used as an intermediate control to the underlying EJB3 beans.
So I have an EJB2.1 SB that speaks to a (local) EJB3 SB that handles en persists EJB3 Entity beans.
Now, the thing is:
I made a wsdl file (manualy) and I used a XML Schema in the type definition.
In one function the wscompile task generates an class that has the same name as one of the entity beans. And in fact, they are exactly the same except for the package-name.
Do I have to convert between the 2 types programmaticaly? Or is there a way to simplify this process?
My second idea was to have the packageName that corresponds to the EJB3 Entity beans in the wscompile config.xml. That way, the beans that are generated by wscompile would have the same packagename as the entity beans. But that didn't work out quite allright.
Maybe if I talk to the underlying EJB3 SB I should use the remote interface so I can "narrow" it to the generated (wscompile) classes.
Any ideas or experiences around this subject?