Finding an EJB object. Web clients vs. Java clients
From what I've read this is the process for a web client to find an EJB object: the client uses JDNI to find a reference to the EJBHome interface and then it uses the create method from this interface which makes the container to begin to work, creating an instance of the implementation class and an instance of the EJBObject interface, and returning a reference to the EJBObject, which will be used by the client to call the methods.
Are there any differences if the client is a java application and not a web client?
The Java Client talk to the server with random ports
not 80. Gives me a headache. _*why?
There's no need to get headaches about it, in fact no need to worry about it at all.
Just have the JNDI services available so you can do the lookup (which might require opening a port (or more than one) on the firewall, but that's it.
And that's no different between a standalone client and a web application client. Both need to do that JNDI lookup.
Similar Messages
-
Hi,
i have a scenario in which I need to insert as well as retrive data from a dictionary table on SAP DB.
can anyone provide me step by step procedure or code?
Plz dont give the links of bonus application,car rental application and phonebook application.
Thanks in Advance.Hi ,
inserting data into database ..
<%@ page contentType="text/html; charset=iso-8859-1" language="java" import="java.sql.*" errorPage="" %>
<%
String firstname = request.getParameter("FIRSTNAME");
String lastname = request.getParameter("LASTNAME");
String address1 = request.getParameter("ADDRESS");
String address2 = request.getParameter("ADDRESS2");
String address3 = request.getParameter("ADDRESS3");
String city = request.getParameter("CITY");
String province = request.getParameter("PROVINCE");
String memo = request.getParameter("MEMO");
Class.forName("com.mysql.jdbc.Driver");
Connection connection = DriverManager.getConnection("jdbc:mysql://localhost:3306/funeral", "root", "abc123");
ResultSet rs = null;
Statement statement = connection.createStatement();
String sql = ("INSERT INTO memory VALUES ('" + firstname + "','" + lastname + "','" + address1 + "','"+ address2 "','" address3 "','" city "','" postalcode "','" province "','" memo +"') ");
statement.executeUpdate(sql);
rs.close();
connection.close();
%>----
for retrieving data from database ...
i think first we have to
import java.sql.*;
public class SelectApp {
public static void main(String args[]) {
String url = "jdbc:msql://athens.imaginary.com:4333/db_web";
try {
Class.forName("imaginary.sql.iMsqlDriver");
catch( Exception e ) {
System.out.println("Failed to load mSQL driver.");
return;
try {
Connection con = DriverManager.getConnection(url, "borg", "");
Statement select = con.createStatement();
ResultSet result = select.executeQuery
("SELECT key, val FROM t_test");
System.out.println("Got results:");
while(result.next()) { // process results one row at a time
int key = result.getInt(1);
String val = result.getString(2);
System.out.println("key = " + key);
System.out.println("val = " + val);
select.close();
con.close();
catch( Exception e ) {
e.printStackTrace();
Try the above code ...... it will okay i think soo ..
Regards ,
Venkat P -
One EJB object accessed by two clients.
One client access a EJB object another client access the same EJB
object, when the first client releases the ejb object, then second
client loses data or gets null.
Any body knows what is happening?
Thankshey,
is this with StatefulSession Bean. I too am experiencing the same problem. When two users are trying to access the same bean the same time, one is returing null. This being a UserSession Bean, one user is getting the session object as null..
Can anyone answer this problem....
cheers,
prasad. -
How to find the hidden objects in Webi Rich client report 4.0 sp 04 ?
Hi,
How to find the hidden objects in Webi Rich client report at BI 4.0 sp 04 ?
Best Regards,
ASRHi Sai,
Go to Report Element Tab-->There you have a Tab Cell Behaviors.
When you flip between 'With Data' and 'Structure Only' under 'Design' Tab,you can see the some cells will be hide/Un hide behavior,if hiding of cells applied.
Select that cell and then Under 'Cell Behaviors'-->'Hide' Tab-->and choose Show Option.
Regards,
Venkat P -
Test web service proxy using EJB session bean client...
Hello!
I am following this blog /people/abdelmorhit.elrhazi/blog/2009/10/30/how-to-consume-an-inbound-backend-web-service-in-nwdsjboss-environment to create a EJB session bean client to access the web service proxy...
The blog is not very clear. Where should I be deploying the web service proxy and the EJB session bean (web service client) ? on the PI 7.1 ?
How to find out the URL for the wsdl ?
Thanks> The blog is not very clear. Where should I be deploying the web service proxy and the EJB session bean (web service client) ? on the PI 7.1 ?
"To deploy your web service proxy and session bean, right click on your JBoss server in the Servers view, and click on Add Remove Projects, add you ear file and click finish."
You need a JBoss server. -
Changing a method in an EJB object without recompiling EJB-Clients
Hi!
I have 4 Web (JSP) applications using the same EJBs., deployed to a BEA Weblogic application server.I want to know if there is a way to change the code in a method in one of my EJB objects (no interface change) without recompiling and redeploying my EJB-clients and Web apps.
Regards,
Per - Chr.Hello,
I have 4 Web (JSP) applications using the same EJBs.,
deployed to a BEA Weblogic application server.I want
to know if there is a way to change the code in a
method in one of my EJB objects (no interface change)
without recompiling and redeploying my EJB-clients and
Web apps.You can change the EJB's without recompiling the clients as long as the interfaces and the classes used by both the EJB's and clients are not changed.
For example, if you don't change the interfaces but change the exception implementation thrown by a method of the bean, then you have to recompile the clients with the new version of the exception class.
Kexkey -
Binding xml from web service to java objects
I would appreciate if someone can tell me where can i get information regarding
binding of xml from web service to java objects in weblogic 6.1 .
Thanks,
agHi Ag,
To my knowledge, the only information on this topic is whatever you find in the
documentation. What exactly do you want to know?
Can you post a set of specific questions?
Regards,
Mike Wooten
"ag" <[email protected]> wrote:
>
I would appreciate if someone can tell me where can i get information
regarding
binding of xml from web service to java objects in weblogic 6.1 .
Thanks,
ag -
FRM-92160: WEB Client Version too old & Vis R12.0.4 invalid objects
Hello all,
I'm installing Vision R12.0.4 in a server. That server used to contain Vision R12.0.0 which I upgraded to R12.0.4 but still had some invalid objects (I already submitted that problem in another thread). I installed the new vision instance to the same folder used to contain R12.0.0 vision after remove the old installation.
After all installation steps completed I tried to connect from my laptop but I got this error message :
FRM-92160: WEB Client Version too old
Had tried to uninstall all java from my laptop but still had the same error message. I had oracle form & report developer 6i and 10g in my laptop. Tried to remove that installation and cleaned the registry but failed to delete LEGACY_ORACLE_LOAD_BALANCER_GO_CLIENT and some other objects.
I checked the installation and found 35 invalid objects, do APPS compile and left with 32 invalid objects. Here are the invalid objects :
OWNER OBJECT_NAME
APPS IGCBG_CC_NUMBER_METHODS
APPS IGCFG_CC_NUMBER_METHODS
ORDSYS ORDIMGEXTCODEC_PKG
ORDSYS ORDIMG_PKG
SYS XMLGENFORMATTYPE
SYS LCR$_ROW_LIST
SYS LCR$_ROW_UNIT
SYS AQ$_SRVNTFN_MESSAGE
SYS AQ$_REG_INFO
SYS AQ$_REG_INFO_LIST
SYS DBMS_SUMADV
SYS AQ$_REG_INFO_LIST
SYS DBMS_XPLAN_TYPE
SYS DBMS_XPLAN_TYPE_TABLE
SYS AQ$_DESCRIPTOR
SYS AQ$_SRVNTFN_MESSAGE
SYS AQ$_EVENT_MESSAGE
SYS AQ$_REG_INFO
SYS AQ$_SRVNTFN_MESSAGE
SYS MSG_PROP_T
SYS AQ$_DESCRIPTOR
XDB servlet-list46_T
XDB servlet52_COLL
XDB servlet47_T
XDB xdbconfig58_T
XDB servlet-config-type42_T
XDB webappconfig65_T
XDB sysconfig59_T
XDB XDB$RESOURCE_T
XDB protocolconfig60_T
XDB sysconfig59_T
XDB xdbconfig58_T
XDB httpconfig64_T
XDB protocolconfig60_T
XDB httpconfig64_T
How to solve those problems? Thanks.The following views will remain invalid in 12.0.4:
APPS IGCBG_CC_NUMBER_METHODS
APPS IGCFG_CC_NUMBER_METHODS
This is documented in 12.0.4 Release Note:549389.1
under "Installation and Upgrade Customers"Thanks for the info. At least it solved 2 of my problem rows :P
anyway, I'm sorry that I can't tried to solve the problem anymore cause the storage was needed for another installation so I'd to remove this problem instance. Maybe if I can try it again I'll let you all know. Thanks -
Long time to start Java Web Client (Analyzer 6.2.1)??
Does anyone know why Analyzer(6.2.1) takes a long time to start Java Web Client. Sometime it's even take more than 5 minutes. I think it is the Java Plug-in starting on the client computer. Any solution?
The key to Analyzer 6.2.1 running correctly is the version of Sun Java Plugin. The ideal version (most optimal) is 1.3.0_02.Secondary to this if Analyzer performs OK once you are logged in then it could be down to the speed of your connection. The applet compiles at runtime (unlike Analyzer 5 which was a one time download). The delay in getting to the login screen could be this download.Hope this helps.Paul ArmitageAnalitica Ltd.www.analitica.co.uk
-
401 Error on Consuming SharePoint Versions Web Service by java client running on Unix Machine
In my organiszation I have sharepoint site of our project. I have a java client to consume Versions Web Service offered by SharePoint. The response received from web service without any issue when triggered from a client running on windows machine on
intranet.
When same java client ran from UNIX server on same intranet, it gives 401 error. Is there some different approach required for authentication while connecting from unix machine?
Thanks in advance.Hello,
Are you passing credential in code? If not then try to add using networkcredential.
If you are passing then make sure that current user is having access on SP site and your javaserver is setup for NTLM security. Here is few links for same issue which could help you troubleshoot the issue
http://stackoverflow.com/questions/8884152/ntlm-fails-when-consuming-sharepoint-web-service-from-java
http://www.pentalogic.net/sharepoint-products/reminder/reminder-manual?p=troubleshooting%2F401errors%2F401errors.htm
Hope it could help
Hemendra:Yesterday is just a memory,Tomorrow we may never see<br/> Please remember to mark the replies as answers if they help and unmark them if they provide no help -
Hi
New Installation. Sharepoint 2013, Project Server 2013 and SQL Server 2008 SP1 (another box).
When I try to create Project Web App Instance, I get
Provisioning 'PWA': Post provisioning setup failed. Exception 'Microsoft.SharePoint.SPException: Failed to find Project Site object. Are there any database mounted?
Followed by:
Failed to provision site PWA with error: Microsoft.SharePoint.SPException: Failed to find Project Site object. Are there any database mounted?
Already tried reinstalling the whole farm to no avail. Farm Admin account is used to do everything within this process.
Thanks in anticipation.Hi
I got the same error when provisioning the PWA
Log Name: Application
Source: Microsoft-SharePoint Products-Project Server
Date: 8/29/2013 11:58:12 AM
Event ID: 6966
Task Category: Provisioning
Level: Error
Keywords:
User: abc\administrator
Computer: mycomputer
Description:
Provisioning 'PWA': Post provisioning setup failed. Exception 'Microsoft.SharePoint.SPException: Failed to find Project Site object. Are there any database mounted?
at Microsoft.Office.Project.Server.Administration.ProvisionFeatureEventHandler.FeatureActivated(SPFeatureReceiverProperties properties)
at Microsoft.SharePoint.SPFeature.DoActivationCallout(Boolean fActivate, Boolean fForce)
at Microsoft.SharePoint.SPFeature.Activate(SPSite siteParent, SPWeb webParent, SPFeaturePropertyCollection props, SPFeatureActivateFlags activateFlags, Boolean fForce)
at Microsoft.SharePoint.SPFeatureCollection.AddInternal(SPFeatureDefinition featdef, Version version, SPFeaturePropertyCollection properties, SPFeatureActivateFlags activateFlags, Boolean force, Boolean fMarkOnly)
at Microsoft.SharePoint.SPFeatureCollection.AddInternalWithName(Guid featureId, Int32 compatibilityLevel, String featureName, Version version, SPFeaturePropertyCollection properties, SPFeatureActivateFlags activateFlags, Boolean force, Boolean
fMarkOnly, SPFeatureDefinitionScope featdefScope)
at Microsoft.SharePoint.SPFeatureCollection.AddInternal(Guid featureId, Version version, SPFeaturePropertyCollection properties, Boolean force, Boolean fMarkOnly, SPFeatureDefinitionScope featdefScope)
at Microsoft.SharePoint.SPFeatureCollection.Add(Guid featureId)
at Microsoft.Office.Project.Server.Administration.PsiServiceApplication.EnsureProvisioningFeature(SPSite site)
at Microsoft.Office.Project.Server.Administration.PsiServiceApplication.CreateSite(ProjectProvisionSettings provset)'.
Later found that the service application where I was trying to provision the PWA, it was not associated with the web-application. -
Add extra Business Objects to model CRM 2007: Web Client Records
Hello,
Could anyone tell me how I can add more Reference Objects in Case Management?
I copied the model CRM 2007: Web Client Records and added a new node (with for example Business Object Service Order) just like product and installations (which are visible under the reference objects)
I created a new element type under SCMG_SP_CASE_RECORD --> Z_CRM_SPS_CASE_RECORD and in the customizing we attached the model to the case type under Case Management --> Extended Customizing --> Process Actions --> Assign Action Profile to Case Type.
Still the new Business Object in the model isn't visible under Case Management in de WebUI.
Could anyone tell me if I'm missing something or is there a config guide available how to add more business objects?
Looking forward to your replies.
Kind regards,
Joost ChristenhuszEddie,
Are you familiar with Access Control Engine (ACE)?
Go through this -> http://help.sap.com/saphelp_crm50/helpdata/en/04/0177f9bb67ac4cafb84bb4d4c1d8fc/content.htm.
and https://websmp205.sap-ag.de/~sapdownload/011000358700002121742006E.
Authorizations in CRM are controlled through ACE.
Hope this helps.
Amar. -
Java error in session initializations - IC web client
Hi All,
When i access the CRM IC web client through browser (BSP page), Page is loading but inside the page im getting the following error.
" Java error in session initialization [Error message: abcj2systemid.domain.com: CALL_METHOD(SYS_METHODNAME) sessionid = SOAP Runtime Execption; CSoapExceptionTransport : HTTP recive failed with exception communication_failure ( Message Class CRMM_IC_FRAMEWORK- message number 106).
Pl suggest
Thanks
PRadeepHi Sai,
Kindly make sure that you have JREE1.4.0 and not above for your error.
Secondly, you are getting the first message because when you are closing your application by clicking onto the close at top, it doesnt log out your agent from the Webclient. The correct approach would be to close using the path Menu Bar> File> Close
The channels are not available because you have not maintained the queues and channels for your system. The same is do be done in SAP Easy Acess> Webclient> Additional Settings. It is also available in the Best Practices C78.
The link for the same is
http://help.sap.com/bp_crmv250/CRM_DE/index.htm
Hope this would help.
Regards,
Rekha Dadwal
<b>You gain a point for every point that you reward. So reward helpful answers generously</b> -
Java error in session initialization Error - When calling IC Web client
Hi All,
When i access the CRM IC web client through browser (BSP page), Page is loading but inside the page im getting the following error.
" Java error in session initialization [Error message: abcj2systemid.domain.com: CALL_METHOD(SYS_METHODNAME) sessionid = SOAP Runtime Execption; CSoapExceptionTransport : HTTP recive failed with exception communication_failure ( Message Class CRMM_IC_FRAMEWORK- message number 106).
Pl suggest
Thanks
PRadeephi Indhra,
did you check, whether the services are active:
/Nsicf
/default_host/sap/bc/bsp/sap/
sam_sess_queue and sam_notifying
and the polling profile is defined with polling frequence:
/Nspro
->Interaction Center WebClient
->Basic Functions
->Define Context Area Profile
there "Define Polling Profile"
best wishes,
Hakan -
XI 3.1 WebI client Java and Plug ins
Hello All,
Can anyone confirm which version of Java, or any other plug-ins or downloads, will need to be installed on a Webi Client (running on Windows 2000 and XP).
Please reply asap.
Regards,
KrishnaHello,
XI 3.1 WebI client (applet & Rich client) runs with JRE 1.6. No other plug-in or download is required (besides, anything necessary to run the client is installed with the BOE client install, incl. required JRE).
Hope that helps,
David.
Maybe you are looking for
-
Are conversations within an app such as text free stored in the cloud?
THanks for any info or help
-
I have an AP 1242. Is there a command to see what users are using this access point? regards and thanks
-
I am trying to import a very large file and I am getting this error: com.plumtree.openfoundation.io.XPIOException: Posted content length of 41225780 exceeds limit of 20971520 com.plumtree.openfoundation.util.XPException.GetInstance(XPException.j
-
Problem with pop out window in my smarter mail
For work I have to use SmarterMail. When I go to create a new email or reply to someone, a new smaller window pops out for me to create my message. The problem is.... well the text is not right. Kind of hard to describe so I have cut and paste an exa
-
Hi Experts,Good Morning every one! We have a report for rejection cycle. In that report we would like to add certain new fields,like Item price from Info Record, Unrestricted use Stock Quantity and Blocked Stock Quantity for that item. For these data