Hello all,
I have an application where we have 3 EJB Jar files, 2 Utility Jar Files and 1 War file. We have inter dependencies between the EJB Jar and Utility Jar files. In WSAD, there is an option for us to package all the utility, EJB and WAR files into an EAR file using some zip creation utility. This worked fine on WSAD Test Environment but when we are trying to deploy this application on WAS 4.0.2, the Utility classes and EJB classes are not able to refer to each other. I have read that the "APPLICATION" visibility in WAS 4.0.2 allows us to do this since I have all the Jars in the EAR file.....Has anyone solved this problem ?? Please let me know...
This however works when we give dependencies in the Manifest File but that would mean we are giving "MODULE" visibility......
Thanks,
Sonu
-
Application Visibility in Websphere 4.0 (3 messages)
- Posted by: Sonu Sharma
- Posted on: October 30 2002 10:13 EST
Threaded Messages (3)
- Application Visibility in Websphere 4.0 by Srinivasa Murari on October 30 2002 13:58 EST
- Application Visibility in Websphere 4.0 by Bibhas Bhattacharya on October 30 2002 18:18 EST
- Application Visibility in Websphere 4.0 by Sonu Sharma on November 02 2002 20:38 EST
-
Application Visibility in Websphere 4.0[ Go to top ]
- Posted by: Srinivasa Murari
- Posted on: October 30 2002 13:58 EST
- in response to Sonu Sharma
Hi Sonu,
Try this open WAS Admin Console --> Highligh your Application server --> Click on JVM Settings tab --> Click Add under "System Properties" and add this line exactly
COM.ibm.ws.classloader.J2EEApplicationMode = true
and click Apply and restart application server.
it will works Good luck.
Srinivasa R Murarisetty
IBM -
Application Visibility in Websphere 4.0[ Go to top ]
- Posted by: Bibhas Bhattacharya
- Posted on: October 30 2002 18:18 EST
- in response to Sonu Sharma
Are the utility Java classes using the EJBs? If so, the ZIP creation plugin will not help you there. The only reason they are working in WSAD, perhaps because the default visbility is Application.
I would make a clean separation of utility classes
1. The ones that do not use any EJB. Other EJBs use them. Move these classes in a separate Java project. Or move them within the EJB module.
2. The ones that use EJB. Move them within the EJB module or a Web Module.
Doing so will give you 100% J2EE conformance. The app will work with any visibility. -
Application Visibility in Websphere 4.0[ Go to top ]
- Posted by: Sonu Sharma
- Posted on: November 02 2002 20:38 EST
- in response to Bibhas Bhattacharya
Thank you guys for your thoughts.
Srinivas,
We are using WAS 4.0.2 and the new J2EE Application Visibility does not seem to be available in it...We have tried doing that but WAS doesnt pick it up...So, we have to go with the old visibilities.
Bibhas,
The normal JARs with utility classes access the EJB JARs even in WAS if we package the utility JARs and EJBs in an EAR by specifying their dependencies in the Manifest file..So, that part is working. I wanted to know if we could achieve this kind of communication between the utility JARs, EJB JARs and WARs without having an entry in the Manifest file just by specifying the Visibility in WAS.
I would really appreciate any more thoughts...
Thanks,
Sonu