Author: epbernard
Date: 2006-12-01 16:03:43 -0500 (Fri, 01 Dec 2006)
New Revision: 10910
Modified:
branches/Branch_3_2/HibernateExt/ejb/src/java/org/hibernate/ejb/packaging/JarVisitor.java
Log:
EJB-253 Weblogic support in SE (zip protocol)
Modified:
branches/Branch_3_2/HibernateExt/ejb/src/java/org/hibernate/ejb/packaging/JarVisitor.java
===================================================================
---
branches/Branch_3_2/HibernateExt/ejb/src/java/org/hibernate/ejb/packaging/JarVisitor.java 2006-12-01
19:21:14 UTC (rev 10909)
+++
branches/Branch_3_2/HibernateExt/ejb/src/java/org/hibernate/ejb/packaging/JarVisitor.java 2006-12-01
21:03:43 UTC (rev 10910)
@@ -54,10 +54,15 @@
if ( file.endsWith( "!" ) ) file = file.substring( 0, file.length() - 1 );
try {
String protocol = url.getProtocol();
+
if ( "jar".equals( protocol )
|| "wsjar".equals( protocol ) ) { //Websphere has it's own way
jarUrl = new URL( file );
}
+ else if ( "zip".equals( protocol ) ) { //Weblogic has it's own way
+ //we have extracted the zip file, so it should be read as a file
+ jarUrl = new URL( "file", null, file );
+ }
else if ("code-source".equals( url.getProtocol() ) ) {
//OC4J prevent ejb.jar access (ie everything without path
//fix contributed by the community
Show replies by date