on 08-17-2007 3:27 PM
Hi All,
I am creating a smart sync application. While creating the application that wizard does not ask to enter application name. But I herd that we need to give the same name to the war file as in the getApplicationName() method. I know that this method is in AbstractMEHttpServlet class, we need to overwrite this method. Where can I mention this application name.......
Can any body tell me where to find this ...
Thanks in Advance,
Murthy
hi murthy,
you will need to subclass the AbstractMEHttpServlet and in the implementation,
you will need to return a String for your application name on the getApplicationName()
method. In your project, if created by a wizard, you will find one subclass of the
AbstractMEHttpServlet.
Note that the applicationName should not have a space character in it.
Now when your application is ready and archived, you can then upload it into
the middleware and register your application. During registration, you will need to
specify the same mcd name as your application name.
hope this help.
jo
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
hi murthy,
the CAF (or mbs) library takes care of getting dynamically retrieving the context
name and set it as the application name. the getApplicationName implementation
is at com.sap.mbs.core.web.FrontServlet.MAM's subclasses this with
com.sap.mbs.mam.application.web.FrontServlet.
if you are to change the modification, you then have to modify it at
com.sap.mbs.mam.application.web.FrontServlet
by overriding the getApplicationMethod().
regards
jo
User | Count |
---|---|
93 | |
10 | |
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.