How to share objects across ears ?

We need to define a set of classes and/or jar's that will be used across various
.ear file deployments. We can make these classes visible by putting them in BEA's
classpath, but that would mean restarting the server everytime there are changes
to such global classes:
1. What is the correct way to do this ? Can classes be redefined in (i.e. defined
in individual) various ear files ?
2. We have value classes that are passed between various session beans that reside
in DIFFERENT ear files (i.e. they are part of separate enterprise apps). How does
one define and reference such value classes ?
Thanks for your help in advance!

DP wrote:
Rob:
Thanks for your response(s). This actually leads to other related questions. What
is the recommendation for deployment in the following scenario: We have a requirement
of being able to hot deploy objects frequently in production. I understand that
the best way to accomplish this is to do an "exploded ear deployment".
(a) How can we deploy one or more ejbs in an exploded ear ? Can the EJBs be either
a set of .class files or a set of .jar files? In this context, what exactly is
the definition of an exploded ear ? Does it mean that all objects are packaged
only as .class files (i.e. no jar, wars whatsoever in the ear, correct ?) within
the directory ?You can either deploy the sub-components (eg EJBs, webapps etc)
archived, exploded or a mix.
Personally I prefer to just explode everything like this:
ear/META-INF/application.xml
ear/ejb/META-INF/ejb-jar.xml
ear/ejb/com/foo/MyEJB.class
>
(b) How can we deploy java objects ? Say we need to update a value class or a
non-J2EE class on the server. If we have an exploded ear, do we simply overwrite
the existing class file ? Will WL8.1 automatically read this newer class ? Similarly,
if we need to add a non-j2ee .class file, can it be just dropped into the exploded
ear directory without a server restart ?You should never need to restart the server to make an application change.
If you want to change an arbitrary class file in the app, then you can
just change the .class file and then use wldeploy or weblogic.Deployer
to redeploy the application.
You can do better if you know the class is only used in a particular web
application. In that case, you could redeploy just a particular webapp
without bouncing the rest of the app.
-- Rob
>
Thanks, again, for helping.
Rob Woollen <[email protected]> wrote:
Do you have any singletons? If so, then your best bet is to have the
classes in the CLASSPATH (at least the singletons).
If not, then you can have a separate copy of the classes in each EAR.
You'll need to ensure the classes that are passed between the EARs are
exactly the same in both EARS (same serial version uid.) WLS uses
serialization between applications, so the class will be serialized in
app-1's classloader and deserialized in app-2's classloader.
FWIW, we're well aware of this problem and are looking at building
better support for this into the next major version of WLS.
-- Rob
DP wrote:
We need to define a set of classes and/or jar's that will be used acrossvarious
ear file deployments. We can make these classes visible by puttingthem in BEA's
classpath, but that would mean restarting the server everytime thereare changes
to such global classes:
1. What is the correct way to do this ? Can classes be redefined in(i.e. defined
in individual) various ear files ?
2. We have value classes that are passed between various session beansthat reside
in DIFFERENT ear files (i.e. they are part of separate enterprise apps).How does
one define and reference such value classes ?
Thanks for your help in advance!

Similar Messages

  • How to share content across a whole family?

    I know there are other threads related to this, but I'm really trying to understand how to manage iTunes DRM, Home Sharing, Match, etc., across my family's ecosystem of Macs, iPhones, iPods and iPads. I seem to think the following apply:
    - up to 5 "computers" (does this mean OSX devices but not iOS devices?) can share DRM content
    - up to 10 "devices" can share Match content (presume this means content I've uploaded, not Apple DRM content I've purchased in iTunes Store)
    So here's what I am trying to figure out:
    1. Let's say we have 5 "computers" that are running OSX (iMac and 4 Macbooks), can then all of our iOS devices -- iPads (2), iPhones (2) and iPod Touches (3) -- have the same DRM content on them? So if I purchased the movie "Monsters Inc" from the iTunes Store, can it be in iTunes on all 5 OSX devices plus any of the 7 iOS devices I wish to have it on?
    2. If the answer is "NO" to #1, can I selectively apply where the content goes to stay within the maximums? For example, let's say I have "Monsters Inc" on some of the devices and the movie "Cars" on others such that, while I have more devices accessing my DRM content, no one DRM item (movie, song, etc.) is across more than is allowed?
    3. Lastly, if we add a 6th OSX "computer" then I presume to add an DRM content it would have to be re-purchased under a separeate iTunes account? Or, said another way, there's really no way to have more than 5 computers on the same iTunes account?
    I am hoping Apple is making this all easy to do as they ask all of us to buy more of their products, but without the ability to access DRM content on new devices like iPad Mini, there's really no reason to buy one.
    Thanks for any help

    iTunes Store: Associating a device or computer to your Apple ID - http://support.apple.com/kb/HT4627 -  "Your Apple ID can have up to 10 devices and computers (combined) associated with it. Each computer must also be authorized using the same Apple ID. Once a device or computer is associated with your Apple ID, you cannot associate that device or computer with another Apple ID for 90 days."
    iTunes Store: About authorization and deauthorization - http://support.apple.com/kb/HT1420
    Various paragraphs talking about restrictions:
    http://www.apple.com/legal/itunes/us/terms.html > USAGE RULES

  • How to share files across my network from Belkin N

    I have a belkin N+ router that you cant plug a USB hard drive or a flash drive into to share the files across the network. It shows my router as a device on the network but gives me the same error message every time I try to acess them. How can I set this up from my Mac, what do I need to to do?

    I had the same problem. I was first getting an error on my PC about the library being created with a newer version of iTunes. I upgraded my PC to 8.1 and am now receiving the following error when trying to open up the shared library:
    "The iTunes application could not be opened. An unknown error occurred (13005)."

  • How to share objects between two ADF Faces servlet sessions

    I gather the application scope is one way to go for sharing data between sessions in an ADF application. Are there other more generic methods of sharing data between servlet sessions?
    For example, let's say we have a JDev 101.3 ADFBC/JSF app. (or JDev 11g for that matter). In this app we also register a servlet in web.xml. So two people log into this application and access this defined servlet, creating two instances of that servlet...I guess. Is there a way for those two instances/sessions to talk to each other? Pass data back and forth? Should I read about JMS? Or does application scope sound better? I guess a direct communication would be more tidy, than putting data on an application bulletin board, lilke application scope.
    Any thoughts?

    Hi,
    Only one instance of each servlet defined in web.xml gets created, not one per user. You're right about the sessions though, one per user is created. You're right on the other parts as well I think you could use application scope to do something like that, or the data base for that matter, depending on the use case.
    Regards,
    ~ Simon

  • Sharing of Objects across applications

    Hi,
    Is it possible to reference an object initialized by another application?
    For example, I have a Logger object that I instantiated from App1. Then I decided to come up with App2. I want to use in App2, the same logger innstance I am using in App1. Of course, assuming that App1 is running. If not, App2 shall create the Logger object and when App1 is run, App1 now shall reference the Logger object App2 created.
    I guess what I am pointing out here is how sharing of objects across application can happen in Java.

    There is no direct support for this in JVM - you cannot reference object created by JVM#1 from JVM#2 playing fair game =)
    If you need 100% pure JAVA solution the only way to do it is to use
    networking, either RMI (as it was already suggested) or coding your own TCP protocol. Main drawback - it'll be slow.
    For faster access you'll need to use JNI and some sort of interprocess communication method - shared memory/messages/etc. This might be faster (there will be no TCP/IP marshaling) but it'll be more combersome to support it for different OS.

  • How to share one variable across multiple JVMs?

    Hi,
    How to share one string value across two applications, which are there in two different JVMs.
    Requirement is, If I update one value(static) in first server through jsp, it should update second server static value too apart from first server.
    I am using WebLogic 8.1, is there any MBean to access other application's static value?
    Please suggest!
    Thanks,
    Murthy P

    Welcome User in OTN,
    to make two projects can access its classes you should goto the project property ---> Dependencies then add the other project.
    in your case:
    try to goto you Model project property ----> Dependencies ---> Edit Dependencies .
    you will find your ViewController project. Expand it thin check to Build Output.
    you can make this for ViewContoller project also as:
    goto you ViewContoller project property ----> Dependencies ---> Edit Dependencies .
    you will find your Model project. Expand it thin check to Build Output.
    Sameh Nassar

  • How can I create a website that allows me to share articles across social media websites?

    Im looking to share articles across social media websites. I want my team to be able to create articles on my site and share the articles across the internet. here are two expamples:
    http://blogs.adobe.com/digitalmarketing/social-media/
    http://www.leafly.com/news
    What adobe programs should i use?
    Any templetes out there that can help?
    What sould my workflow look like?
    Thank you for any and all help:)

    If you're a web developer, then you already know what apps to use.
    If you're a designer (like me) then Muse CC is your weapon of choice.
    One simple strategy would be to create your web site, include all the articles you want to distribute, then link to each specific article/web page from your pages on Facebook, Twitter, etc.
    Unfortunately, there isn't a manual for Muse, so you need to watch videos:  http://tv.adobe.com/show/learn-adobe-muse-cc/
    YouTube is also your good friend when it comes to learning Muse.
    Good luck.

  • Session sharing acrossed ears

    Is it possible to share a session across multiple EAR's? I have successfully shared sessions across multiple WAR's in a single EAR by using the session scoping and session path information.

    According to the spec, Sessions aren't suppose cross WARs. However, with IBM's Websphere, you are able to "enable" "Shared Session Context" across multiple WARS in a single EAR and provided the virtual domains for each WAR are the same.
    This is nice because it gives a developer the flexibility to logically breakup a large site into multiple war applications under the same EAR without having to worry about session management. For example, you can have a BrochureWAR, LoginWAR and a MemberForumWAR, MemberPaymentWAR, etc... all in the same EAR. The LoginWAR would put a UserObject into Session and the other MemberWARs could use it. Otherwise you would have to use the dreaded EJB solution or roll-your-own webservice state machine.
    As a quick note, be sure that any Object you put into the Shared Session Context is loaded using the Server's classpath and not the WAR's classpath. If you don't and you load a FooObject from WAR1 lib into session, a read from Session by WAR2 will throw a ClassNotFound error because of differing classloaders. Know what I mean?
    Now with all that said, I want Shared Sessions across EARs (obviously for WARs of the same domain of course). In this way, I would be able to completely remove/upgrade certain area's of a Very Large webappliction without effecting other areas for example: someWebSitesMemberPaymentEAR without effecting someWebSitesMemberForumEAR. Of course I could achieve this with all webapplications calling some Stateful WebService or EJB thing backend too but GOSH... thats alot of work for Session Management across EARs. Where's the easy button?

  • How to share account with multiple devices?

    3 kids with 3 devices - an iPod Touch and two iPads Mini - family shares one account with Apple/iTunes and one library on our family PC.  They use FACETIME and MESSAGES with their friends, and they all see each others messages and conversations.  How do I fix this?  Is there a setting or a way to create sub-accounts off the family account so they can still share the main library for music and video OR do I have to create separate Apple/iTunes accounts for each kid?  Is there a setting on their devices that can help?  Any help is greatly appreciated.  I'm not even sure the right question to ask...

    How to use multiple iPods, iPads, or iPhones with one computer
    http://support.apple.com/kb/HT1495
    How to Share a Family iPad
    http://www.macworld.com/article/1163347/how_to_share_a_family_ipad.html
    Using iPhone, iPad, or iPod with multiple computers
    http://support.apple.com/kb/ht1202
    iOS & iCloud Tips: Sharing an Apple ID With Your Family
    http://www.macstories.net/stories/ios-5-icloud-tips-sharing-an-apple-id-with-you r-family/
    How To Best Use and Share Apple IDs across iPhones, iPads and iPods
    http://www.nerdsonsite.com/blog/2012/06/07/help-im-appleid-confused/
     Cheers, Tom

  • HERE'S HOW TO SHARE iCAL w/ MULTIPLE USERS on 1 Mac

    Here's how to share iCal calendars among multiple users on a single Mac.
    What you need to do is to move the iCal folder to a shared folder that is accessible to all users and then replace the iCal folder in each user's library folder with a "symbolic link' to the shared iCal folder. The symbolic link looks like an "alias", but if you try this using "aliases" to the shared iCal folder it will not work (trust me). You can create symbolic links using the Terminal, but I have no idea how, and the idea of using the Terminal scares me. The easiest way that I know of to create a symbolic link is with a shareware application called Cocktail. It allows you to do a number of different things including System Maintenance, Network Optimization, etc. It took me a while to remember how to do this; I originally found the information in the Discussions when iCal was first released, but apparently none of those original postings are listed in the forums anymore.
    Here's how to do it (you must have Administrator privileges):
    First locate your iCal folder (your user name > Library > Application Support > iCal) and make a copy of it (Finder > File > Duplicate). Drag the copy to your Desktop until you're sure iCal is being shared between users.
    Next move the original iCal folder into a Shared folder in the Users folder (Hard Disk > Users > Shared > iCal). To make sure all users can access the information, select the Shared folder, choose File > Get Info, click the little Lock icon, then under "Ownership & Permissions -> Details" make sure that the "Owner" is "System", "Group" is "Wheel" and "Access" for Owner, Group and Others is "Read & Write". Do the same with the iCal folder within the Shared folder, but this time, under "Ownership & Permissions -> Details" make sure that the "Owner" is "your user name", "Group" is "Staff" and "Access" for Owner, Group and Others is "Read & Write" and click the "Apply to Enclosed Items" button. I basing this information on what the Ownership & Permissions are for each of the folders in my system.
    Open Cocktail (I'm using version 3.6.5). Once the app is open (you must enter an administrator's user name and password) click on the "Files" button, then click on the "Links" button. Where it says "Create Symbolic Link" click on the "Choose" button. Navigate to the iCal folder (Hard Disk > Users > Shared > iCal) and click "Choose" again. In the "Save As" box that appears enter "iCal", then navigate to the Application Support folder in your Home folder (your user name > Library > Application Support) and click "Save". Quit Cocktail and open iCal. You should see all of your calendars as you did before.
    Log in under each additional User, move that User's iCal folder (user name > Library > Application Support > iCal) onto the Desktop, then create another Symbolic Link to replace it, using Cocktail as described above. In each case you should see the same calendar information as when you were logged in under your user name. As a test, add a New Event or To Do in iCal under one user, log out and back in under another user and you should see the changes when you open iCal.
    Once everything appears to be working, you can delete the iCal folders from each User's Desktop.
    As an additional maintenance measure, use Disk Utility to repair Disk Permissions.
    Unfortunately, if each User has his/her own calendars in iCal they will not be in the shared calendars. Only the calendars in the first iCal folder used to set up the shared folder will be available and I don't know of any way to merge or combine the other user's calendars into one.
    Hope this helps and good luck!

    Unfortunately, if each User has his/her own calendars in iCal they will not be in the shared calendars. Only the calendars in the first iCal folder used to set up the shared folder will be available and I don't know of any way to merge or combine the other user's calendars into one.
    If every user first exports their calendars (with unique names) and then the "First" user imports them, before all the other set up, everyone's calendar will be there.
    Also, iCalShare lets you publish and subscribe on a computer or across a local network, without having to let everyone see and edit all your calendars.

  • How to share external USB drive connected to airport time capsule

    I have a 4TB Seagate USB Hard Drive connected to my Airport Time Capsule.  The Time Capsule connected to a newer iMac running Maverick.
    I use the Time Capsule for Time Machines Backups and as a Router, as it was designed for.
    I want to use the external Seagate drive to share content with other devices (Mac, IOS, Windows) on my home network
    Problem:  I cannot figure out how to SHARE the external Seagate drive so that any other devices can see it.
    Steps tried:  Go to System Preferences, Sharing, and I am unable to add this Seagate drive to list of sharable objects.  It is grayed out.

    the drive is formatted as AppleShare. Is that a potential problem?
    No, that is the correct setting if you want to share out the drive.
    Finally, when I run Disk Utility I don't see the Seagate drive (nor the Time Capsule) at all.
    Remember that the Time Capsule is a network drive. Any other drive connected to the USB port on the Time Capsule is also a network drive.
    Disk Utility cannot be used on a network drive.  It only works on a drive that is directly attached to a Mac.  If you need to partition the USB drive or something similar, you will need to connect it directly to your Mac for the operation.
    Otherwise, everything looks correct in AirPort Utility.

  • HT1449 Can I move my iTunes library onto Time Capsule and share it across my devices (similar to a NAS drive)?

    Hi
    Would anyone know if I can I move my iTunes library onto Time Capsule and share it across my devices (similar to a NAS drive)?
    This would give me some hard drive space on my iMac and more importantly mean my iTunes library is available all the time. Although I have Home sharing I need my iMac on and if not I use iTunes on iCloud I always seem to be downloading the tracks I need.
    Current configuration / devices:
    iMac 20-inch, Mid 2007 - nearly full!
    Processor  2.4 GHz Intel Core 2 Duo
    Memory  4 GB 667 MHz DDR2 SDRAM
    OSX Mavericks
    Time Capsule (1TB)
    iPad
    iPod Touch
    Apple TV
    iTunes 11.1.5 (5)
    Many thanks

    What "devices" are these?  By devices I normally understand i-devices and not computers.  How many computers?
    If you put the whole library on the Time Capsule (TC) you can only use it with one computer at a time because the iTunes library file can only be opened by one copy of iTunes at a time.  If you put only media on the TC but have a copy of the library files on each computer you can use media by multiple computers but you then have the headache of trying to make sure that any changes done to the collection by one computer are mirrored by the libraries on the other computers which will be more or less independent.
    I hope this TC isn't also your backup drive.  When the TC drive fails (and it will someday) then your whole collection is gone.  Don't rely upon Apple to always have copies for you to download.  For one, if a distributor puylls an item then it is gone period.  Additionally, Apple only keeps media, not the actual organization that is your set of library files.  If you do this, buy another backup drive.

  • Share data across multiple WAR

    Does somebody know any pattern to share data across multiple WAR applications?
    I need to modularize an Intranet Application?
    So, I don't have to shutdown the entire intranet to make the changes in just one module .
    It is possible to share a session object? or I must to get and propagate browser session id :( ?
    Any idea will be appreciated.

    Yes you can, I did it running tomcat
    -First have to set crossContext propertie value to "YES"
    Then this is my pice of working code :
    javax.faces.context.FacesContext facesContext = javax.faces.context.FacesContext.getCurrentInstance();
    javax.faces.context.ExternalContext externalContext = facesContext.getExternalContext();
    javax.servlet.ServletContext servletContext = (javax.servlet.ServletContext)externalContext.getContext();
    Object yourObject = new Object();
    if(servletContext.getContext("/yourContextName")!=null)
    servletContext.getContext("/yourContextName").setAttribute("yourObject ",yourObject);
    Jesus

  • I would like to know if i can share variable across internet through labview?

    Hi, I am trying to learn how to share measured data across internet through labview so that it can be viewed and controlled offline. For this i have seen the G server configuration guide. Can i have a shared variable so that the data logged into this variable can be accessed and controlled through the other remote system. Further  can i have some theresholding operation on this shared variable to raise a alarm when the condition is satisfied.
    If there is some reference document which can clear these issues then kindly post the same.
    Regards
    Shashi

    differential equation wrote:
    I have read the link which you have forwarded. I just want to reconfirm my understanding that if we want to share the variable using single process then we don't require any special hardware but in all other cases we need to have dedicated hardware.
    You don't need any dedicated hardware. The variable engine can run on your local computer.
    LabVIEW Champion . Do more with less code and in less time .

  • How to share one application's static variable in another application?

    Hi,
              How to share one string value across two applications, which are there in two different JVMs.
              Requirement is, If I update one value(static) in first server through jsp, it should update second server static value too apart from first server.
              I am using WebLogic 8.1, is there any MBean to access other application's static value?
              Please suggest!
              Thanks,
              Murthy P

    I'd need more information to recommend an appropriate approach.
              How often do you access this value? Can you make a remote call to retrieve it each time, or would that overhead be unacceptable? How are you handling HA? (ie what happens when a server fails). How often do these values change, and what is your tolerance for stale data?
              -- Rob
              WLS Blog http://dev2dev.bea.com/blog/rwoollen/

Maybe you are looking for