File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

ejb and rational rose

 
sushil bajracharya
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
how do i model EJBs using UMl in rational rose 98 enterprise edition. reference to any sample rational rose file doing so would be great, also how do i make automatic code generation in rational rose work for java.
 
Avijeet Dash
Ranch Hand
Posts: 148
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
u can represent entity beans as class with stereotype set to entity. session beans can be represented as class with stereotype control.
in rose - select the class(s) and right click to generate Java. or go to tools Java and click on generate code.

 
sushil bajracharya
Greenhorn
Posts: 12
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
thank you avijeet for the reply.
yes i've tried the automatic code genaration by right clicking or using the tools menu but nothing happens when i do so. what may be the problem ?
Originally posted by Avijeet Dash:
u can represent entity beans as class with stereotype set to entity. session beans can be represented as class with stereotype control.
in rose - select the class(s) and right click to generate Java. or go to tools Java and click on generate code.

 
Anonymous
Ranch Hand
Posts: 18944
  • 0
  • send pies
  • Quote
  • Report post to moderator
Hi,
Sushil,
Check out whether your rational rose is able to locate J2EE or Weblogic related Classes.
If this is possible then you can create a class in logical view.
here when you create a new class,just right click and go for
Open Specification and there you have General specifications,
in this Class name, Type, and Stereotype is there,
for stereotype select BSC.Entity, or BSC.Session
this way you can create a model.
After creating model
go to tools
select WeblogicAC and Export model as....
This will create tast file,
Which then will be used for generate Code ....
For that you can use

java theory.smart.compiler.SmartGenerator -trace g -tast %MY_HOME%\xxx.tast -root %MY_HOME%\src -deployment_root %MY_HOME%\src\deploy -dd -classes xxx.yyy.EntityName

I think this will help you.
Regards
Jaisinh
 
Ritwik Batabyal
Greenhorn
Posts: 9
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
quote:
--------------------------------------------------------------------------------
Originally posted by Avijeet Dash:
u can represent entity beans as class with stereotype set to entity.
Avijeet,
I think the stereotype to be set for the entity bean class in Rose is ' business enity ' instead of ' entity ' because even though code wise there might not be any difference but conceptually there is - the entity beans taking part in the business or enterprise application. What do u feel.
 
Jes Sie
Ranch Hand
Posts: 188
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by sushil bajracharya:
how do i model EJBs using UMl in rational rose 98 enterprise edition. reference to any sample rational rose file doing so would be great, also how do i make automatic code generation in rational rose work for java.

I may sound inconsiderate, but I think if you would have a lot more convenience with Together than apposed to use Rational. Together's integration with Web Logic deployment and having EJB patterns is a lot more superior.

------------------
Thank you.
- Simon See
simon-ivy@usa.net
-after office hours-
necro-mani-cide
 
Desai Sandeep
Ranch Hand
Posts: 1157
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I had been using Ensemble Systems Rose Link for JDeveloper, which "reverse-engineers" Oracle JDeveloper IDE projects into UML.Similarly any changes made in the UMl artifacts are reflected back in JDeveloper projects.I have used this extensively for doing my assignments in EJB.
I guess the Ensemble link for Oracle JDeveloper IDE has ceased to exist.It may be because Oracle has come with a new version of JDeveloper Release 9i, which has an integrated UML Modelling kit in it.It seems to be a great integrated tool, atleast from the convenience point of view - how it is going to do in the market we will have to wait and watch!
Hope this helps,
Sandeep
SCJP2, OCSD(Oracle JDeveloper), OCED(Oracle Internet Platform)
[This message has been edited by Desai Sandeep (edited August 29, 2001).]
 
Jes Sie
Ranch Hand
Posts: 188
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sandeep,
Can you pls pass me some info on Oracle 9i in terms of UML integration?

------------------
Thank you.
- Simon See
simon-ivy@usa.net
-after office hours-
necro-mani-cide
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic