on 01-23-2007 4:59 AM
Hi SDN,
I am working on Web Dynpro project, till now we are working with SAP R/3 as backend database.
Now we need to store the data in sql server along with SAP R/3 with the same project.
Our people suggested to use EJBs.
I need to know how to create EJB for web dynpro if any specification.
how to deploy it in sneak previw
How to call that EJB in the application.
I have sneak preview in sys1,
Sql server in sys 5,
SAP R/3 in sys2,
NWDS in sys-j2e.
please suggest any PDF exists.
help me in this regard.
Thanks in Advance.
Sai.K.K
Go through the following posts.
https://forums.sdn.sap.com/click.jspa?searchID=851468&messageID=1486826
https://forums.sdn.sap.com/click.jspa?searchID=851468&messageID=1531194
https://forums.sdn.sap.com/click.jspa?searchID=851468&messageID=2393486
I have submitted JavaBeanGenerator sample code which will create a bean out of the SAPDB tables.Please find the link below.
Regards, Anilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Sai,
you can create the datasource in two ways
1. using visual admin, goto /<Instance>/server<no>/Services/JDBC Connector/
select runtime tab and then select datasource and create the datasource
and also u can create an alias and use it for ur EJB application
2. creating an datasource alias using develpoer Studio (Enterprise Application Project), this will connect to the default Database installed with engine
Regards
PP
Hi Pavan,
I searched the forums with respect to that.
1) I created a J2EE server component-->library named sqljars.
Added external jars to the sqljars properties.
Built library archive.
Deployed it to my server.
2) Created a webdynpro project named sample.
In the view controller init method I had code
Class.forName("com.microsoft.jdbc.sqlserver.SQLServerDriver"); Connection conn = DriverManager.getConnection("jdbc:microsoft:sqlserver://mid:1433;DatabaseName=WSO","sa","sa");
Added the sqljars project in the javabuild path of sample project.
3) placed the required jars in java lib,
placed the required jars in usr\sap\J2E\JC00\j2ee\admin\lib,
Still getting Classnot found exception : java.lang.ClassNotFoundException: com.microsoft.jdbc.sqlserver.SQLServerDriver
Regards,
Sai.k.k
> Still getting Classnot found exception :
> java.lang.ClassNotFoundException:
> com.microsoft.jdbc.sqlserver.SQLServerDriver
The error can be fixed if you use SAP driver for SQL Server:
driver: 'com.sap.nwmss.jdbc.sqlserver.SQLServerDriver'
url: 'jdbc:nwmss:sqlserver://mid:1433;DatabaseName=WSO'
BR
Sergei
Hi Sai,
I feel you have not registered th driver,
go through the following link for registering the driver and for creating datasource alias http://help.sap.com/saphelp_nw04/helpdata/en/b0/6e62f30cbe9e44977c78dbdc7a6b27/content.htm
Regards,
PP
I have created a driver in visual admin, later created a data source with this driver.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
for accessing the sqlserver we need to make sure that data source is created or not if not create the data source in visual administrator,and then come to NWDS,
There are two ways
1)create a J2EE project and create the ejb module from that you can lookup the data source
2)create the webdynpro before that create a command bean,that means simply a bean that will lookup the datasource,write the method that will return the list or vector,iterate the list store in strings that will set to context.
Thanks,
Balaji
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Check the tutorial
https://www.sdn.sap.com/irj/sdn/downloaditem?rid=/library/uuid/a11ba7c8-0401-0010-23b5-f5d2394c0ac0
Regards, Anilkumar
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
80 | |
9 | |
9 | |
7 | |
7 | |
6 | |
6 | |
6 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.