on 07-08-2009 4:12 AM
Hi All ,
I am working on EJB models. I have done all required settings at EJB session and application dc and deployed EJB Dcs
successfully. When i am adding application dc as used dc i can see public part which i have created for EJB model. when i create EJB model my input parameterts are not showing exact names. they are shown as agr1 ,arg2 etc. i have worked earlier
on EJB models but never faced such issue. What can be reason for this? How to resolve this?
Thnx in advance.
Regards
Kavita
Hi Kavita,
Which model you are trying to create? Is it webservice model? or Adaptive webservice model?
You mentioned that you have added a public part. Are you consuming the session bean directly in the webdynpro with out creating any model?
Input parameters not showing exact names?
Do you mean that, when you are trying to call the business method of the sessio bean, are you not getting help with the exact names?
Please clarify my queries.
Regards,
Jaya.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ,
I am using Enterprise Java Bean Model(EJB Model). For EJB model we need to create public part in application and need to add client of session bean DC.
At web Dynpro , when i am creating model i am getting parameters names as arg1 , arg2 . I am not getting exact name those i hv set in session.
Regards
Kavita
Hi Kavitha,
Are the input parameters are inside a bean? If so, did u generate the getters and setters with proper name?
Go thru this pdf: This might give some pointer
Regards,
Jaya.
Hi,
Check the procedure you followed in the below links if helpful:
http://help.sap.com/saphelp_nwce10/helpdata/en/45/dd45e4bc295595e10000000a1553f7/content.htm
Regards,
Charan
hi ,
I have already gone through tutorials for creating EJB model. I have again checked all steps for creation. Even i tried to create new EJB module DC and aaded it to same Enterprise application n tried to create EJB model for this newly created Dc. For this DC i can see all input parameters names as it is , i.e. the names which i hv defined in session bean method. still not able to trace problem in case of my older EJB mudule DC
I have added single method public String test (String fName, String lName); for test purpose
public String test(String fName , String lName ){
try{
return fName" "lName;
}
catch(Exception e){
e.printStackTrace();
return "error";
}
}
when i create model instead of showing fName and lName , its showing arg0 and arg1
Hi Kavitha,
There will be four interfaces associated with session Bean.
Local, LocalHome, Remote and RemoteHome
For example EmployeeSessionBean has
EmployeeSessionLocal
EmployeeSessionLocalHome.
EmployeeSession
EmployeeSessionHome
EmployeeSessionLocal & EmployeeSession interfaces will also contain all the session beans business methods declarations.
So, What I am asking was, Please check the method declaration in the local / home interfaces and confirm the input prameters from there.
My guess was, the model will read the input parameters from the local interface / remote interface.
Hope this clarifies!
Regards,
Jaya.
Hi,
There is a special class called javax.ws.WebParam which includes special tags to handle EJB WS parameters:
public String test(@WebParam(name = "fName")String fName , @WebParam(name = "IName")String lName ){
try{
return fName+" "+lName;
}
catch(Exception e){
e.printStackTrace();
return "error";
}
}
Regards,
Wesley
Hi ,
In that case also its not working. If i create EJB model at my end its doing well. but when i check in and if other developer
tries to create he is getting again arg0 , arg1 etc. currently i am checking out that web dynpro dc on my pc creating models and check in. Then after check in others are checking out at their end nad creating model.
Regards
Kavita
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.