otmfaqForumsBlogsRegister
FAQMembers ListCalendarToday's PostsSearch


 Subscribe Blogs:RSS
 Subscribe Forums:RSS
OTMFAQ Home
OTMFAQ Blogs
OTMFAQ Forums
OTMFAQ Tutorials

OTM SIG
MavenWire


Architecture Understanding how OTM / G-Log's architecture fits into your technology stack - including choosing an Application Server.

Tags:

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old October 2nd, 2007, 17:22
Member
 
Join Date: Aug 2007
Posts: 63
Thanks: 7
Thanked 0 Times in 0 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 2
nikesh mohanlal is on a distinguished road
Session Bean code gen

Hi All,

Urgent:Yes

I have changed a logic in a 'XSessionBean.java',located under 'business' folder.I compiled all the java files in the folder and also deployed it.Should I have to do anything.Any 'codegen' command is to be run again,before compiling and deploying?

Please let me know.

Regards,
Nikesh.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #2 (permalink)  
Old October 2nd, 2007, 18:31
chrisplough's Avatar
Site Moderator
 
Join Date: Jun 2006
Location: West Chester, PA
Posts: 816
Blog Entries: 7
Thanks: 53
Thanked 199 Times in 121 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 10
chrisplough has a spectacular aura aboutchrisplough has a spectacular aura aboutchrisplough has a spectacular aura about
Send a message via AIM to chrisplough
Re: Session Bean code gen

Nikesh,

I understand what you're referring to, because of the code work I did on OTM (then GC3), but very few organizations outside of Oracle have access to the OTM source code. I believe you'll have to run codegen again at this point, but haven't worked with the build process since the G-Log days and don't know how it's changed since v5.5 GA was released.

For more information, I recommend getting in contact with your development manager or possibly Paul Franz at Oracle -- as they have a better grasp on the OTM build process.

Thanks,
Chris
__________________
Chris Plough
MavenWire

www.MavenWire.com
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #3 (permalink)  
Old October 2nd, 2007, 20:13
Senior Member and Blogger
 
Join Date: May 2007
Posts: 170
Thanks: 4
Thanked 31 Times in 31 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 2
bmj_23 will become famous soon enough
Re: Session Bean code gen

Nikesh, why are you having to modify the OTM source code ? Does the standard OTM functionality not meet your requirements ? Just curious as to why you would be involved in that development exercise...
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #4 (permalink)  
Old October 3rd, 2007, 09:32
Junior Member
 
Join Date: May 2007
Location: Singapore
Posts: 26
Thanks: 0
Thanked 1 Time in 1 Post
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 0
satya_m is on a distinguished road
Re: Session Bean code gen

Nikesh,

Before the compilation / deployment, you will have to do a codegen. The process is something like this.

1. Codegen on your specific folder --> This will generate the necessary gen files based on the entries in the .gen file in your folder.

2. Compile --- > This will compile all the generated files.

3. deploy ----- > create the necessary jars and copy them into the deployment folder of your app server.

Since you are working on one of the core folders, i suggest you remove all the other entries ( except your session bean's entries) from the .gen file and then do a codegen. This will will only generate the gen files for your session beans and will be faster while compiling and deploying.

Regards,
Satya
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #5 (permalink)  
Old October 3rd, 2007, 17:42
Member
 
Join Date: Aug 2007
Posts: 63
Thanks: 7
Thanked 0 Times in 0 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 2
nikesh mohanlal is on a distinguished road
Re: Session Bean code gen

Hi All,

Urgent:Yes

Thanks a lot for the information.Actaully, I just need to change the business logic in one of the customised sessionbean(which client are using in 5.0) and needs to be modifed in 5.5,to suit their new requirement.Also I have code gen,compiled n deployed.

It will be great if anyone could let me know what is the procedure to add the created '.jar' file(created in 'weblogic\config\gc3domain\applications folder') to the 'Gc3App.ear' file of the patch creation and also necessary changes to be done(if any) or procedure while installing the patch on the client machine.

Actually I am installing the patch for the first time.

Anticipating for a positive reply.

Thanking and regards,
Nikesh.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
  #6 (permalink)  
Old October 3rd, 2007, 17:52
chrisplough's Avatar
Site Moderator
 
Join Date: Jun 2006
Location: West Chester, PA
Posts: 816
Blog Entries: 7
Thanks: 53
Thanked 199 Times in 121 Posts
Groans: 0
Groaned at 0 Times in 0 Posts
Rep Power: 10
chrisplough has a spectacular aura aboutchrisplough has a spectacular aura aboutchrisplough has a spectacular aura about
Send a message via AIM to chrisplough
Re: Session Bean code gen

Nikesh,

Typically the process is to add the class files with their fully-qualified package names (as directories) to the $OTM_HOME/glog/gc3webapp/classes directory. This directory is deleted with each CU applied, which is what you'd want - as the patches would need to be re-tested and possibly modified with each OTM patch.

FYI - this is also how G-Log quick-patches worked.

The problem with modifying the gc3app.ear file is that, you're modifying the OTM application's EAR file, which can cause serious issues if edited incorrectly.

[EDITED]
Strike that -- I had a brain fart. Since you're working with session beans and not just general Java classes, you'll definitely need to add them to the gc3app.ear file in order to get WebLogic to deploy them. In that case, here are some directions for modifying EAR files:

Packaging EJBs for the WebLogic Server Container


--Chris
__________________
Chris Plough
MavenWire

www.MavenWire.com

Last edited by chrisplough : October 3rd, 2007 at 17:55.
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
The Following User Says Thank You to chrisplough For This Useful Post:
nikesh mohanlal (October 4th, 2007)
Reply



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
OTMFAQ Forums : Code of Conduct chrisplough Forum Usage 112 October 1st, 2008 21:10
General Ledger Code Configuration slimjim30215 Settlement 5 March 5th, 2008 23:26
OTM Session Timeout naveengupta4s Performance, Scalability and HA 3 September 17th, 2007 06:50
Country Code with Time Zone Nisha Branding, Screen Sets, XSL/CSS and Translations 1 September 5th, 2007 14:53
XSL Code modifying and using for screen sets muthaharotm Branding, Screen Sets, XSL/CSS and Translations 0 July 19th, 2007 10:04



All times are GMT. The time now is 22:05.
Copyright © 2008, Open Book Solutions LLC. All rights reserved.

Sponsored by MavenWire - MavenWire.com


1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37