Client Application Container

2009-08-06 Thread expectnothing

Hi,

I am currently trying to port a number of Java SE applications to a Geronimo
app server.  We are still looking to keep the fat client gui's as our ui for
the applications, with a web app for the read only aspects. 

As I'm new to Geronimo I have a few questions:

If a swing ui is deployed as an app client, what benefits are there over a
standalone client accessing the ejb jars (aside from using the server side
VM)?

Is there any need to deploy standalone clients to the server?

If the swing ui is deployed as an app client, is the user required to have
access to the geronimo bin/client.jar?

If I separate business logic (deplyed as ejb jars) from the swing ui how can
I access these from the deployed ui application.  I am already aware of how
to do this with a standalone client?

Sorry for all the questions, but I am finding some rather large holes in the
geronimo documentation for use with fat clients.

Thanks in advance.
-- 
View this message in context: 
http://www.nabble.com/Client-Application-Container-tp24841075s134p24841075.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



war framework / external jar setup

2009-08-06 Thread Marco Laponder
Hi erveryone,

 

I need some advice on the following situation. We have a war with a
framework which based on configuration in the database and use of
reflection dynamically can call a method of a java class. When this
class is present in a jar (lets call it impl.jar) which is located in
WEB-INF/lib it works as expected.

 

However what I want to accomplish is:

1)   have the impl.jar not included in the WEB-INF but at an
alternate external location, so for a new impl.jar we need not redeploy
the war 

2)   once the jar has been altered I probably need to force a reload
of the classes already loaded by the Geronimo classloader. Is this
possible and how can this be accomplished

 

When I am completely off the track or have any other advice which could
help me just point me in the right direction, any documentation or
google terms will be appreciated.

 

Kind regards,

Marco Laponder

 



Re: war framework / external jar setup

2009-08-06 Thread chi runhua
Here are some thoughts for your reference.

First, unpack your jar and use --inPlace option[1] to deploy it into
Geronimo Repository, then add a dependency in the deployment plan of war[2].

Doc for reference.

[1]http://cwiki.apache.org/GMOxDOC22/deploy.html#deploy-Deploy
[2]
http://cwiki.apache.org/GMOxDOC22/adding-jars-to-the-geronimo-repository.html#AddingJARstotheGeronimorepository-Definethedependencyinthedeploymentplan

Jeff C

On Thu, Aug 6, 2009 at 7:34 PM, Marco Laponder marco.lapon...@kewill.comwrote:

  Hi erveryone,



 I need some advice on the following situation. We have a war with a
 framework which based on configuration in the database and use of reflection
 dynamically can call a method of a java class. When this class is present in
 a jar (lets call it impl.jar) which is located in WEB-INF/lib it works as
 expected.



 However what I want to accomplish is:

 1)   have the impl.jar not included in the WEB-INF but at an alternate
 external location, so for a new impl.jar we need not redeploy the war

 2)   once the jar has been altered I probably need to force a reload
 of the classes already loaded by the Geronimo classloader. Is this possible
 and how can this be accomplished



 When I am completely off the track or have any other advice which could
 help me just point me in the right direction, any documentation or google
 terms will be appreciated.



 Kind regards,

 Marco Laponder





RE: war framework / external jar setup

2009-08-06 Thread Marco Laponder
I can't seem to get the -inPlace option to work, I am trying:

 

deploy -u system -p manager install-library --groupId com.test --inPlace
c:\inplace

 

This gives me the error:

 

Too many arguments.

 

Help for command: install-library

   install-library [--groupId grp] LibraryFile

 

 

   Installs a library file into repository.

 

   If a groupId is provided, the library file will be installed

   under that groupId. Otherwise, default will be used. The

   artifactId, version and type are computed from the library file

   name which should be in the form artifactId-version.type,

   for e.g. mylib-1.0.jar.

 

 

Do I need a specific version of Geronimo or am I doing something else
incorrect ? 

 

Kind regards,

Marco



Van: chi runhua [mailto:chirun...@gmail.com] 
Verzonden: donderdag 6 augustus 2009 14:35
Aan: user@geronimo.apache.org
Onderwerp: Re: war framework / external jar setup

 

Here are some thoughts for your reference.

First, unpack your jar and use --inPlace option[1] to deploy it into
Geronimo Repository, then add a dependency in the deployment plan of
war[2].

Doc for reference.

[1]http://cwiki.apache.org/GMOxDOC22/deploy.html#deploy-Deploy
[2]http://cwiki.apache.org/GMOxDOC22/adding-jars-to-the-geronimo-reposit
ory.html#AddingJARstotheGeronimorepository-Definethedependencyinthedeplo
ymentplan

Jeff C

On Thu, Aug 6, 2009 at 7:34 PM, Marco Laponder
marco.lapon...@kewill.com wrote:

Hi erveryone,

 

I need some advice on the following situation. We have a war with a
framework which based on configuration in the database and use of
reflection dynamically can call a method of a java class. When this
class is present in a jar (lets call it impl.jar) which is located in
WEB-INF/lib it works as expected.

 

However what I want to accomplish is:

1)   have the impl.jar not included in the WEB-INF but at an
alternate external location, so for a new impl.jar we need not redeploy
the war 

2)   once the jar has been altered I probably need to force a reload
of the classes already loaded by the Geronimo classloader. Is this
possible and how can this be accomplished

 

When I am completely off the track or have any other advice which could
help me just point me in the right direction, any documentation or
google terms will be appreciated.

 

Kind regards,

Marco Laponder

 

 



Re: war framework / external jar setup

2009-08-06 Thread chi runhua
Unpack your jar to c:\myjar, then use

deploy -u system -p manager deploy --inPlace c:\myjar

this should work, just tried on my side.

Jeff C


On Thu, Aug 6, 2009 at 8:59 PM, Marco Laponder marco.lapon...@kewill.comwrote:

  I can’t seem to get the –inPlace option to work, I am trying:



 deploy -u system -p manager install-library --groupId com.test --inPlace
 c:\inplace



 This gives me the error:



 Too many arguments.



 Help for command: install-library

install-library [--groupId grp] LibraryFile





Installs a library file into repository.



If a groupId is provided, the library file will be installed

under that groupId. Otherwise, default will be used. The

artifactId, version and type are computed from the library file

name which should be in the form artifactId-version.type,

for e.g. mylib-1.0.jar.





 Do I need a specific version of Geronimo or am I doing something else
 incorrect ?



 Kind regards,

 Marco
  --

 *Van:* chi runhua [mailto:chirun...@gmail.com]
 *Verzonden:* donderdag 6 augustus 2009 14:35
 *Aan:* user@geronimo.apache.org
 *Onderwerp:* Re: war framework / external jar setup



 Here are some thoughts for your reference.

 First, unpack your jar and use --inPlace option[1] to deploy it into
 Geronimo Repository, then add a dependency in the deployment plan of war[2].

 Doc for reference.

 [1]http://cwiki.apache.org/GMOxDOC22/deploy.html#deploy-Deploy
 [2]
 http://cwiki.apache.org/GMOxDOC22/adding-jars-to-the-geronimo-repository.html#AddingJARstotheGeronimorepository-Definethedependencyinthedeploymentplan

 Jeff C

 On Thu, Aug 6, 2009 at 7:34 PM, Marco Laponder marco.lapon...@kewill.com
 wrote:

 Hi erveryone,



 I need some advice on the following situation. We have a war with a
 framework which based on configuration in the database and use of reflection
 dynamically can call a method of a java class. When this class is present in
 a jar (lets call it impl.jar) which is located in WEB-INF/lib it works as
 expected.



 However what I want to accomplish is:

 1)   have the impl.jar not included in the WEB-INF but at an alternate
 external location, so for a new impl.jar we need not redeploy the war

 2)   once the jar has been altered I probably need to force a reload
 of the classes already loaded by the Geronimo classloader. Is this possible
 and how can this be accomplished



 When I am completely off the track or have any other advice which could
 help me just point me in the right direction, any documentation or google
 terms will be appreciated.



 Kind regards,

 Marco Laponder







RE: war framework / external jar setup

2009-08-06 Thread Marco Laponder
Jeff,

 

Are there any restrictions on the jar ? The jar only contains a POJO but
it seems it expects a J2EE deployment descriptor. It gives me the error:

 

Error: Unable to distribute inplace: Cannot deploy the requested

application module because no deployer is able to handle it.  This

can happen if you have omitted the J2EE deployment descriptor,

disabled a deployer module, or if, for example, you are trying to

deploy an EJB module on a minimal Geronimo server that does not have

EJB support installed.  (moduleFile=c:\inplace)

 

Kind regards,

Marco



Van: chi runhua [mailto:chirun...@gmail.com] 
Verzonden: donderdag 6 augustus 2009 15:17
Aan: user@geronimo.apache.org
Onderwerp: Re: war framework / external jar setup

 

Unpack your jar to c:\myjar, then use 

deploy -u system -p manager deploy --inPlace c:\myjar

this should work, just tried on my side.

Jeff C



On Thu, Aug 6, 2009 at 8:59 PM, Marco Laponder
marco.lapon...@kewill.com wrote:

I can't seem to get the -inPlace option to work, I am trying:

 

deploy -u system -p manager install-library --groupId com.test --inPlace
c:\inplace

 

This gives me the error:

 

Too many arguments.

 

Help for command: install-library

   install-library [--groupId grp] LibraryFile

 

 

   Installs a library file into repository.

 

   If a groupId is provided, the library file will be installed

   under that groupId. Otherwise, default will be used. The

   artifactId, version and type are computed from the library file

   name which should be in the form artifactId-version.type,

   for e.g. mylib-1.0.jar.

 

 

Do I need a specific version of Geronimo or am I doing something else
incorrect ? 

 

Kind regards,

Marco



Van: chi runhua [mailto:chirun...@gmail.com] 
Verzonden: donderdag 6 augustus 2009 14:35
Aan: user@geronimo.apache.org
Onderwerp: Re: war framework / external jar setup

 

Here are some thoughts for your reference.

First, unpack your jar and use --inPlace option[1] to deploy it into
Geronimo Repository, then add a dependency in the deployment plan of
war[2].

Doc for reference.

[1]http://cwiki.apache.org/GMOxDOC22/deploy.html#deploy-Deploy
[2]http://cwiki.apache.org/GMOxDOC22/adding-jars-to-the-geronimo-reposit
ory.html#AddingJARstotheGeronimorepository-Definethedependencyinthedeplo
ymentplan

Jeff C

On Thu, Aug 6, 2009 at 7:34 PM, Marco Laponder
marco.lapon...@kewill.com wrote:

Hi erveryone,

 

I need some advice on the following situation. We have a war with a
framework which based on configuration in the database and use of
reflection dynamically can call a method of a java class. When this
class is present in a jar (lets call it impl.jar) which is located in
WEB-INF/lib it works as expected.

 

However what I want to accomplish is:

1)   have the impl.jar not included in the WEB-INF but at an
alternate external location, so for a new impl.jar we need not redeploy
the war 

2)   once the jar has been altered I probably need to force a reload
of the classes already loaded by the Geronimo classloader. Is this
possible and how can this be accomplished

 

When I am completely off the track or have any other advice which could
help me just point me in the right direction, any documentation or
google terms will be appreciated.

 

Kind regards,

Marco Laponder

 

 

 



Re: war framework / external jar setup

2009-08-06 Thread Rodger
For easy, try the second linked doc using the admin console.

Or
If the command has any problem(in fact,it works smoothly), you can manually
 create  a repository directory in geronimo-home/repository.suppose the
jar is impl.jar, put it into a directory,like
geronimo-home/repository/com/group/impl/impl.jar
And then add a dependency in you deployment plan,like
dependencies
dependency
groupIdcom.group/groupId
artifactIdimpl/artifactId
typejar/type
/dependency
/dependencies

-- 
Best Regards,
Rodger.


Re: war framework / external jar setup

2009-08-06 Thread chi runhua
Quote from Doc The --inPlace option allows you point to and deploy an
application directly from a directory external to Geornimo without the need
for even packaging the application.

So the jar should be unpacked and in its full-blown structure. In this way,
you can update the classes within it without redeploying.

After the directory is deployed, insert the dependency in the deployment
plan of your WAR.

Hope this answers your question.

Jeff C


Re: war framework / external jar setup

2009-08-06 Thread David Jencks
While the suggestion of deploying your entire app in-place will  
almost certainly work, it has a number of limitations -- in-place is  
really only designed for development and does not work well with the  
geronimo plugin packaging and distribution system.


What may work better for you is to deploy your jar directly into the  
geronimo repository and include a dependency on it in the geronimo  
plan for your web app.  If you update the jar (copying the new version  
on top of the old one in the geronimo repository) then if you restart  
the web app you will see the new classes.


This method works well with maven and geronimo plugins.  For instance,  
if your jar and web app are built with maven, and you pre-package your  
app as a geronimo plugin, installing the plugin into a geronimo  
instance will also pull in the external jar.


hope this helps
david jencks

On Aug 6, 2009, at 4:34 AM, Marco Laponder wrote:


Hi erveryone,

I need some advice on the following situation. We have a war with a  
framework which based on configuration in the database and use of  
reflection dynamically can call a method of a java class. When this  
class is present in a jar (lets call it impl.jar) which is located  
in WEB-INF/lib it works as expected.


However what I want to accomplish is:
1)   have the impl.jar not included in the WEB-INF but at an  
alternate external location, so for a new impl.jar we need not  
redeploy the war
2)   once the jar has been altered I probably need to force a  
reload of the classes already loaded by the Geronimo classloader. Is  
this possible and how can this be accomplished


When I am completely off the track or have any other advice which  
could help me just point me in the right direction, any  
documentation or google terms will be appreciated.


Kind regards,
Marco Laponder





Re: Daytrader plugins not installable on Geronimo 2.1.3

2009-08-06 Thread totallysucks

Thanks for the help, I eventually got things working by compiling from the
2.1.3 branch.




Alternativly you can use 
http://download.boulder.ibm.com/ibmdl/pub/software/websphere/wasce/plugins-2.1.1.1/
http://download.boulder.ibm.com/ibmdl/pub/software/websphere/wasce/plugins-2.1.1.1/
 

for Geronimo 2.1.3 or
http://download.boulder.ibm.com/ibmdl/pub/software/websphere/wasce/plugins-2.1.1.2/
http://download.boulder.ibm.com/ibmdl/pub/software/websphere/wasce/plugins-2.1.1.2/
 
for Geronimo 2.1.4.


Vamsavardhana Reddy-2 wrote:
 
 Build the daytrader application from 2.1.3 branch URL
 http://svn.apache.org/repos/asf/geronimo/daytrader/branches/2.1.3/
 
 
 

-- 
View this message in context: 
http://www.nabble.com/Daytrader-plugins-%22not-installable%22-on-Geronimo-2.1.3-tp24821056s134p24858036.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Deploy EJBCA to Geronimo

2009-08-06 Thread stupidtss

Hi.  I am new to Geronimo and actually any of the java middleware.  I find
Geronimo started very quickly in my old PC (with 256MB RAM only) and I want
to deploy a J2EE PKI Certification system called EJBCA to Geronimo.  Can
anyone give me some advice or how to begin with?  The website of EJBCA is
provided below.

https://sourceforge.net/projects/ejbca/

Thanks.
-- 
View this message in context: 
http://www.nabble.com/Deploy-EJBCA-to-Geronimo-tp24858503s134p24858503.html
Sent from the Apache Geronimo - Users mailing list archive at Nabble.com.



Re: Deploy EJBCA to Geronimo

2009-08-06 Thread David Jencks


On Aug 6, 2009, at 9:10 PM, stupidtss wrote:



Hi.  I am new to Geronimo and actually any of the java middleware.   
I find
Geronimo started very quickly in my old PC (with 256MB RAM only) and  
I want
to deploy a J2EE PKI Certification system called EJBCA to Geronimo.   
Can
anyone give me some advice or how to begin with?  The website of  
EJBCA is

provided below.

https://sourceforge.net/projects/ejbca/


It is not very obvious to me what ejbca does and there doesn't appear  
to be any obvious documentation.  Geronimo ships with some CA tools,  
you might want to look at them and see if they are adequate.


If not, unless you find someone who has already deployed ejbca to  
geronimo, you will probably have to do some experimentation.  I would  
imagine it is a javaee application, so the first thing to do is to try  
to deploy it on geronimo.  You will probably need a geronimo plan.   
The geronimo admin console has some tools to help write plans, and the  
geronimo eclipse plugin also has some tools.  If you investigate  
enough to figure out what the application modules are and what kinds  
of problems you have when deploying you would be in a much better  
position to ask for help.


thanks
david jencks



Thanks.
--
View this message in context: 
http://www.nabble.com/Deploy-EJBCA-to-Geronimo-tp24858503s134p24858503.html
Sent from the Apache Geronimo - Users mailing list archive at  
Nabble.com.