tomee-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jonathan Gallimore <jonathan.gallim...@gmail.com>
Subject Re: EJBd protocol over SSL
Date Thu, 26 Feb 2009 17:13:04 GMT
I think David might have made a change in this regard after Christian's 
post - I noticed this diff:

Author: dblevins
Date: Tue Feb 24 20:02:36 2009
New Revision: 747532

URL: http://svn.apache.org/viewvc?rev=747532&view=rev
Log:
ejbds should be enabled

Modified:
    openejb/trunk/openejb3/server/openejb-client/src/main/java/org/apache/openejb/client/ConnectionManager.java

Modified: openejb/trunk/openejb3/server/openejb-client/src/main/java/org/apache/openejb/client/ConnectionManager.java
URL: http://svn.apache.org/viewvc/openejb/trunk/openejb3/server/openejb-client/src/main/java/org/apache/openejb/client/ConnectionManager.java?rev=747532&r1=747531&r2=747532&view=diff
==============================================================================
--- openejb/trunk/openejb3/server/openejb-client/src/main/java/org/apache/openejb/client/ConnectionManager.java
(original)
+++ openejb/trunk/openejb3/server/openejb-client/src/main/java/org/apache/openejb/client/ConnectionManager.java
Tue Feb 24 20:02:36 2009
@@ -29,6 +29,7 @@
 
         factories.register("default", ejbdFactory);
         factories.register("ejbd", ejbdFactory);
+        factories.register("ejbds", ejbdFactory);
 
         HttpConnectionFactory httpFactory = new HttpConnectionFactory();
         factories.register("http", httpFactory);



Jon

Jean-Sébastien Scrève wrote:
> Hi Christian,
>
> I'd say it's a bug.
>
> To connect, I had to set "ejbds" protocol and change openEJB code.
>
> Here is what I did to connect to the server :
>
> Properties prop = new Properties();
> prop.put(Context.INITIAL_CONTEXT_FACTORY,
> "org.apache.openejb.client.RemoteInitialContextFactory");
> prop.put("java.naming.provider.url", "ejbds://127.0.0.1:4201");
> prop.put("ejbd.secure", "true"); 
> Context myContext = new InitialContext(prop);
>
> I patched org.apache.openejb.client.ConnectionManager to let openEJB
> recognize ejbds protocol.
>
> It's not my area of expertise so is it correct to set ejbds protocol ?
>
> If so, I can create a JIRA and submit the patch.
>
> Regards,
>
> Jean-Sébastien Scrève.
>
>
> Christian Bourque wrote:
>   
>> Hi,
>>
>> What is the correct way of using ejbd over ssl?
>>
>> I've tried setting this property on the server side:
>>
>> properties.setProperty("ejbd.secure", "true");
>>
>> But is there something specific to set on the client side?
>>
>> I always end up getting this error: "javax.net.ssl.SSLException:
>> Unrecognized SSL message, plaintext connection?"...
>>
>> BTW I'm running in embedded mode with remoting...
>>
>> Regards,
>>
>> Christian
>>
>>
>>     
>
>   


Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message