Hi again,
Is it not possible to return a map/hashmap from the ejb web service? I'm using
an axis client for that as below Call call= (Call) service.createCall();
|call.setTargetEndpointAddress( new
java.net.URL(endpoint) );
|call.setOperationName(
That worked! Much thanks
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4170582#4170582
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4170582
___
jboss-user mailing list
jboss-
"jaki" wrote :
|
| | User u = new UserManagerBean().check(id,pass);
| |
| |
|
|
I believe UserManagerBean is a EJB. You should never be instantiating an bean,
in your code. Instead you should be "looking up" the b
I posted the wrong code in the 2nd code section in the above post. Below is the
correct one:
@WebMethod
| public String checkLogin(String id, String pass)
| {
| User u = new UserManagerBean().check(id,pass);
|
| if(u==
Method in the stateless bean:
@SuppressWarnings("unchecked")
| public User check(String login,String mdp)
| {
| Collection users = new HashSet();
|
| users = em.createQuery( "SELECT u " +
|
Post the code and the entire exception stacktrace.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4170360#4170360
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply&p=4170360
___
jbos
Thanks, that worked!
But I have got another problem now. To avoid changing the existing stateless
beans, for each, I have created a wrapper sort of stateless bean having the web
service annotations and calling the methods in the existing beans. (This had to
be done since the client app can't re
Add an @WebService annotation to the EJB3 class, and an @WebMethod annotation
to each method you want to export.
View the original post :
http://www.jboss.com/index.html?module=bb&op=viewtopic&p=4170106#4170106
Reply to the post :
http://www.jboss.com/index.html?module=bb&op=posting&mode=reply