Re: EJB Injection in Managed Bean

2008-10-14 Thread eveeve

Hi,

I can't get this sample:

Sample:
http://systemtrap.net/ltg3.tar.gz


Thanks

eve



Matthias Berndt wrote:
> 
> On Wed, 2008-07-16 at 18:00 -0700, YunFeng Ma wrote:
>> I'm not sure why this happened, but it will be easer to debug if you
>> can attach your sample. :-)
> 
> Sorry it took some time to strip it down and remove some cruft.
> 
> Sample:
> http://systemtrap.net/ltg3.tar.gz
> 
> 
> 

-- 
View this message in context: 
http://www.nabble.com/EJB-Injection-in-Managed-Bean-tp18497939s134p19980915.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: JCA Connector getConnection returning a Proxy

2008-10-14 Thread David Jencks

Hi John,

On Oct 14, 2008, at 1:54 AM, johnxmas wrote:


Hi,

I'm experiencing a problem with my ResourceAdapter: the  
getConnection metod of my ConnectionFactory returns a Proxy instead of

the expected Connection , causing a ClassCastException

java.lang.ClassCastException: $Proxy33
	 
com 
.scort 
.ctg 
.cics 
.eci 
.jca.EciConnectionFactory.getConnection(EciConnectionFactory.java:381)


Any help would be appreciated

Geronimo version is 2.1.3


Someone else also found this recently, see 
https://issues.apache.org/jira/browse/GERONIMO-4350

The best solution, if practical for your resource adapter, is to have  
the ManagedConnections implement DissociatableManagedConnection since  
that will use the spec defined functionality for preventing connection  
leaks rather than our proxy based way.


The next best solution would be to make sure the interface the  
Connection implements has all the methods you need to call on it and  
use the interface in your client code rather than the concrete  
connection class.


Dain outlined some possible geronimo code changes to fix this, and if  
you wanted to pursue one that would be great.  I have some other work  
to finish before I can take a look.


thanks
david jencks




Jean-Noël




Re: SecurityException trying to use JavaMail

2008-10-14 Thread John

Rick McGuire wrote:
The simpler solution, if you are not dependent upon the properties 
that the javamail session has been configured with, would be to use 
getInstance() rather than getDefaultInstance().


Hi Rick and Kevan,

Thank you both for your response and I apologize for the delayed 
response as I was out of town for a few days. 

The fix suggested above (changing from getDefaultInstance to 
getInstance) works fine.


Thanks again,
John


Re: javax.jms.JMSException: Failed to build body from bytes

2008-10-14 Thread jklcom99

Hi Kevan,

Thanks for looking into this, hope we can get closure soon :-).
openejb-jar.xml:

http://openejb.apache.org/xml/ns/openejb-jar-2.2";>
http://geronimo.apache.org/xml/ns/deployment-1.2";>

myApp
AppServicesEjb
1.0
car



myApp
AppDataSource
1.0
rar







AppServices
http://geronimo.apache.org/xml/ns/naming-1.2";>
ejb/AppServices
AppServices

http://geronimo.apache.org/xml/ns/naming-1.2";>
AppServicesLocal
AppServices

  
Resources-ConnectionFactory
  
  http://geronimo.apache.org/xml/ns/naming-1.2";>
jdbc/myApp.datasource
myApp.datasource






Kevan Miller wrote:
> 
> 
> On Oct 13, 2008, at 5:10 PM, jklcom99 wrote:
> 
>>
>> Hi Kevan,
>>
>> I tested out your sample with inPlace deplopment today and it works,  
>> the
>> ContextClassLoader is correct.
>>
>> In the sample deployment plan:
>> 
>> http://java.sun.com/xml/ns/javaee";
>> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>> xsi:schemaLocation="http://java.sun.com/xml/ns/javaee
>> http://java.sun.com/xml/ns/javaee/application_5.xsd"; version="5">
>>  Geronimo Sample EAR for jms-mdb
>>  Geronimo Sample EAR for jms-mdb
>>  
>>jms-mdb-ejb-2.1.2-SNAPSHOT.jar
>>  
>>  
>>
>>  jms-mdb-war-2.1.2-SNAPSHOT.war
>>  /order
>>
>>  
>> 
>>
>> Where ejb reference is an actual jar jms-mdb-ejb-2.1.2-SNAPSHOT.jar  
>> under
>> jms-mdb.ear
>>
>> In MyApp deployment plan
>>
>> 
>> ...
>>
>> 
>>   app-ejb.jar
>> 
>>
>> ...
>> 
>>
>> where app-ejb.jar is another folder under:
>> -> MyApp.ear
>>-> app-ejb.jar
>>   -> META-INF
>>   - manifest.mf
>>   - openejb-jar.xml
>>
>> Is there something I'm missing in migrating from 1.1.1 to 2.1.2?
> 
> Hi Jeff,
> Slowly, but surely :)  So, what does your openejb-jar.xml look  
> like? FYI, I exploded my jar, ran an inplace deploy, and the  
> ClassLoader looks correct. Still looking for a way to reproduce your  
> problem...
> 
> --kevan
> 

-- 
View this message in context: 
http://www.nabble.com/javax.jms.JMSException%3A-Failed-to-build-body-from-bytes-tp18404327s134p19972648.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



JCA Connector getConnection returning a Proxy

2008-10-14 Thread johnxmas
Hi,

I'm experiencing a problem with my ResourceAdapter: the getConnection metod of 
my ConnectionFactory returns a Proxy instead of 
the expected Connection , causing a ClassCastException

java.lang.ClassCastException: $Proxy33

com.scort.ctg.cics.eci.jca.EciConnectionFactory.getConnection(EciConnectionFactory.java:381)

Any help would be appreciated

Geronimo version is 2.1.3

Jean-Noël