This week's book giveaway is in the JavaScript forum.
We're giving away four copies of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js and have Paul Jensen on-line!
See this thread for details.
Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Help Required (CMP) !!  RSS feed

 
Muhammad Asif
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,
I am working with CMP. I have created a customer CMP EJB and an address EJB. The customer has a 1:1 relationship with address. I have the ejb-jar.xml and weblogic descriptors in place for the EJBs.
Now I have a created a JAR file and it contains both the EJB classes/interface, and a META-INF directory that contins the ejb-jar.xml and weblogic-xxx.xml
What should be the next step that I take in order to deploy both the EJBS ?
Should i configure a new EJB via the console , put it in applications directory or what???
I am having serious problem with this matter since the last couple of days and getting exceptions!
If you want the exception trace i can print that too..
Thanx
Asif
 
Karl Laird
Ranch Hand
Posts: 67
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Deployment is still very vendor specific and will depend on the container that you are using. Looking at the documentation for the EJB container is usually your best bet in this circumstance, although if you post which container you are using someone with experience with that tool might be able to help
 
Muhammad Asif
Ranch Hand
Posts: 202
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx Karl for your reply!
I m using WL 6.1.
Regards
Asif Abbasi
 
Cristian Cardenas
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Asif,
If you are running Weblogic in Development Mode, you can put the jar in the <domain>/applications directory. But what i recommend is to use the ejbc tool bundled with the server(see the Weblogic Documentation). This tool is the EJB Compiler from Bea. It takes your jar, generate the container classes for the EJBs, and produce a new jar. Then you can move the jar produced to the <domain>/applications directory.
This process takes one more step, but you'll be sure that the jar is going to be deployed without errors.
i hope this help you.
Bye.
Cristian.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!