[jboss-user] [EJB 3.0] - Re: best way to expose ejb3 as web service?

2008-08-18 Thread jaki
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(

[jboss-user] [EJB 3.0] - Re: best way to expose ejb3 as web service?

2008-08-14 Thread jaki
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-

[jboss-user] [EJB 3.0] - Re: best way to expose ejb3 as web service?

2008-08-14 Thread jaikiran
"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

[jboss-user] [EJB 3.0] - Re: best way to expose ejb3 as web service?

2008-08-13 Thread jaki
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==

[jboss-user] [EJB 3.0] - Re: best way to expose ejb3 as web service?

2008-08-13 Thread jaki
Method in the stateless bean: @SuppressWarnings("unchecked") | public User check(String login,String mdp) | { | Collection users = new HashSet(); | | users = em.createQuery( "SELECT u " + |

[jboss-user] [EJB 3.0] - Re: best way to expose ejb3 as web service?

2008-08-13 Thread jaikiran
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

[jboss-user] [EJB 3.0] - Re: best way to expose ejb3 as web service?

2008-08-13 Thread jaki
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

[jboss-user] [EJB 3.0] - Re: best way to expose ejb3 as web service?

2008-08-12 Thread PeterJ
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