on 12-07-2006 7:50 AM
Hi,
I am sending message from Java Proxy using one jsp(which sends data to application class).
But when I click on send button all the values in input box gets cleared but the message is not posted to XI as I can not see any message in moni.
What should be the problem?
I am using following code:
p.put(Context.INITIAL_CONTEXT_FACTORY,"com.sap.engine.services.jndi.InitialContextFactoryImpl");
p.put(Context.PROVIDER_URL, "xiserver:50004");
p.put(Context.SECURITY_PRINCIPAL, "xiuser");
p.put(Context.SECURITY_CREDENTIALS, "pwd");
I just want to know whether server and user here should be from XI or what and whether this user should have administrator rights?
Thanks.
Hi Stefan,
I checked in adapter monitoring ,message is not there.
I guess there is not connection establishment in j2ee and XI ,hoe to resolve it?
Am I doing anything wrong in my coding?
Can you give me stepwise procedure for calling ejb from jsp and then that ejb will hit XI?
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check these articles:
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-connectivity_adapters_integration/java%20proxies%20and%20sap%20xi%20-%20the%20inside%20story,%20Part%201.pdf">Java Proxies and SAP XI - The Inside Story, Part 1</a>
<a href="https://www.sdn.sap.comhttp://www.sdn.sap.comhttp://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/xi/xi-connectivity_adapters_integration/java%20proxies%20and%20sap%20xi%20-%20the%20inside%20story,%20Part%20II.pdf">Java Proxies and SAP XI - The Inside Story, Part 2</a>
Regards
Stefan
Hi Stefan,
I have done same coding in my application class and in my web.xml also.
But still not getting message.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
When you call the Java Proxy Bean from a JSP which runs on the same J2EE server, the call has to be like this:
Context ctx = new InitialContext();
FlightBookHome queryOutHome = (FlightBookHome) ctx.lookup("java:comp/env/ejb/FlightBookBean");
FlightBook queryOutRemote = queryOutHome.create();
The variable ejb/FlightBookBean has to be maintained in the descriptor web.xml
You should do any error handling and write the exceptions to the output of your JSP.
Regards
Stefan
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Open the Web Application Server console to check for any exceptions. In jsp page you cannot see any errors.
Check if your able to make InitialContext and lookup the bean.
Regards,
Uma
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The username used should have the J2EE admin rights and XIAPPLUSER rights.
Just check whether u can login to J2EE Visual admin using that username and Password.
Regards,
P.Venkat
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
check if the user provided by you has the rights and roles as defined in this link - http://help.sap.com/saphelp_nw04s/helpdata/en/d4/d12940cbf2195de10000000a1550b0/content.htm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
88 | |
10 | |
10 | |
9 | |
7 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.