File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes OO, Patterns, UML and Refactoring and the fly likes ejb and rational rose Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Engineering » OO, Patterns, UML and Refactoring
Bookmark "ejb and rational rose" Watch "ejb and rational rose" New topic
Author

ejb and rational rose

sushil bajracharya
Greenhorn

Joined: Jan 20, 2001
Posts: 12
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.


java is great
Avijeet Dash
Ranch Hand

Joined: Jan 21, 2001
Posts: 148
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

Joined: Jan 20, 2001
Posts: 12
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

Joined: Nov 22, 2008
Posts: 18944
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

Joined: Jul 31, 2001
Posts: 9
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

Joined: Jul 24, 2001
Posts: 188
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


Thank you.<br /> <br />- Jess Sie<br /> <a href="mailto:jess@see-consulting.com" rel="nofollow">jess@see-consulting.com</a>
Desai Sandeep
Ranch Hand

Joined: Apr 02, 2001
Posts: 1157
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).]


<b>Sandeep</b> <br /> <br /><b>Sun Certified Programmer for Java 2 Platform</b><br /> <br /><b>Oracle Certified Solution Developer - JDeveloper</b><br /><b>-- Oracle JDeveloper Rel. 3.0 - Develop Database Applications with Java </b><br /><b>-- Object-Oriented Analysis and Design with UML</b><br /> <br /><b>Oracle Certified Enterprise Developer - Oracle Internet Platform</b><br /><b>-- Enterprise Connectivity with J2EE </b><br /><b>-- Enterprise Development on the Oracle Internet Platform </b>
Jes Sie
Ranch Hand

Joined: Jul 24, 2001
Posts: 188
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
 
subject: ejb and rational rose