Is it possible to redeploy Optional Package(J2EELibrary)without versioning?
Currently, I decided to use Optional Package feature for one of our common shared jar file as it is referenced by our multiple applications (ear files). I can understand, how I can deploy multiple version of the optional package in order for the referencing application to use it. I am planning to use this version feature for optional package in our Production Environment. However, my issue is I don't want to use this version feature in our development environment as it involves more work for the developers (overhead on the developers to specify the optional package version in their referencing application). Is there any way I can redeploy optional package in development environment? I can only redeploy only after undeploying all my 6 referencing applications, which is taking more time.
Does any one have an example to implement Optional Package and versioning it?
Similar Messages
-
Restart deployment (.ear) does not load optional package
Hello everybody,
In our 10.3.5 WLS domains, we are using optional packages for sharing libraries between applications see [http://docs.oracle.com/cd/E24329_01/web.1211/e24368/libraries.htm|Creating Shared Java EE Libraries and Optional Packages]
The problem is that if I redeploy the library I have to redeploy the deployment. This issue only happens with the applications packaged as *.ear*. If the application has been deployed as a .war, with restarting the deployment is enough.
Would be possible to load the referenced library from an *.ear* just restarting the deployment?
Thanks in advance,
LuisThanks Vimala,
I have 1 ear project and 1 web service project.
Attached my ant output when I run the build.xml.
C:\wivWorkSpace\wivApp>ant build -Dworkspace=C:/wivWorkSpace
Buildfile: build.xml
init.env:
init.typedefs:
init:
build:
[echo] project.name = wivApp
init:
build:
[echo] wivWS: C:\wivWorkSpace\wivWS\build.xml
BUILD SUCCESSFUL
Total time: 23 seconds
C:\wivWorkSpace\wivApp>ant build -Dworkspace=C:/wivWorkSpace archive
Buildfile: build.xml
init.env:
init.typedefs:
init:
build:
[echo] project.name = wivApp
init:
build:
[echo] wivWS: C:\wivWorkSpace\wivWS\build.xml
init.env:
init.typedefs:
init:
stage:
[delete] Deleting directory C:\wivWorkSpace\wivApp\.staging
[mkdir] Created dir: C:\wivWorkSpace\wivApp\.staging
[copy] Copying 13 files to C:\wivWorkSpace\wivApp\.staging
BUILD FAILED
C:\wivWorkSpace\wivApp\build.xml:192: The following error occurred while executing this line:
jar:file:/C:/BEAPLA%7e1/WEBLOG%7e1/workshop/lib/wlw-antlib.jar!/com/bea/wlw/antlib/antlib.xml:91: The follow
ng this line:
C:\wivWorkSpace\wivApp\build.xml:204: The following error occurred while executing this line:
Target `stage.to.ear' does not exist in this project.
Total time: 15 seconds -
How can I add optional package (example the MMAPI) for a phone that does not implement it natively?
is it possible?
Example we have a P900 that does not support MMAPI for video... is it possible to extend its possibilities?
Many thanks
Greg(oops, error in previous post... wrong tag...)
Hi Greg,
In theory this would be possible, yes... However, this might be a lot of work because you will have to develop it in Java (as you cannot use a native language like C, there's no public native interface). This means that you will need to write things like playing back a video (from a stream), etc etc... All in Java; with its limitations. Sound playback (probably?) can be covered by the MMAPI (so you might need to extend a few pieces from MMAPI and use that within your Java Video MMAPI).
Cheers -
Attaching optional package to the java working environment
Hi to all.
my question is how to attach optional packages like SATA optional package to the Java working environmentYou want to add optional API in emulator or device ?? In the device its not possible and for emulator, add the jar file in lib.
Hope this helped you. -
Generic Connection Framework Optional Package for J2SE
i have learnt that the Generic Connection Framework Optional Package can be used to make J2SE able to use J2ME classes. However, how can i implement the package so that i can do so.
Thank you for your advice.http://developers.sun.com/techtopics/mobility/midp/articles/genericframework/
-
I am making a microphone, is it possible to record and play at same time in swift, is there a option to record without storing the file
Its pretty simple with FMS. You just need to do following things:
Publish using FMLE with following settings: (just telling which are needed , rest you configure based on your needs)
Video codec: H.264
Audio Codec: <of your choice>
Server ip: rtmp://<server-uri>/<app-name>
Stream Name: mp4:<stream-name>.f4v
Application : Server-side code
application.onPublish = function(myclient,mystream){
mystream.record();
application.onUnpublish = function(myclient,mystream){
mystream.record(false);
Have a client , which subscribes in following live mode:-
ns.play("mp4:<stream-name>.f4v",-1,0,true); // this is subscribing in live mode
In this way even if file is recorded, your clients are subscribing in live mode so all will be in sync.
Now if you want to disallow any clients who will try to subscribe to "recorded" file when live event is going on, you can achieve using auth adaptor. (let me know if you want to enforce such requirement)
But i think above solution solves your primary problem. Also please let me know if there are any issues in getting it work , i have given bare minimum which is required. -
Is it possible inscribe all the packages into a single package ??
Hi,
In Oracle 10g , Is it possible inscribe all the packages into a single package ??
Because, my PM Is asking me to inscribe all the Packages into Single Package and give same reference to the .Net developers.
I have tried a lot, but i am not finding out the right solution for this ., and even i am bit confused whether is this possible or not.
Can any one please suggest me how to achieve this it it's possible in Oracle.You mean something like...
-- First package with functions in it...
SQL> create package mypack1 as
2 function myfunc1 return number;
3 end;
4 /
Package created.
-- assume a package body is created for this as well
-- Second package with functions in it...
SQL> create package mypack2 as
2 function myfunc2 return number;
3 end;
4 /
Package created.
-- assume a package body is created for this as well
-- One package encompassing other packages...
SQL> create package allpacks as
2 function myfunc1 return number;
3 function myfunc2 return number;
4 end;
5 /
Package created.
SQL> create package body allpacks as
2 function myfunc1 return number is
3 begin
4 return mypack1.myfunc1;
5 end;
6
7 function myfunc2 return number is
8 begin
9 return mypack2.myfunc2;
10 end;
11 end;
12 /
Package body created.
SQL>;) -
Optional Package - startup behavior
Hi guys,
Hi have an optional package (similar to a shared library) that is referenced by two different applications. This optional package is a jar file.
When I 've a web application (WAR) I know that WebLogic will use the exploded directory in .../tmp/_WL_user to load the application, but which is the behavior when i'm using a jar file?
ThanksHi Amol,
WebLogic jDriver for Oracle fully supports the JDBC 2.0 Optional Package API for
distributed transactions.
Laurent Goldsztejn
Developer Relations Engineer
BEA Support
"amol desai" <[email protected]> wrote:
>
Do you support the optional package features? If yes , how? -
Optional package feature supported
Do you support the optional package features? If yes , how?
Hi Amol,
WebLogic jDriver for Oracle fully supports the JDBC 2.0 Optional Package API for
distributed transactions.
Laurent Goldsztejn
Developer Relations Engineer
BEA Support
"amol desai" <[email protected]> wrote:
>
Do you support the optional package features? If yes , how? -
How can I alter the track sequence of an album? It used to be possible through Get Info on old iTunes, but it doesn't seem to be an option in the new version.
Right click - get info.
-
Hello,
I would like to know if there is any way to include in my application an optional package just in case the device does not have it in its Runtime Environment.
What I was thinking is more like including all the classes from a jar file (e.g j2me-ws.jar JSR172) in my application's jar file.
Thanks in advance,
NickHi there,
The reason it did not work is because it failed to decode doubles. But once I replaced the doubles in my WS with Strings everything went smoothly.
Note: I was using CLDC1.1 so doubles should have been supported(The WTK emulators worked just fine, but the Nokia and Sony Ericsson emulators didn't).
SO for everybody out there: try not to use doubles in your WS for the moment :) (WTK 2.2)
Cheers, Nick -
Confusion with JDBC Optional Package for CDC.
I am somewhat confused as to where this optional package fits.
1. Is the implementation of this optional package to be COMPLETELY supplied by the database vendor(e.g. hsqdb, Oracle)?
OR
2. Is there an implementation available from Sun?
OR
3. Has Sun simply not released an implementation yet?
OR
4. Am I completely missing something here and losing my mind :)
OR
Is the JVM supposed to supply the implementation?
Thanks for any enlightenment.
JThe actual specification can be written without actually talking to a database (the spec is mostly interfaces). However, you are write in that along with these classes (which must pass the TCK) the database vendor must provide the rest. Unlike normal java.sql where there is a DriverManager class, that is not the case in JSR-169.
-
Optional Package class reference at server startup...gives class not found
I have a enterprise app having a webservice..the webservice (servlet) gets instantiated on server startup…It has reference of a class which is an optional package
All the manifest entries are correctly added to the ear..manifest.mf..
When the servlet is initialized at startup.. gives me a class not found error…
However, the app works fine..this is just a one time error(whenever the app is deployed fresh..)..
Any help would be appreciated
ThanksI have a enterprise app having a webservice..the webservice (servlet) gets instantiated on server startup…It has reference of a class which is an optional package
All the manifest entries are correctly added to the ear..manifest.mf..
When the servlet is initialized at startup.. gives me a class not found error…
However, the app works fine..this is just a one time error(whenever the app is deployed fresh..)..
Any help would be appreciated
Thanks -
Persistence Layer deployed as Optional Package
Environment:
- WebLogic 11g which consequently means EJB 3.0
- Application has 3 modules: Web (referencing EJB and Persistence), EJB (referencing Persistence) and Persistence
Could I deploy my persistence layer as an Optional Package or does it have to be a Shared Library?
The reason I'm asking is that when I try to deploy my EJB module, WLS can't find the persistence unit being inject to it:
Unable to deploy EJB: StocksBean from BLayer-1.0.0-SNAPSHOT.jar: No persistence unit named 'internalAppsPU' is available in scope BLayer-1.0.0-SNAPSHOT.jar. Available persistence units: []
Persistence module is basically a JAR file deployed as an Optional Package with following in its Manifest:
Extension-Name: PersistenceLayer
Implementation-Version: 1.0.0-SNAPSHOT
Specification-Version: 1.6
in EJB's code I have:
@Stateless(name="StocksBean", mappedName="StocksBean")
public class StocksBean implements Stocks {
@PersistenceContext(unitName = "internalAppsPU")
private EntityManager em;
and in EJB's JAR file I have:
pLayer-Extension-Name: PersistenceLayer
pLayer-Implementation-Version: 1.0.0-SNAPSHOT
pLayer-Specification-Version: 1.6
I'm deploying these one by one and not as an Application.Hi Arun,
Thank you so much for taking time and responding. I'm still having the same issue.
You see, I had the exact same problem when my persistence Entities were in the same Jar file as EJBs and I found out the problem was the name of the persistence.xml file (which was "Persistence.xml") and also the version of the namespace used in the XML file which conflicted with version of JPA's spi (version of JPA's spi in JEE1.6 is 1.0 and I was using version 2.0 of the namespace).
However, I got that fixed and now I'm trying to separate the layers (just moved the files around and didn't change the content). Here is what I have so far:
Name of Persistence Layer's JAR file: PLayer.jar
Manifest of Persistence Layer's JAR file:
Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: Apache Maven
Built-By: bm03043
Build-Jdk: 1.6.0_18
Extension-Name: PersistenceLayer
Implementation-Version: 1.0.0-SNAPSHOT
Specification-Version: 1.6
Name of EJB's JAR file: BLayer-1.0.0-SNAPSHOT.jar
Manifest of EJB's JAR file:
Manifest-Version: 1.0
Archiver-Version: Plexus Archiver
Created-By: Apache Maven
Built-By: bm03043
Build-Jdk: 1.6.0_18
Extension-List: PLayer
PLayer-Extension-Name: PersistenceLayer
PLayer-Implementation-Version: 1.0.0-SNAPSHOT
PLayer-Specification-Version: 1.6
I didn't know that Extension-List entry in EJB's jar file should match with the name of Persistence layer's jar file.
As for deployment, I deploy the Player and then EJB.
Appreciate any input.
Edited by: Keibi on Apr 26, 2012 11:30 AM -
Link to download the RMI optional package reference implementation
Hi,
I could not find any links for downloading the reference implementation of the RMI optional package. Is this package available for download? Pls give me the link if you find the same. Thanks in advance..
regards,
Anand
Edited by: Anand.Raman on Apr 22, 2009 2:48 AMThis is a deprecated URL that will be retired soon.
You can download this RI here:
https://java-partner.sun.com/support/login.action
Assuming that you have a Java Partner login.
Maybe you are looking for
-
I deleted my photos, music and apps. Help please!
Help me please! I have deleted all my photos and music and apps. I think everything and it keeps saying I have something on phones and I really want to update my iphone. I'm on 2.7 GB Available. I don't know what to do?!
-
URGENT HELP Burning DVD from Final Cut Pro
I have a video due to buyers bye wednesday. If anyone knows how to take the movie I made and burn it to a DVD, please let me know as soon as you can. It wont let me export it to iDVD and when I try to "print to video" my camcorder only picks up the s
-
Hi, i write role in httpd.conf, to redirect to an external application, as this: ProxyPass /pippo/ http://<myhost>:7777/pls/orasso/ORASSO.wwsso_app_admin.fapp_process_login?p_app_id=DF435C2A789ACE9C183480A1A6A982CD ProxyPassReverse /pippo/ http://<my
-
Hi Gurus Please help me regarding a Report layout variant. 1. Can I transport a report layout variant and how? Regards KTK
-
Dumping Global ABAP Objects Source Code to Text File
Hello People, this is my first post and my first time to join the forums.. and also my first time to code in ABAP. Anyways, I was wondering if there is a way to dump the source code definition of any class/interface made in SE24 (Object Builder) onto