EJB: Importing as XMI model
Hi,
I have used EJBs with WebDynpro by the JNDI way (i.e., lookup the JNDI context with the EJB's JNDI name and get a reference to Home interface...) I have seen a lot of postings in SDN that talk about importing XMI model for EJBs. I couldn't understand how to do it... mainly because I couln't understad WHAT to model using Rose / Togethersoft modeller. AFAIK, there is no EJB component available as part of these modellers. IDE doesn't provide for exporting the EJBs directly as XMIs either. Could you please help me with a step-by-step guide on how to do this?
Thanks!
- Prashanth
Hi Prahanth,
some time ago I wrote a small Weblog that explained how to use a session bean in WebDynpro by importing a Java Bean Wrapper through the new Java Bean Importer (SP9).
Here is the link I hope that helps.
/people/david.beisert/blog/2004/10/26/webdynpro-importing-java-classes-as-model
rgds
David
Similar Messages
-
can anyone please let me know about xmi files?...i came across this doubt while i was going thru the NWDS web dynpro model tools which import an XMI model for developing an application.
Hi Krishna
Can you please explain it little bit more.
Your term ("NWDS web dynpro model tools which import an XMI model for developing an application.")
If you want to import something from XMII than this will be in form of xml files.
You can take some query result as well as real time plant data from xmii in xml files.
Well if you needed specific information than give your scenario.
Thanks
Ramshanker -
Expose EJB through Java Bean model importer in Web Dynpro
Hi,
I am planning to expose EJB like following:
1. Create Stateless session bean as a façade for DAO access.
2. Create DAO to access database. In my case is Oracle DB
3. Create Java Bean to encapsulate session bean
4. Import java bean model to web dynpro
Few of my business method return the object array e.g. Customer[] which contains all properties of customer, and getter, setter.
Has anyone done this before? Is there any sample code?
Best Regards,
Zhang YanHi
I think u can refer to the following link
https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/java/simple java bean generator for database.pdf
Thought this link is also Useful
Creating and Deploying Web Services for an EJB
Wishes
Krishna kanth -
JDev 10.1.3EA - Importing UML XMI - which models are supported
I've read some instructions to import UML Class models from an XMI export. Is this the only type of model which can be imported? We have XML exports that contain Use case and sequence diagrams as well.
Thx.Hi,
Yes, currently only UML Classes can be imported in XMI.
Regards,
Lisa Sherriff
JDev QA -
Importing Java Bean Model in Webdynpro Development Component
Hi All,
Is there any simple tutorial, example to import java bean model in webdynpro development component.
I am using NWDS 7.0 SP14 and WAS 7.0.
it really helps if you can provide simple EJB as a development component with details how to create a public part and using this bean as java bean model in Webdynpro development component.
what are the steps to be followed with precautions
Thanks in Advance,
MuraliHi,
[Using the Java Bean Model in Web Dynpro|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/4072c0d0-c21e-2b10-ab84-e2c183d355de]
[Using EJBs in Web Dynpro|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1f5f3366-0401-0010-d6b0-e85a49e93a5c]
you will get more if you search in the forum.
more help on EJB's
Re: Help needed in EJB
http://help.sap.com/saphelp_nw70/helpdata/EN/19/f9bc3d8af79633e10000000a11405a/frameset.htm
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/70929198-0d36-2b10-04b8-84d90fa3df9c
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/1f5f3366-0401-0010-d6b0-e85a49e93a5c
PradeeP -
Importing Complex JavaBean model into WebDynpro
Hi,
I am trying to get Data from the EJB, in my Case, Command Bean to WebDynpro.
So i followed this thread:
<a href="/people/balaramnaidu.bankuru/blog/2006/04/23/importing-complex-javabean-model-into-webdynpro-by-creating-relationships-for-the-model-classes in WebDynpro</a>
But one thing does't work here:
I can't import the Complex type java.util.Collection.
But i need to get Data from a DB-View into my WebDynpro.
Is there any other chance to do that?
Here a CodeSnippet from my Command Bean Class:
public BusinessDelegate() throws CreateException
try
Context ctx = new InitialContext();
OracleSessionLocalHome home = (OracleSessionLocalHome)ctx.lookup("localejbs/OracleSessionBean");
session = home.create();
} catch (Exception e)
e.printStackTrace();
public void getAllOracleDetails()
try
OracleDTO helper[] = session.getOracleData();
oracleDetailsList = new ArrayList();
for (int i = 0; i < helper.length; i++)
oracleDetailsList.add(helper(i));
} catch (Exception e)
e.printStackTrace();
OracleDTO is my HelperClass, where i made all Variable-Declarations I need in the View.
Any ideas?
Would appreciate that!
BerndYou are not unable to import collection type means u are not able to see that variable in attribute list while importing the model?
This may be due to you have not added getter and setter function for that collection type. -
Error in Import Adaptive RFC Model
Hi SDN,
I am trying to develop an application using Import Adaptive RFC Model, while creating a model i could not able to connect to the backend system after giving the single server parameters. When i click on the next button a pop up is displayed with an error message *"User Name or Password wrong" *.
But i could able to login to R/3 with the same userid and password from SAP logon pad.
Really i am at Six and Seven's to trace out this error. Please suggest me how to overcome this error and create the model succesfully.
Regards
BashaHi Praveen & Chaitanya
Thanks for your quick response and informative threads.
Actually in order to import an adaptive rfc model
I have right clicked the model node to create a model and given the model name,package name,model data and metadata names and clicked next button. Then in the next screen
Tab Strip -> Single Server:
Host name :
System Number :
client details:
Tab Strip -> Load balancing:
System :
Message Server:
System Name:
Group:
(in Tcode: SLMG i have added the group public also)
client details:
After entering the required details either in Single Server or Load balancing and clicked the next button I could not able estabilish a connection to the backend R/3 and get the list of Bapi's or RFc's. Instead i am getting a pop up message "User Name or Password Wrong". I could not able to proceed from here.
But with the same above parameters i could able to logon to R/3 from SAP Logon Pad. I have tried by giving the user name in Cap's and small letters but no use.
As i was strucked at the intial step while creating the model but not during the execution of the program, as far as my knowledge is concerned i think we no need to worry on SLD or JCO connections during the creation of the model. Please correct me if i am wrong and suggest me to rectify the error.
Regards
Basha -
How to import a 3d model in LabVIEW
Hello all, I am a new user in LabVIEW, how can I import a 3d model (eg. .max or .3ds file) in LabVIEW? Thx
I had a similar problem, showing a free-form 3D-object from a construction program. I tried to import the model from a VRML file, but the appropriate VI "Load VRML File.vi" couldn't handle the complexity of the the file. I suppose this is also true for the other file loading VIs.
My steps were:
Exporting the 3D- Object as a VRML- file. I checked the correct export with the free VRML viewer/editor "White_Dune". Since my object was a free form object, it didn't consist of geometrical forms, such as cylinders or cones but a great number of points, describing the surface. In the .wrl soucefile this is to be seen as a long row of numbers, surrounded by [ ] brackets. These numbers are the x-y-z coordinates of the points. I copied them to another file and made a VI to translate them to an array of <x;y;z> - clusters. These clusters could be used to view the points in a 3D Parametric Surface Control. I used this to determine the points, which are necessary to describe the object with adequate detail level.
Next step was to translate this cloud of points in a form suitable for the mesh- functions used by the 3D- Picture Control. I chose the easy way and projected all points on one plane (e.g. the x-z-plane) and determined the hull points of the resulting 2D geometry. This I could easily feed into the Mesh- VI. But this is not the solution for every problem.
If you have some questions or need explanations in more detail, please ask.
greets, Dave
Greets, Dave -
Importing Adaptive WebService model in Netweaver 7.1
Dear All,
I want to import a Web Service model from a wsdl file that i have on my local machine.
I tried importing adaptive webservice model but its nowhere asking for local file.
Can anybody tell me how to do it?
regards,
Amey MogareHi Amey,
you have to create and configure "Metadata" and "Execution" destinations.
On Net weaver Administrator (http://hostname:portnumber/nwa) navigate to SOA Management u2013 Technical Configuration u2013 Destination Template Management u2013 Create Destination.
you have to enter the following parameters for both destinations:
Name:
Destination Type:
URL:
System: ABAP
System Name:
Host Name:
Installation Number:
Client:
After configuring the destinations, you can test them on Web Service Navigator (http://hostname:portnumber/wsnavigator).
On Web Service Navigator select "Search by Logical Destination" button and search in your destination.
If you can see on the search results your service, this means the destination is configured properly.
Regards,
Yasar -
I see that I can open a diagram with "Import UML XMI File". How do I export a current diagram to an XMI/XML file so it can be shared, access and modified by other developer.
Hi,
There is currently no XMI export functionality in JDeveloper.
If you want to publish diagrams to be used in other documents etc, then you can use the 'Publish Diagram...' context menuitem which will save the diagram as an image.
If you want to be able to allow others to edit the diagram, then they need to be able to access the project's directory.
For more details on the supported XMI formats please see the help topics 'Importing UML Classes using XMI Import'
Thanks,
Lisa -
Import Enterprise Services Model
Hi all,
I try to import a ES-Model but I got only folowing exception:
Plugin name: Web Dynpro Model Editor Services
Plugin ID: com.sap.ide.webdynpro.service.modeleditor
Class:
com.sap.ide.webdynpro.modeleditor.wizards.model.creation.ModelDialog
Message:
Internal error - see detail information in exception trace.
Exception:
org.eclipse.swt.SWTException: Failed to execute runnable (com.sap.tc.col.client.generic.core.GCPRuntimeException: service manager initialization failed Caused by:
Error Text ߽��M��n���랄덴�n��^�������N������N9�:�>:�n��N�랄�
Can anybody help me?Hi
We are also facing same problem. Were you able to solve this problem?
Regards
Saurabh Garg -
Unable to Import a WebService model
Hi All,
I am trying to import a webservice model, in my webdynpro based Adobe form. There is an RFC which is exposed as a WebService, and after generating a WSDL link for it when I try to import it in my application it gives me a message like "Invalid WSDL or WSDL not found".
Pls can someone help ????
thanks and regards,
SameerHi Sameer,
Please check the proxy settings in the window ->Prefernces-> workbench and try to import.
Regads, Anilkumar -
Import/Export of XMI models to/from the EMFStore
Hi,
Is there a way to import/export the EMF model in XMI format into/from the EMFStore?
Appreciate any response!
Thank you!Hi Yuri,
have you already tried to read the XMI file via a resource, get its
contents and add them via ESLocalProject.getModelElements().
Cheers,
Edgar
> Hi,
> Is there a way to import/export the EMF model in XMI format into/from
> the EMFStore?
>
> Appreciate any response!
>
> Thank you!
>
>
Edgar Mueller
Get Professional Eclipse Support:
http://eclipsesource.com/en/services/developer-support/ -
Can't fill ByteArray in EJB-Method with generated Model-Class from WD-Model
Hello everybody,
i try to call an ejb-method with data from an FileUpload-UI-Element in WD. The EJB-Method is receiving the byte-data to create a document in KM via a Web-Service.
The ebj-methid has the following signature:
public FObject putFileDataSimple (byte [] btContent, String fullFileName, String username, String password)
After importing the Model and creating a context node i have the following structure:
Request_X_putFileDataSimple
+---btContent (Node)
+-- item
+ fullFileName
+ username
+ password
btContent is of the generated Type Byte_Item, which is itself a generated Model-Class of modelClassType ARRAY
item is of Type byte
But i simply have problems to fill the context node (or the binded model-object). i tried different ways and looked at thread [https://www.sdn.sap.com/irj/scn/thread?messageID=1954223] but i cant get it work.
So my Method in WD looks like this to fill the structure and start the ejb-method:
public boolean putKMDataSimple( com.sap.tc.webdynpro.services.sal.datatransport.api.IWDResource fin ) {
try
wdContext.currentRequest_X_putFileDataSimpleElement().setFullFileName("abc");
wdContext.currentRequest_X_putFileDataSimpleElement().setUsername("def");
wdContext.currentRequest_X_putFileDataSimpleElement().setPassword("xxx");
byte[] buffer = new byte[1];
InputStream in = fin.read(false);
int i = 1;
int j = 0;
while (i!=-1)
i = in.read(buffer);
if (i!=-1)
Byte_Item bi = new Byte_Item(mAlf); // mAlf ist global defined Model-Class-Instance
bi.setItem(buffer[0]);
wdContext.currentRequest_X_putFileDataSimpleElement().modelObject().addBtContent(bi);
wdContext.currentRequest_X_putFileDataSimpleElement().modelObject().execute();
Doing this results in Error-Messages like:
Model-Object is not a complex type for every byte added this way.
And finally an IllegalArgumentException at java.lang.reflect.Array.set(Native Method)
The second way i tried is:
public boolean putKMDataSimple( com.sap.tc.webdynpro.services.sal.datatransport.api.IWDResource fin ) {
try
wdContext.currentRequest_X_putFileDataSimpleElement().setFullFileName("abc");
wdContext.currentRequest_X_putFileDataSimpleElement().setUsername("def");
wdContext.currentRequest_X_putFileDataSimpleElement().setPassword("xxx");
byte[] buffer = new byte[1];
ArrayList<Byte> btlist = new ArrayList<Byte>();
InputStream in = fin.read(false);
int i = 1;
int j = 0;
while (i!=-1)
i = in.read(buffer);
if (i!=-1)
btList.add(buffer[0]);
wdContext.currentRequest_X_putFileDataSimpleElement().modelObject().setBtContent(btList);
wdContext.currentRequest_X_putFileDataSimpleElement().modelObject().execute();
Trying so results in:
java.lang.ClassCastException: class java.lang.Byte:null incompatible with interface com.sap.tc.cmi.model.ICMIModelClass:library:com.sap.tc.cmi(at-sign)[email protected]@alive
whenn calling the setBtContent Method
I don't what to do now to fill the context/model-object the right way.
Any helpfull hints are very welcome
Edited by: Matthias Hayk on Dec 1, 2008 5:51 PM
Edited by: Matthias Hayk on Dec 2, 2008 10:56 AMOk Vesselin and thanx for your idea,
so i adapted the source in the way you told like the following:
ArrayList<Byte_Item> btlist = new ArrayList<Byte_Item>();
byte[] buffer = new byte[1];
InputStream in = fin.read(false);
int i = 1;
int j = 0;
while (i!=-1)
i = in.read(buffer);
if (i!=-1)
// Byte gelesen
Byte_Item bi = new Byte_Item(mAlf);
bi.setItem(buffer[0]);
btlist.add(bi);
j++;
wdContext.currentRequest_X_putFileDataSimpleElement().modelObject().setBtContent(btlist);
wdContext.currentRequest_X_putFileDataSimpleElement().modelObject().execute();
This results also in the following Exception when exceuting the WS-proxy:
execute
[EXCEPTION]
java.lang.IllegalArgumentException
at java.lang.reflect.Array.set(Native Method)
at com.sap.tc.webdynpro.model.ejb.model.EJBGenericModelClassExecutable.getInputParameters(EJBGenericModelClassExecutable.java:215)
at com.sap.tc.webdynpro.model.ejb.model.EJBGenericModelClassExecutable.execute(EJBGenericModelClassExecutable.java:112) -
Import Java Bean model in Web dynpro DC
Hi all,
I have created the following DC's on a track:
1. EMPDic (Type: Dictionary) - DC that contains the database table.
2. EMPEjb (Type J2EE) - DC that contains the EJBs that have business logic. Created a public part EMPpp that containd the bean classes.
3. EMPEar (Type J2EE) - DC that contains the EMPEjb module.In Used Dcs added EMPpp
4. EMPCmd (Type: Java) - DC that acts as the command bean.
Created 2 public parts 'compile'(Type:compilation) and 'deploy' (Type:assembly). In Used DCs added EMPpp.
5. EMPWd (Type: Webdynpro) - DC that will contain the Java Bean Model and the application. In Used DCs added 'compile' and 'deploy'.
Q1.) Now when i try to import the Java bean model by selecting the radio button "public parts of used DCs" and look at the dropdown, i am not able to see any of the jar's related to my command bean DC.
If i select the radio button "project(source folder)" and click Next it says 'No JavaBeans for import'. Am i missing something?
Q2) Could someone tell me the exact steps from pt. 4 onwards. ie. whether it is necessary to create the 2 public parts for EMPCmd DC and what should it contain.
Thanking you in advance.Hi Melwyn,
check the NWDI tutorial, it will help you:
https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/c0b53558-6df6-2910-cfbf-a63316bb0fad
kind regards
Stefanie
Maybe you are looking for
-
Button for next recording in the database
Hello, I currently testing Adobe LiveCycle to create a PDF form with data link to a database (Access). The goal of my form is for the manager of each of our site to write variable about the paycheck of each employe. So first I create my AccessDatabas
-
How to go back to the first track on ipod shuffle 2nd generation
how can i go back to the first track on my ipod shuffle 2nd generation? the first tracks in my shuffle-playlist are my new podcasts, at second place is my current audiobook, sequentially the music is listed. the podcasts and audiobooks are marked wit
-
DVD player only shows video under Intel graphics
I have a Macbook Pro 15", i7 2.66, and just noticed that Apple's DVD Player app will only show video under Intel graphics. When it's switched to the Nvidia 330M, all I get is a black screen (+ audio). Oddly, the VLC app works fine, so I'm (sort of) h
-
I have downloaded ring tones via the apple store on my computer how do i get them on my phone please
I have down loaded some ring tones to my computer and they are on my phone in music how do i make the a ring tone for a certain contact become avalibile
-
Nextval('id_increment') doesn't work - why?
sorry for crossposting this as i just joined and asked in the newbie section.. I've got a main method as a driver to test a database insertion and in the line not working is - Customer c = new Customer (select nextval('id_increment'),"Mark","Jones");