Skip to main content

updgrade glassfish 3.1.2.2 to 4.0

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
5 replies [Last post]
peppeme
Offline
Joined: 2007-05-30

Reading https://glassfish.java.net/docs/4.0/upgrade-guide.pdf it seems that isn't possibile upgrade by pkg from 3.1.2.2 to 4.0

why?

In a production system is very hard to re-configurate the entire server with a new installation.
I'm searching a simple way to upgrade 3.1.2.2 to 4.0

Any tips?
thanks

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
peppeme
Offline
Joined: 2007-05-30

Ok, it si possible to upgrade glassfish 4.0 in a side by side way.

But why it is not implemented pkg upgrade like the previous version?

pires
Offline
Joined: 2012-06-01

Firstly, I wouldn't recommend upgrading GF3 to GF4 without trying your apps in a GF4 environment.

Secondly, can you talk a bit more about your use-case? Stating that "it is very hard to re-configure the entire server" is too vague to discuss this further.

I for one have upgraded - reinstalled - some servers very easily and in no-time.

peppeme
Offline
Joined: 2007-05-30

Thank you for your response.

Trying the apps in gf4 environment is right way, but I will do it upgrading locally first (if exist automatic upgrade procedure) a gf 3.1.2.2 to 4.0.

About configure again the server:

- Add File and Jdbc Realm
- Add Jndi Resource (JDBC, pool and mail session)
- Configure the server options: jvm, thread-pool, listener, virtual server, monitoring,etc.
- Install the external jar library
- Deploy all the apps.
- Configure EJB Timer to mysql instead java derby

If I can't by pkg utility, is it possibile to do a backup domain and restore it in a new glassfish 4.0 installation?

pires
Offline
Joined: 2012-06-01

You can do all of that with GF tools, such as asadmin. Just write a bash script or something that fits your needs.

pauldavies
Offline
Joined: 2007-01-03

And you can also use asadmin to run a set of |asadmin| subcommands from
a file
.

On 09/12/13 07:38, forums@java.net wrote:
> You can do all of that with GF tools, such as asadmin. Just write a bash
> script or something that fits your needs.
>
> --
>
> [Message sent by forum member 'pires']
>
> View Post: http://forums.java.net/node/898740
>
>

--

Oracle
Paul Davies| Principal Technical Writer| +1.408.276.3413
Oracle GlassFish Server Documentation
4220 Network Circle, Santa Clara CA 95054, USA

Green Oracle Oracle is committed to
developing practices and products that help protect the environment