Re: Resource Adapter deployment problem

2010-01-05 Thread Jack Cai
t;> You'd need an environment element in the geronimo-ra.xml that has at
>>>> least a module id for the adapter.
>>>>
>>>> After that, you need to list the module id as a dependency of the web
>>>> app in the geronimo-web.xml or other plan file to get the lookup to
>>>> work.
>>>>
>>>> Other than that, I'd need to see a more detailed description of
>>>> exactly what you are doing and what errors you get.
>>>>
>>>> thanks
>>>> david jencks
>>>>
>>>> On Dec 23, 2009, at 3:49 AM, jam_developer wrote:
>>>>
>>>>>
>>>>> Hi,
>>>>>
>>>>> I have a outbound resource adapter which is a connector for a rule
>>>>> engine. I
>>>>> need help to deploy it in Geronimo.
>>>>>
>>>>> Structure of rar is:
>>>>>
>>>>> adapter.jar(contains adapter classes)
>>>>> connector-api.jar(required 3rd party library)
>>>>> jsr94.jar(required 3rd party library)
>>>>> META-INF\rar.xml
>>>>> META-INF\geronimo.xml
>>>>>
>>>>>
>>>>> Following is my geronimo-ra.xml :
>>>>>
>>>>> http://geronimo.apache.org/xml/ns/j2ee/
>>>>> connector-1.2">
>>>>>  
>>>>>    
>>>>>      
>>>>>
>>>>> >>>> interface>biz.hammurapi.rules.ra.ConnectionFactory>>>> connectionfactory-interface>
>>>>>        
>>>>>          RuleConnection
>>>>>          
>>>>>            
>>>>>            
>>>>>          
>>>>>        
>>>>>      
>>>>>    
>>>>>  
>>>>> 
>>>>>
>>>>> Following is ra.xml :
>>>>>
>>>>> 
>>>>>
>>>>> http://java.sun.com/xml/ns/j2ee";
>>>>>    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>>>>>    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
>>>>> http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd";
>>>>>    version="1.5">
>>>>>    Hammurapi Rules Adapter
>>>>>    Hammurapi Group
>>>>>    Rules enabled application
>>>>>    1.0
>>>>>    
>>>>>
>>>>> biz.hammurapi.rules.ra.ResourceAdapterImpl>>>> resourceadapter-class>
>>>>>
>>>>>        
>>>>>            
>>>>>
>>>>> >>>> class>biz.hammurapi.rules.ra.ManagedConnectionFactoryImpl>>>> managedconnectionfactory-class>
>>>>>
>>>>> >>>> interface>biz.hammurapi.rules.ra.ConnectionFactory>>>> connectionfactory-interface>
>>>>>
>>>>> >>>> class>biz.hammurapi.rules.ra.ConnectionFactoryImpl>>>> connectionfactory-impl-class>
>>>>>
>>>>> javax.rules.RuleSession
>>>>>
>>>>> biz.hammurapi.rules.ra.RuleSessionImpl>>>> connection-impl-class>
>>>>>            
>>>>>            NoTransaction
>>>>>            
>>>>>
>>>>> BasicPassword>>>> mechanism-type>
>>>>>
>>>>> >>>> interface>javax.resource.spi.security.PasswordCredential>>>> interface>
>>>>>            
>>>>>            false
>>>>>        
>>>>>    
>>>>> 
>>>>>
>>>>> Please let me know what am I missing here.
>>>>>
>>>>> My second question is I have another web application through which I
>>>>> need to
>>>>> access this resource adapter. I assume connectiondefinition-instance
>>>>> name(which is "RuleConnection") can be used as JNDI name to get
>>>>> Connection
>>>>> object. Is this understanding correct?
>>>>>
>>>>> Please suggest.
>>>>>
>>>>> --
>>>>> View this message in context:
>>>>> http://old.nabble.com/Resource-Adapter-deployment-problem-tp26899531s134p26899531.html
>>>>> Sent from the Apache Geronimo - Users mailing list archive at
>>>>> Nabble.com.
>>>>>
>>>>
>>>>
>>>>
>>>
>>> --
>>> View this message in context:
>>> http://old.nabble.com/Resource-Adapter-deployment-problem-tp26899531s134p27011579.html
>>> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>>>
>>>
>>
>>
>
> --
> View this message in context: 
> http://old.nabble.com/Resource-Adapter-deployment-problem-tp26899531s134p27026602.html
> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>
>


Re: Resource Adapter deployment problem

2010-01-05 Thread jam_developer
t;>>> 
>>>>
>>>> Following is ra.xml :
>>>>
>>>> 
>>>>
>>>> http://java.sun.com/xml/ns/j2ee";
>>>>    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>>>>    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
>>>> http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd";
>>>>    version="1.5">
>>>>    Hammurapi Rules Adapter
>>>>    Hammurapi Group
>>>>    Rules enabled application
>>>>    1.0
>>>>    
>>>>
>>>> biz.hammurapi.rules.ra.ResourceAdapterImpl>>> resourceadapter-class>
>>>>
>>>>        
>>>>            
>>>>
>>>> >>> class>biz.hammurapi.rules.ra.ManagedConnectionFactoryImpl>>> managedconnectionfactory-class>
>>>>
>>>> >>> interface>biz.hammurapi.rules.ra.ConnectionFactory>>> connectionfactory-interface>
>>>>
>>>> >>> class>biz.hammurapi.rules.ra.ConnectionFactoryImpl>>> connectionfactory-impl-class>
>>>>
>>>> javax.rules.RuleSession
>>>>
>>>> biz.hammurapi.rules.ra.RuleSessionImpl>>> connection-impl-class>
>>>>            
>>>>            NoTransaction
>>>>            
>>>>
>>>> BasicPassword>>> mechanism-type>
>>>>
>>>> >>> interface>javax.resource.spi.security.PasswordCredential>>> interface>
>>>>            
>>>>            false
>>>>        
>>>>    
>>>> 
>>>>
>>>> Please let me know what am I missing here.
>>>>
>>>> My second question is I have another web application through which I
>>>> need to
>>>> access this resource adapter. I assume connectiondefinition-instance
>>>> name(which is "RuleConnection") can be used as JNDI name to get
>>>> Connection
>>>> object. Is this understanding correct?
>>>>
>>>> Please suggest.
>>>>
>>>> --
>>>> View this message in context:
>>>> http://old.nabble.com/Resource-Adapter-deployment-problem-tp26899531s134p26899531.html
>>>> Sent from the Apache Geronimo - Users mailing list archive at
>>>> Nabble.com.
>>>>
>>>
>>>
>>>
>>
>> --
>> View this message in context:
>> http://old.nabble.com/Resource-Adapter-deployment-problem-tp26899531s134p27011579.html
>> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>>
>>
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Resource-Adapter-deployment-problem-tp26899531s134p27026602.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: Resource Adapter deployment problem

2010-01-04 Thread Jack Cai
The global JNDI name will be something different from the "name" you
specify in ra.xml. Try to find the name in the server start up log,
which is located in var/log folder.

Or, as David pointed out, you can claim a dependency in your
application deployment plan (e.g., geronimo-web.xml for Web app) to
this resource adapter, and use "eis/RuleConnection" to look up it.

-Jack

On Mon, Jan 4, 2010 at 7:18 PM, jam_developer  wrote:
>
> Thanks David and Jack for your response.
>
> With couple of changes, I could able to deploy RA in Geronimo using
> Administrative console. Now when I go to JNDI viewer, I don't see my
> specified JNDI name. Following is my geronimo-ra.xml details:
> ---
> http://geronimo.apache.org/xml/ns/j2ee/connector-1.2";>
>
>    xmlns:dep="http://geronimo.apache.org/xml/ns/deployment-1.1";>
>     
>       hammurapi
>       RulesAdapter
>       4.1
>       rar
>     
>     
>     
>     
>   
>
>  
>    
>      
>
> com.hammurapi.reasoning.ForwardReasoningSessionFactory
>        
>          eis/RuleConnection
>          
>            
>            
>          
>        
>      
>    
>  
> 
>
> --
>
> I was expecting to see specified JNDI name (eis/RuleConnection)  in JNDI
> viewer but JNDI viewer just shows
> hammurapi/RulesAdapter/4.1/rar
>
> Please let me know what am I missing out here.
>
>
>
>
> djencks wrote:
>>
>> You'd need an environment element in the geronimo-ra.xml that has at
>> least a module id for the adapter.
>>
>> After that, you need to list the module id as a dependency of the web
>> app in the geronimo-web.xml or other plan file to get the lookup to
>> work.
>>
>> Other than that, I'd need to see a more detailed description of
>> exactly what you are doing and what errors you get.
>>
>> thanks
>> david jencks
>>
>> On Dec 23, 2009, at 3:49 AM, jam_developer wrote:
>>
>>>
>>> Hi,
>>>
>>> I have a outbound resource adapter which is a connector for a rule
>>> engine. I
>>> need help to deploy it in Geronimo.
>>>
>>> Structure of rar is:
>>>
>>> adapter.jar(contains adapter classes)
>>> connector-api.jar(required 3rd party library)
>>> jsr94.jar(required 3rd party library)
>>> META-INF\rar.xml
>>> META-INF\geronimo.xml
>>>
>>>
>>> Following is my geronimo-ra.xml :
>>>
>>> http://geronimo.apache.org/xml/ns/j2ee/
>>> connector-1.2">
>>>  
>>>    
>>>      
>>>
>>> >> interface>biz.hammurapi.rules.ra.ConnectionFactory>> connectionfactory-interface>
>>>        
>>>          RuleConnection
>>>          
>>>            
>>>            
>>>          
>>>        
>>>      
>>>    
>>>  
>>> 
>>>
>>> Following is ra.xml :
>>>
>>> 
>>>
>>> http://java.sun.com/xml/ns/j2ee";
>>>    xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>>>    xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
>>> http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd";
>>>    version="1.5">
>>>    Hammurapi Rules Adapter
>>>    Hammurapi Group
>>>    Rules enabled application
>>>    1.0
>>>    
>>>
>>> biz.hammurapi.rules.ra.ResourceAdapterImpl>> resourceadapter-class>
>>>
>>>        
>>>            
>>>
>>> >> class>biz.hammurapi.rules.ra.ManagedConnectionFactoryImpl>> managedconnectionfactory-class>
>>>
>>> >> interface>biz.hammurapi.rules.ra.ConnectionFactory>> connectionfactory-interface>
>>>
>>> >> class>biz.hammurapi.rules.ra.ConnectionFactoryImpl>> connectionfactory-impl-class>
>>>
>>> javax.rules.RuleSession
>>>
>>> biz.hammurapi.rules.ra.RuleSessionImpl>> connection-impl-class>
>>>            
>>>            NoTransaction
>>>            
>>>
>>> BasicPassword>> mechanism-type>
>>>
>>> >> interface>javax.resource.spi.security.PasswordCredential>> interface>
>>>            
>>>            false
>>>        
>>>    
>>> 
>>>
>>> Please let me know what am I missing here.
>>>
>>> My second question is I have another web application through which I
>>> need to
>>> access this resource adapter. I assume connectiondefinition-instance
>>> name(which is "RuleConnection") can be used as JNDI name to get
>>> Connection
>>> object. Is this understanding correct?
>>>
>>> Please suggest.
>>>
>>> --
>>> View this message in context:
>>> http://old.nabble.com/Resource-Adapter-deployment-problem-tp26899531s134p26899531.html
>>> Sent from the Apache Geronimo - Users mailing list archive at
>>> Nabble.com.
>>>
>>
>>
>>
>
> --
> View this message in context: 
> http://old.nabble.com/Resource-Adapter-deployment-problem-tp26899531s134p27011579.html
> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>
>


Re: Resource Adapter deployment problem

2010-01-04 Thread jam_developer

Thanks David and Jack for your response.

With couple of changes, I could able to deploy RA in Geronimo using
Administrative console. Now when I go to JNDI viewer, I don't see my
specified JNDI name. Following is my geronimo-ra.xml details:
---
http://geronimo.apache.org/xml/ns/j2ee/connector-1.2";>

   http://geronimo.apache.org/xml/ns/deployment-1.1";>
 
   hammurapi
   RulesAdapter
   4.1
   rar
 
 
 
 
   

  

  
   
com.hammurapi.reasoning.ForwardReasoningSessionFactory

  eis/RuleConnection
  


  

  

  


--

I was expecting to see specified JNDI name (eis/RuleConnection)  in JNDI
viewer but JNDI viewer just shows
hammurapi/RulesAdapter/4.1/rar

Please let me know what am I missing out here.




djencks wrote:
> 
> You'd need an environment element in the geronimo-ra.xml that has at  
> least a module id for the adapter.
> 
> After that, you need to list the module id as a dependency of the web  
> app in the geronimo-web.xml or other plan file to get the lookup to  
> work.
> 
> Other than that, I'd need to see a more detailed description of  
> exactly what you are doing and what errors you get.
> 
> thanks
> david jencks
> 
> On Dec 23, 2009, at 3:49 AM, jam_developer wrote:
> 
>>
>> Hi,
>>
>> I have a outbound resource adapter which is a connector for a rule  
>> engine. I
>> need help to deploy it in Geronimo.
>>
>> Structure of rar is:
>>
>> adapter.jar(contains adapter classes)
>> connector-api.jar(required 3rd party library)
>> jsr94.jar(required 3rd party library)
>> META-INF\rar.xml
>> META-INF\geronimo.xml
>>
>>
>> Following is my geronimo-ra.xml :
>>
>> http://geronimo.apache.org/xml/ns/j2ee/ 
>> connector-1.2">
>>  
>>
>>  
>>
>> > interface>biz.hammurapi.rules.ra.ConnectionFactory> connectionfactory-interface>
>>
>>  RuleConnection
>>  
>>
>>
>>  
>>
>>  
>>
>>  
>> 
>>
>> Following is ra.xml :
>>
>> 
>>
>> http://java.sun.com/xml/ns/j2ee";
>>xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>>xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
>> http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd";
>>version="1.5">
>>Hammurapi Rules Adapter
>>Hammurapi Group
>>Rules enabled application
>>1.0
>>
>>
>> biz.hammurapi.rules.ra.ResourceAdapterImpl> resourceadapter-class>
>>
>>
>>
>>
>> > class>biz.hammurapi.rules.ra.ManagedConnectionFactoryImpl> managedconnectionfactory-class>
>>
>> > interface>biz.hammurapi.rules.ra.ConnectionFactory> connectionfactory-interface>
>>
>> > class>biz.hammurapi.rules.ra.ConnectionFactoryImpl> connectionfactory-impl-class>
>>
>> javax.rules.RuleSession
>>
>> biz.hammurapi.rules.ra.RuleSessionImpl> connection-impl-class>
>>
>>NoTransaction
>>    
>>
>> BasicPassword> mechanism-type>
>>
>> > interface>javax.resource.spi.security.PasswordCredential> interface>
>>
>>false
>>    
>>    
>> 
>>
>> Please let me know what am I missing here.
>>
>> My second question is I have another web application through which I  
>> need to
>> access this resource adapter. I assume connectiondefinition-instance
>> name(which is "RuleConnection") can be used as JNDI name to get  
>> Connection
>> object. Is this understanding correct?
>>
>> Please suggest.
>>
>> -- 
>> View this message in context:
>> http://old.nabble.com/Resource-Adapter-deployment-problem-tp26899531s134p26899531.html
>> Sent from the Apache Geronimo - Users mailing list archive at  
>> Nabble.com.
>>
> 
> 
> 

-- 
View this message in context: 
http://old.nabble.com/Resource-Adapter-deployment-problem-tp26899531s134p27011579.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: Resource Adapter deployment problem

2009-12-23 Thread David Jencks
You'd need an environment element in the geronimo-ra.xml that has at  
least a module id for the adapter.


After that, you need to list the module id as a dependency of the web  
app in the geronimo-web.xml or other plan file to get the lookup to  
work.


Other than that, I'd need to see a more detailed description of  
exactly what you are doing and what errors you get.


thanks
david jencks

On Dec 23, 2009, at 3:49 AM, jam_developer wrote:



Hi,

I have a outbound resource adapter which is a connector for a rule  
engine. I

need help to deploy it in Geronimo.

Structure of rar is:

adapter.jar(contains adapter classes)
connector-api.jar(required 3rd party library)
jsr94.jar(required 3rd party library)
META-INF\rar.xml
META-INF\geronimo.xml


Following is my geronimo-ra.xml :

http://geronimo.apache.org/xml/ns/j2ee/ 
connector-1.2">

 
   
 

interface>biz.hammurapi.rules.ra.ConnectionFactoryconnectionfactory-interface>

   
 RuleConnection
 
   
   
 
   
 
   
 


Following is ra.xml :



http://java.sun.com/xml/ns/j2ee";
   xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
   xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd";
   version="1.5">
   Hammurapi Rules Adapter
   Hammurapi Group
   Rules enabled application
   1.0
   

biz.hammurapi.rules.ra.ResourceAdapterImplresourceadapter-class>


   
   

class>biz.hammurapi.rules.ra.ManagedConnectionFactoryImplmanagedconnectionfactory-class>


interface>biz.hammurapi.rules.ra.ConnectionFactoryconnectionfactory-interface>


class>biz.hammurapi.rules.ra.ConnectionFactoryImplconnectionfactory-impl-class>


javax.rules.RuleSession

biz.hammurapi.rules.ra.RuleSessionImplconnection-impl-class>

   
   NoTransaction
   

BasicPasswordmechanism-type>


interface>javax.resource.spi.security.PasswordCredentialinterface>

   
   false
   
   


Please let me know what am I missing here.

My second question is I have another web application through which I  
need to

access this resource adapter. I assume connectiondefinition-instance
name(which is "RuleConnection") can be used as JNDI name to get  
Connection

object. Is this understanding correct?

Please suggest.

--
View this message in context: 
http://old.nabble.com/Resource-Adapter-deployment-problem-tp26899531s134p26899531.html
Sent from the Apache Geronimo - Users mailing list archive at  
Nabble.com.






Re: Resource Adapter deployment problem

2009-12-23 Thread Jack Cai
For Question 1, is there any exception when you deploy the connector?

For Qeustion 2, you can view the JNDI tree in the JNDI view of the admin
console. You can also refer to the server log to see the global JNDI name of
the connector.

Hope this helps.

-Jack


On Wed, Dec 23, 2009 at 7:49 PM, jam_developer  wrote:

>
> Hi,
>
> I have a outbound resource adapter which is a connector for a rule engine.
> I
> need help to deploy it in Geronimo.
>
> Structure of rar is:
>
> adapter.jar(contains adapter classes)
> connector-api.jar(required 3rd party library)
> jsr94.jar(required 3rd party library)
> META-INF\rar.xml
> META-INF\geronimo.xml
>
>
> Following is my geronimo-ra.xml :
>
> http://geronimo.apache.org/xml/ns/j2ee/connector-1.2";>
>  
>
>  
>
>
> biz.hammurapi.rules.ra.ConnectionFactory
>
>  RuleConnection
>  
>
>
>  
>
>  
>
>  
> 
>
> Following is ra.xml :
>
> 
>
> http://java.sun.com/xml/ns/j2ee";
>xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
>xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
> http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd";
>version="1.5">
>Hammurapi Rules Adapter
>Hammurapi Group
>Rules enabled application
>1.0
>
>
>
> biz.hammurapi.rules.ra.ResourceAdapterImpl
>
>
>
>
>
> biz.hammurapi.rules.ra.ManagedConnectionFactoryImpl
>
>
> biz.hammurapi.rules.ra.ConnectionFactory
>
>
> biz.hammurapi.rules.ra.ConnectionFactoryImpl
>
> javax.rules.RuleSession
>
>
> biz.hammurapi.rules.ra.RuleSessionImpl
>
>NoTransaction
>
>
>
> BasicPassword
>
>
> javax.resource.spi.security.PasswordCredential
>
>false
>
>
> 
>
> Please let me know what am I missing here.
>
> My second question is I have another web application through which I need
> to
> access this resource adapter. I assume connectiondefinition-instance
> name(which is "RuleConnection") can be used as JNDI name to get Connection
> object. Is this understanding correct?
>
> Please suggest.
>
> --
> View this message in context:
> http://old.nabble.com/Resource-Adapter-deployment-problem-tp26899531s134p26899531.html
> Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.
>
>


Resource Adapter deployment problem

2009-12-23 Thread jam_developer

Hi,

I have a outbound resource adapter which is a connector for a rule engine. I
need help to deploy it in Geronimo. 

Structure of rar is:

adapter.jar(contains adapter classes)
connector-api.jar(required 3rd party library)
jsr94.jar(required 3rd party library)
META-INF\rar.xml
META-INF\geronimo.xml


Following is my geronimo-ra.xml :

http://geronimo.apache.org/xml/ns/j2ee/connector-1.2";>
  

  
   
biz.hammurapi.rules.ra.ConnectionFactory

  RuleConnection
  


  

  

  


Following is ra.xml :



http://java.sun.com/xml/ns/j2ee";
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance";
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee
http://java.sun.com/xml/ns/j2ee/connector_1_5.xsd";
version="1.5">
Hammurapi Rules Adapter
Hammurapi Group
Rules enabled application
1.0

   
biz.hammurapi.rules.ra.ResourceAdapterImpl



   
biz.hammurapi.rules.ra.ManagedConnectionFactoryImpl
   
biz.hammurapi.rules.ra.ConnectionFactory
   
biz.hammurapi.rules.ra.ConnectionFactoryImpl
   
javax.rules.RuleSession
   
biz.hammurapi.rules.ra.RuleSessionImpl

NoTransaction

   
BasicPassword
   
javax.resource.spi.security.PasswordCredential

false




Please let me know what am I missing here.

My second question is I have another web application through which I need to
access this resource adapter. I assume connectiondefinition-instance
name(which is "RuleConnection") can be used as JNDI name to get Connection
object. Is this understanding correct?

Please suggest.

-- 
View this message in context: 
http://old.nabble.com/Resource-Adapter-deployment-problem-tp26899531s134p26899531.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.