about geronimo

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
9 messages Options
Reply | Threaded
Open this post in threaded view
|

about geronimo

xpingxu
Hi,All
  now the ofbiz can't be deployed on geronimo. why?
somebody can be tell me. I remember the ofbiz 2.0 still
can be deployed some of application server(like jboss or others)
but now, where is the feature?
Xu
Reply | Threaded
Open this post in threaded view
|

Re: about geronimo

Jacques Le Roux
Administrator
I have done some work about that these last weeks for a client. Now OFBiz is running under Websphere Application Server Community
Edition 2 (WASCE) which  is derived from Geronimo 2.0.1. But I have a problem with Geronimo itself. I will commit soon with a
guidelines in  OFBiz doc, still  some tests to do... I used a simple approach, there are no changes in OFBiz but in appserver.

One point on which I failed is to allow multi-instances of OFBiz running in WASCE. I got conflicts between OFBiz modules when
wanting to run multi-instances. For instance webtools have the same names in each instance. I thought I had an easy solution, by
prefixing modules for each instance. But then I found 2 new problems.

To run, OFBiz needs a classpath with some sub-directories (mostly config, dtd, script) of each components. So I pass them to the
JVM. But I can't pass 2 classpathes (one for each instance) since I get conflict between them, though I'm not sure it's really a
problem

For the same reason, I must pass an "ofbiz.home" env value to the JVM and there I'm really caught.

Of course if we succeed on this issue, this will benefit to the community at large as it will allow to run many OFBiz instances with
only one  Tomcat engine (Geronimo embed Tomcat or Jetty). Commercially I believe it could be very interesting...

I'm confident we will find soon a solution to run OFBiz under Geronimo itself (I tried also wiht last version : 2.1). But actually
it's not a real problem as wasce 2 is available for free. I'm not sure about the sources though. Anyway, it's not bad to pretend
running under an IBM application server, PHBs like it ;o)

Jacques

From: "xpingxu" <[hidden email]>
> Hi,All
>  now the ofbiz can't be deployed on geronimo. why?
> somebody can be tell me. I remember the ofbiz 2.0 still
> can be deployed some of application server(like jboss or others)
> but now, where is the feature?
> Xu
>

Reply | Threaded
Open this post in threaded view
|

RE: about geronimo

Yousef Shemisa


-----Original Message-----
From: Jacques Le Roux [mailto:[hidden email]]
Sent: Sunday, March 30, 2008 23:51
To: [hidden email]
Subject: Re: about geronimo

I have done some work about that these last weeks for a client. Now OFBiz is
running under Websphere Application Server Community Edition 2 (WASCE) which
is derived from Geronimo 2.0.1. But I have a problem with Geronimo itself. I
will commit soon with a guidelines in  OFBiz doc, still  some tests to do...
I used a simple approach, there are no changes in OFBiz but in appserver.

One point on which I failed is to allow multi-instances of OFBiz running in
WASCE. I got conflicts between OFBiz modules when wanting to run
multi-instances. For instance webtools have the same names in each instance.
I thought I had an easy solution, by prefixing modules for each instance.
But then I found 2 new problems.

To run, OFBiz needs a classpath with some sub-directories (mostly config,
dtd, script) of each components. So I pass them to the JVM. But I can't pass
2 classpathes (one for each instance) since I get conflict between them,
though I'm not sure it's really a problem

For the same reason, I must pass an "ofbiz.home" env value to the JVM and
there I'm really caught.

Of course if we succeed on this issue, this will benefit to the community at
large as it will allow to run many OFBiz instances with only one  Tomcat
engine (Geronimo embed Tomcat or Jetty). Commercially I believe it could be
very interesting...

I'm confident we will find soon a solution to run OFBiz under Geronimo
itself (I tried also wiht last version : 2.1). But actually it's not a real
problem as wasce 2 is available for free. I'm not sure about the sources
though. Anyway, it's not bad to pretend running under an IBM application
server, PHBs like it ;o)

Jacques

From: "xpingxu" <[hidden email]>
> Hi,All
>  now the ofbiz can't be deployed on geronimo. why?
> somebody can be tell me. I remember the ofbiz 2.0 still can be
> deployed some of application server(like jboss or others) but now,
> where is the feature?
> Xu
>



Reply | Threaded
Open this post in threaded view
|

Re: about geronimo

xpingxu
Hi,yuesef
  thanks for replay. see the url "Updating a GBean's classloader"
http://mail-archives.apache.org/mod_mbox/geronimo-user/200602.mbox/%3C4560357B-A29F-4E88-9F22-64C825CAD3D7@...%3E

  in the 2006. core team has a approach for geronimo integration with gbean
model.
  but from the svn I don't find out code for this feature. I don't know,
what happen, the core team
don't implementation this feature.  if you know can tell me
  contribute your method (with geronimo), this is a good experience for
ofbizer.
  I hope ofbiz go to open......
Xu

On Mon, Mar 31, 2008 at 7:40 PM, Yousef Shemisa <[hidden email]>
wrote:

>
>
> -----Original Message-----
> From: Jacques Le Roux [mailto:[hidden email]]
> Sent: Sunday, March 30, 2008 23:51
> To: [hidden email]
> Subject: Re: about geronimo
>
> I have done some work about that these last weeks for a client. Now OFBiz
> is
> running under Websphere Application Server Community Edition 2 (WASCE)
> which
> is derived from Geronimo 2.0.1. But I have a problem with Geronimo itself.
> I
> will commit soon with a guidelines in  OFBiz doc, still  some tests to
> do...
> I used a simple approach, there are no changes in OFBiz but in appserver.
>
> One point on which I failed is to allow multi-instances of OFBiz running
> in
> WASCE. I got conflicts between OFBiz modules when wanting to run
> multi-instances. For instance webtools have the same names in each
> instance.
> I thought I had an easy solution, by prefixing modules for each instance.
> But then I found 2 new problems.
>
> To run, OFBiz needs a classpath with some sub-directories (mostly config,
> dtd, script) of each components. So I pass them to the JVM. But I can't
> pass
> 2 classpathes (one for each instance) since I get conflict between them,
> though I'm not sure it's really a problem
>
> For the same reason, I must pass an "ofbiz.home" env value to the JVM and
> there I'm really caught.
>
> Of course if we succeed on this issue, this will benefit to the community
> at
> large as it will allow to run many OFBiz instances with only one  Tomcat
> engine (Geronimo embed Tomcat or Jetty). Commercially I believe it could
> be
> very interesting...
>
> I'm confident we will find soon a solution to run OFBiz under Geronimo
> itself (I tried also wiht last version : 2.1). But actually it's not a
> real
> problem as wasce 2 is available for free. I'm not sure about the sources
> though. Anyway, it's not bad to pretend running under an IBM application
> server, PHBs like it ;o)
>
> Jacques
>
> From: "xpingxu" <[hidden email]>
> > Hi,All
> >  now the ofbiz can't be deployed on geronimo. why?
> > somebody can be tell me. I remember the ofbiz 2.0 still can be
> > deployed some of application server(like jboss or others) but now,
> > where is the feature?
> > Xu
> >
>
>
>
>
Reply | Threaded
Open this post in threaded view
|

Use Webservice inside

Yitao_Zhao
In reply to this post by Jacques Le Roux
Hi all
    I hope to get some hints about the webservice
    I configured the service.xml in my project like below:
     <service name="createPerson" engine="java">
         <attribute name="firstName" type="String" mode="IN"
optional="False"/>
         <attribute name="lastName" type="String" mode="IN"
optional="False"/>
     </service>
     <service name="createPartyRole" engine="simple">
               <attribute name="partyId" type="String" mode="INOUT"
optional="True"/>
           <attribute name="roleTypeId" type="String" mode="IN"
optional="False"/>
     </service>

Then I try to use the webservice in the java code for remote webservice like
below:
      @WebMethod
      Public String createCustomer(String customer){
           .
           .
           LocalDispatcher
local=GenericDispatcher.getLocalDispatcher("projectName",
 
GenericDelegator.getGenericDelegator(("default")));
                   DispatchContext context=local.getDispatchContext();
           Try{
                  Map = local.runSync("createPerson",map);
                  String partyId = map.get("partyId");
                  Map = local.runSync("createPartyRole",UtilMisc.toMap(...);
              }catch(Exception e){
                Return e.getLocalMessage();
                        }
                 
When I try to run createPartyRole webservice, it tell me "User authorization
is required for this service: createPartyRole"
How to add authentication to a webservice, any hints would be
appreciate........



Reply | Threaded
Open this post in threaded view
|

RE: Use Webservice inside

Nikita Shinde
Hi,

        You have to pass the userLoginId too in the map

        Map = local.runSync("createPartyRole",UtilMisc.toMap("userLoginId",
userLoginId, ...);


Thanks,
Nikita Shinde.
Amicon Technologies Pvt. Ltd.
Mumbai.


-----Original Message-----
From: Yitao_Zhao [mailto:[hidden email]]
Sent: Tuesday, April 01, 2008 12:06 PM
To: [hidden email]
Subject: Use Webservice inside

Hi all
    I hope to get some hints about the webservice
    I configured the service.xml in my project like below:
     <service name="createPerson" engine="java">
         <attribute name="firstName" type="String" mode="IN"
optional="False"/>
         <attribute name="lastName" type="String" mode="IN"
optional="False"/>
     </service>
     <service name="createPartyRole" engine="simple">
               <attribute name="partyId" type="String" mode="INOUT"
optional="True"/>
           <attribute name="roleTypeId" type="String" mode="IN"
optional="False"/>
     </service>

Then I try to use the webservice in the java code for remote webservice like
below:
      @WebMethod
      Public String createCustomer(String customer){
           .
           .
           LocalDispatcher
local=GenericDispatcher.getLocalDispatcher("projectName",
 
GenericDelegator.getGenericDelegator(("default")));
                   DispatchContext context=local.getDispatchContext();
           Try{
                  Map = local.runSync("createPerson",map);
                  String partyId = map.get("partyId");
                  Map = local.runSync("createPartyRole",UtilMisc.toMap(...);
              }catch(Exception e){
                Return e.getLocalMessage();
                        }
                 
When I try to run createPartyRole webservice, it tell me "User authorization
is required for this service: createPartyRole"
How to add authentication to a webservice, any hints would be
appreciate........



Reply | Threaded
Open this post in threaded view
|

RE: Use Webservice inside

Nikita Shinde
Oops! its userLogin(GenericValue) not userLoginId :)


-----Original Message-----
From: Nikita Shinde [mailto:[hidden email]]
Sent: Tuesday, April 01, 2008 12:18 PM
To: [hidden email]
Subject: RE: Use Webservice inside

Hi,

        You have to pass the userLoginId too in the map

        Map = local.runSync("createPartyRole",UtilMisc.toMap("userLoginId",
userLoginId, ...);


Thanks,
Nikita Shinde.
Amicon Technologies Pvt. Ltd.
Mumbai.


-----Original Message-----
From: Yitao_Zhao [mailto:[hidden email]]
Sent: Tuesday, April 01, 2008 12:06 PM
To: [hidden email]
Subject: Use Webservice inside

Hi all
    I hope to get some hints about the webservice
    I configured the service.xml in my project like below:
     <service name="createPerson" engine="java">
         <attribute name="firstName" type="String" mode="IN"
optional="False"/>
         <attribute name="lastName" type="String" mode="IN"
optional="False"/>
     </service>
     <service name="createPartyRole" engine="simple">
               <attribute name="partyId" type="String" mode="INOUT"
optional="True"/>
           <attribute name="roleTypeId" type="String" mode="IN"
optional="False"/>
     </service>

Then I try to use the webservice in the java code for remote webservice like
below:
      @WebMethod
      Public String createCustomer(String customer){
           .
           .
           LocalDispatcher
local=GenericDispatcher.getLocalDispatcher("projectName",
 
GenericDelegator.getGenericDelegator(("default")));
                   DispatchContext context=local.getDispatchContext();
           Try{
                  Map = local.runSync("createPerson",map);
                  String partyId = map.get("partyId");
                  Map = local.runSync("createPartyRole",UtilMisc.toMap(...);
              }catch(Exception e){
                Return e.getLocalMessage();
                        }
                 
When I try to run createPartyRole webservice, it tell me "User authorization
is required for this service: createPartyRole"
How to add authentication to a webservice, any hints would be
appreciate........



Reply | Threaded
Open this post in threaded view
|

Re: about geronimo

Jacques Le Roux
Administrator
In reply to this post by xpingxu
I explain how to make it works with IBM WASCE 2  (which is dervived from Geronimo 2.0.1) here
http://docs.ofbiz.org/pages/viewpage.action?pageId=4098
It's not a sophisticate approach, but it works fine for now. You will find all what is needed in framework/appserver/wasce2

As it's explained in the link above, it does not work with Geronimo 2.0.1 yet. I will open a Geronimo Jira soon.
Moreover I wonder if, in the case of Geronino, Little-G could not be a way to go : in the way I did it we don't need GBeans.

Some facts : running OFBiz in Geronimo implies a 2xfootprint, from which my Little-G expectation.
Independently of my client's need, I saw an advantage in using Geronimo : we could expect to run OFBiz multi-instances in one
application server. But as I explain in the link above there are still some problems to fix.

Jacques

From: "xpingxu" <[hidden email]>

> Hi,yuesef
>  thanks for replay. see the url "Updating a GBean's classloader"
> http://mail-archives.apache.org/mod_mbox/geronimo-user/200602.mbox/%3C4560357B-A29F-4E88-9F22-64C825CAD3D7@...%3E
>
>  in the 2006. core team has a approach for geronimo integration with gbean
> model.
>  but from the svn I don't find out code for this feature. I don't know,
> what happen, the core team
> don't implementation this feature.  if you know can tell me
>  contribute your method (with geronimo), this is a good experience for
> ofbizer.
>  I hope ofbiz go to open......
> Xu
>
> On Mon, Mar 31, 2008 at 7:40 PM, Yousef Shemisa <[hidden email]>
> wrote:
>
>>
>>
>> -----Original Message-----
>> From: Jacques Le Roux [mailto:[hidden email]]
>> Sent: Sunday, March 30, 2008 23:51
>> To: [hidden email]
>> Subject: Re: about geronimo
>>
>> I have done some work about that these last weeks for a client. Now OFBiz
>> is
>> running under Websphere Application Server Community Edition 2 (WASCE)
>> which
>> is derived from Geronimo 2.0.1. But I have a problem with Geronimo itself.
>> I
>> will commit soon with a guidelines in  OFBiz doc, still  some tests to
>> do...
>> I used a simple approach, there are no changes in OFBiz but in appserver.
>>
>> One point on which I failed is to allow multi-instances of OFBiz running
>> in
>> WASCE. I got conflicts between OFBiz modules when wanting to run
>> multi-instances. For instance webtools have the same names in each
>> instance.
>> I thought I had an easy solution, by prefixing modules for each instance.
>> But then I found 2 new problems.
>>
>> To run, OFBiz needs a classpath with some sub-directories (mostly config,
>> dtd, script) of each components. So I pass them to the JVM. But I can't
>> pass
>> 2 classpathes (one for each instance) since I get conflict between them,
>> though I'm not sure it's really a problem
>>
>> For the same reason, I must pass an "ofbiz.home" env value to the JVM and
>> there I'm really caught.
>>
>> Of course if we succeed on this issue, this will benefit to the community
>> at
>> large as it will allow to run many OFBiz instances with only one  Tomcat
>> engine (Geronimo embed Tomcat or Jetty). Commercially I believe it could
>> be
>> very interesting...
>>
>> I'm confident we will find soon a solution to run OFBiz under Geronimo
>> itself (I tried also wiht last version : 2.1). But actually it's not a
>> real
>> problem as wasce 2 is available for free. I'm not sure about the sources
>> though. Anyway, it's not bad to pretend running under an IBM application
>> server, PHBs like it ;o)
>>
>> Jacques
>>
>> From: "xpingxu" <[hidden email]>
>> > Hi,All
>> >  now the ofbiz can't be deployed on geronimo. why?
>> > somebody can be tell me. I remember the ofbiz 2.0 still can be
>> > deployed some of application server(like jboss or others) but now,
>> > where is the feature?
>> > Xu
>> >
>>
>>
>>
>>
>

Reply | Threaded
Open this post in threaded view
|

答复: Use Webservice inside

Yitao_Zhao
In reply to this post by Nikita Shinde
Thanks for the hints about the using webservice...



-----邮件原件-----
发件人: Nikita Shinde [mailto:[hidden email]]
发送时间: 2008年4月1日 14:48
收件人: [hidden email]
主题: RE: Use Webservice inside

Hi,

        You have to pass the userLoginId too in the map

        Map = local.runSync("createPartyRole",UtilMisc.toMap("userLoginId",
userLoginId, ...);


Thanks,
Nikita Shinde.
Amicon Technologies Pvt. Ltd.
Mumbai.


-----Original Message-----
From: Yitao_Zhao [mailto:[hidden email]]
Sent: Tuesday, April 01, 2008 12:06 PM
To: [hidden email]
Subject: Use Webservice inside

Hi all
    I hope to get some hints about the webservice
    I configured the service.xml in my project like below:
     <service name="createPerson" engine="java">
         <attribute name="firstName" type="String" mode="IN"
optional="False"/>
         <attribute name="lastName" type="String" mode="IN"
optional="False"/>
     </service>
     <service name="createPartyRole" engine="simple">
               <attribute name="partyId" type="String" mode="INOUT"
optional="True"/>
           <attribute name="roleTypeId" type="String" mode="IN"
optional="False"/>
     </service>

Then I try to use the webservice in the java code for remote webservice like
below:
      @WebMethod
      Public String createCustomer(String customer){
           .
           .
           LocalDispatcher
local=GenericDispatcher.getLocalDispatcher("projectName",
 
GenericDelegator.getGenericDelegator(("default")));
                   DispatchContext context=local.getDispatchContext();
           Try{
                  Map = local.runSync("createPerson",map);
                  String partyId = map.get("partyId");
                  Map = local.runSync("createPartyRole",UtilMisc.toMap(...);
              }catch(Exception e){
                Return e.getLocalMessage();
                        }
                 
When I try to run createPartyRole webservice, it tell me "User authorization
is required for this service: createPartyRole"
How to add authentication to a webservice, any hints would be
appreciate........