The session context in the socket project

hello
in the j2ee program,i can set the user login info in the session context(such
as user name and password or permisson),and trace them during the session,the
servlet container help me a lot.
but in my current project,i use the socket communication to connect the c# client
and the java server,after the client login in one socket connection,it must close
the socket,when it reconnect to the server to send the data,the server don't know
who it is,that is the server don't know whether the client login or not and if
the client is just one who has just login.
i wonder how can i implement the session function that is similar to servlet do
in my socket project?
who can help me?
thank you!!

Hi Form
Any Enlightining Ideas.....
Still thinking. E.g. why the GUI is doing the authentication. Well it does have >> to prove a user ID. That'd be enough to identify a sessionOk after the UserId is authenticated , (???? Session ???) on a pure GUI...
How about doing further tasks, Also How to uses this Session API in a
Pure GUI env...
Plz
with regards
Karthik

Similar Messages

  • Are there any plans to migrate the BDB project to Visual Studio 2005?

    The problem is when BDB is linked into an application built with VS8, deleting some BDB objects results in mixing memory managers and application crashes.
    That is, if BDB is built with VS6, the BDB DLL will use VS6's new and delete operators. If the application that uses BDB is built with VS8 its objects will be allocated using VS8's new and delete:
    DbSequence *seq = new DbSequence(db, 0);
    delete seq;
    The first line calls application's new and then the DbSequence constructor. The second line, on the other hand, calls the destructor, which in turn calls the operator delete (Microsoft's "scalar deleting destructor"). The destructor resides in the BDB DLL, so the delete call is made in the context of the DLL, trying to delete the memory block that was allocated by the executable.

    Thank you for the reply, Michael.
    I finally have been able to work around all inter-DLL dependencies between VS6 and VS8 builds. You may want to mention in README the fact that if C++ interface is used, the application is expected to be built with the same compiler used to build BDB, even if custom callbacks for malloc, realloc and free are used in the code.
    The BDB project builds partially in VS2005. A few subprojects fail by default and the db_dll project requires a couple of small fixes. For example, advapi32.lib is missing from the list of input libraries in db_dll project (SetSecurityDescriptorDacl and InitializeSecurityDescriptor). The resulting DLL seems to work fine.
    Also, those applications that build with 32-bit time_t will fail to link. It's easy to fix, but I wonder if this will have any effect on the format of the database.
    Andre

  • IMovie '11 How do I recover a project that appears within the IMovie Projects folder but does not show in the Project Library?

    I have had my MBP for just over 3 months now!  Yes, I made the switch and up until now I have been quite happy.
    I now have my Time Capsule, Apple TV running and am generally getting used to life as a Mac user.............even bought Aperture and loaded all the family photos.  Now time to make some Travel movies.
    I have been working on a particular IMovie project for a few weeks now.  Size is 365MB.  Yesterday I closed IMovie and when accessing later that project is not available in the Project Library window.  It does appear in the IMovie Projects folder but I cannot open it.  I have copied the file to DVD just in case.  All up I have 4 Projects, the other 3 are practice files, smaller but they do appear in the Project Library.
    I have scoured the bulletin boards and tried many suggested fixes to no avail.  Main suggestion was to remove the following files from Library/Preferences
    com.apple.iMovieApp.plist
    com.apple.iApps.plist
    However, this did not sort out my problem.  In the end I put back the original files.
    Does anyone have a straightforward fix for my problem or is this one of those ongoing issues that that needs Apple's attention. 
    After all the file is there with the others.  They are available.
    I realise that I can restore from Time Capsule but I am missing the last three days thanks to 'drop out'.
    Thanks.......

    Gweggie Boy wrote:
    Yes, considering we have an ongoing 'glich' within an Apple program with no obvious solution, we should be able to direct it straight to an Apple rep.  I will peruse this possibility when I get a moment.
    You can report the problem by providing feedback to Apple. In the iMovie app, from the menu select iMovie > Provide iMovie Feedback. This will take you to an Apple page where you can complete a form and submit it to Apple.
    The fix for this will probably turn out to be simple/easy.....................so why doesn't Apple comment and/or address it????
    Other than the forum moderators, Apple doesn't normally monitor these forums, nor make comments on posts. So, it's up to us to report the problem to them directly (using the feedback form mentioned above).
    As the problem has affected me just the one time (touch wood), I haven't bothered to report it as yet. But, after seeing your posts on this, I'm now reconsidering that. Something must be triggering it. My system is in pretty good shape, so I'm guessing it must be a glitch of some sort, either in Mountain Lion or in the iMovie app itself. Perhaps it's a 3rd party app causing the problem? It doesn't give us much confidence now, in that we may start worrying about losing other projects.
    A good practice is to duplicate the project from time to time (something I'll be doing more of), although Time Machine backups also provide the necessary security. To duplicate, in Project Library view (where all the projects are listed) click on the project name so that it is highlighted, then select File > Duplicate Project. Alternatively, right-click (or Control-click) on the project name and select Duplicate Project from the pop-up menu. Of course, you may already know this. Duplicating probably won't guarantee that the copy will not also disappear from the Project Library, but is worth doing anyway.
    As I mentioned in the post I linked to earlier, when the problem arose with my iMovie project I was using ProRes 422 clips I had imported from a Final Cut Pro X Event. My immediate thought was that ProRes 422 had caused the problem. But this of course may have been coincidental - reinforced now by your experience, where you are probably working with Apple Intermediate Codec (AIC) clips.
    Anyway, glad to hear that you've recovered your project through Time Machine. Unfortunately, I had to start from scratch as I had Time Machine turned off during my editing sessions (that's a story for another day).
    John

  • Where does flex builder keep refererences to the flex projects?

    Where does flex builder keep refererences to the flex projects?
    I'm getting an error like this on FB3 startup:
    The folder PR System Intranet does not exist in the workspace so the reference must be somewhere else.
    thanks
    !SESSION 2009-11-02 09:47:52.203 -----------------------------------------------
    eclipse.buildId=unknown
    java.version=1.5.0_11
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_GB
    Command-line arguments:  -os win32 -ws win32 -arch x86
    !ENTRY org.eclipse.core.resources 2 10035 2009-11-02 09:47:53.610
    !MESSAGE The workspace exited with unsaved changes in the previous session; refreshing workspace to recover changes.
    !ENTRY org.eclipse.core.resources 4 567 2009-11-02 09:47:53.829
    !MESSAGE Workspace restored, but some problems occurred.
    !SUBENTRY 1 org.eclipse.core.resources 4 567 2009-11-02 09:47:53.829
    !MESSAGE Could not read metadata for 'PR System Intranet'.
    !STACK 1
    org.eclipse.core.internal.resources.ResourceException: The project description file (.project) for 'PR System Intranet' is missing. This file contains important information about the project. The project will not function properly until this file is restored.
    at org.eclipse.core.internal.localstore.FileSystemResourceManager.read(FileSystemResourceMan ager.java:663)
    at org.eclipse.core.internal.resources.SaveManager.restoreMetaInfo(SaveManager.java:792)
    at org.eclipse.core.internal.resources.SaveManager.restoreMetaInfo(SaveManager.java:772)
    at org.eclipse.core.internal.resources.SaveManager.restore(SaveManager.java:663)
    at org.eclipse.core.internal.resources.SaveManager.startup(SaveManager.java:1319)
    at org.eclipse.core.internal.resources.Workspace.startup(Workspace.java:1949)
    at org.eclipse.core.internal.resources.Workspace.open(Workspace.java:1713)
    at org.eclipse.core.resources.ResourcesPlugin.start(ResourcesPlugin.java:363)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl$2.run(BundleContextImpl.java:9 99)
    at java.security.AccessController.doPrivileged(Native Method)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.startActivator(BundleContextIm pl.java:993)
    at org.eclipse.osgi.framework.internal.core.BundleContextImpl.start(BundleContextImpl.java:9 74)
    at org.eclipse.osgi.framework.internal.core.BundleHost.startWorker(BundleHost.java:346)
    at org.eclipse.osgi.framework.internal.core.AbstractBundle.start(AbstractBundle.java:260)
    at org.eclipse.osgi.framework.util.SecureAction.start(SecureAction.java:400)
    at org.eclipse.core.runtime.internal.adaptor.EclipseLazyStarter.postFindLocalClass(EclipseLa zyStarter.java:111)
    at org.eclipse.osgi.baseadaptor.loader.ClasspathManager.findLocalClass(ClasspathManager.java :417)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.findLocalClass(DefaultClassLoade r.java:189)
    at org.eclipse.osgi.framework.internal.core.BundleLoader.findLocalClass(BundleLoader.java:34 0)
    at org.eclipse.osgi.framework.internal.core.SingleSourcePackage.loadClass(SingleSourcePackag e.java:37)
    at org.eclipse.osgi.framework.internal.core.BundleLoader.findClassInternal(BundleLoader.java :405)
    at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:369)
    at org.eclipse.osgi.framework.internal.core.BundleLoader.findClass(BundleLoader.java:357)
    at org.eclipse.osgi.internal.baseadaptor.DefaultClassLoader.loadClass(DefaultClassLoader.jav a:83)
    at java.lang.ClassLoader.loadClass(Unknown Source)
    at java.lang.ClassLoader.loadClassInternal(Unknown Source)
    at com.adobe.flexbuilder.standalone.FlexBuilderApplication.start(FlexBuilderApplication.java :111)
    at org.eclipse.equinox.internal.app.EclipseAppHandle.run(EclipseAppHandle.java:169)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.runApplication(EclipseAppLau ncher.java:106)
    at org.eclipse.core.runtime.internal.adaptor.EclipseAppLauncher.start(EclipseAppLauncher.jav a:76)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:363)
    at org.eclipse.core.runtime.adaptor.EclipseStarter.run(EclipseStarter.java:176)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
    at java.lang.reflect.Method.invoke(Unknown Source)
    at org.eclipse.equinox.launcher.Main.invokeFramework(Main.java:508)
    at org.eclipse.equinox.launcher.Main.basicRun(Main.java:447)
    at org.eclipse.equinox.launcher.Main.run(Main.java:1173)
    at org.eclipse.equinox.launcher.Main.main(Main.java:1148)
    !SUBENTRY 2 org.eclipse.core.resources 4 567 2009-11-02 09:47:53.829
    !MESSAGE The project description file (.project) for 'PR System Intranet' is missing. This file contains important information about the project. The project will not function properly until this file is restored.
    !ENTRY org.eclipse.osgi 4 0 2009-11-02 09:47:53.860
    !MESSAGE An error occurred while automatically activating bundle org.eclipse.core.resources (161).
    !STACK 0

    Thanks but that file contains things like
    <?xml version="1.0" encoding="UTF-8"?>
    <actionScriptProperties mainApplicationPath="main.mxml" version="3">
    <compiler additionalCompilerArguments="-services &quot;X:\Coldfusion9\wwwroot\WEB-INF\flex\services-config.xml&quot; -locale en_US" copyDependentFiles="true" enableModuleDebug="true" flexSDK="Flex 3.2" generateAccessible="true" htmlExpressInstall="true" htmlGenerate="false" htmlHistoryManagement="true" htmlPlayerVersion="9.0.28" htmlPlayerVersionCheck="true" outputFolderPath="Staff_Ratings-debug" sourceFolderPath="src" strict="true" useApolloConfig="false" verifyDigests="true" warn="true">
    <compilerSourcePath>
    <compilerSourcePathEntry kind="1" linkType="1" path="H:/flash"/>
    </compilerSourcePath>
    <libraryPath defaultLinkType="1">
    <libraryPathEntry kind="4" path=""/>
    </libraryPath>
    <sourceAttachmentPath/>
    </compiler>
    <applications>
    <application path="main.mxml"/>
    </applications>
    <modules/>
    <buildCSSFiles/>
    </actionScriptProperties>
    I don't see how FB3 knows about the
    Pr System Intranet
    project that seems to be the cause of the errors.

  • 10g: Must all related tables be in the same project?

    Since we will eventaully have over 500 tables to map, we would like to be able to maintain these tables/classes in different projects. How do we map foreign key references between tables/classes that we would like to maintain in different projects?
    I don't know if theis is why I'm getting this error, but I initially created two projects with independent tables. Then I wanted to join some tables in one project to some tables in another project. (This is all using Offline Database Objects.) I dropped some tables managed in project A into the diagram for project B and created the foreign key relations (from B to A.) Now whenever I try to open the TopLink Mappings node for project B in the Navigator, I get the following error. I get this error even if I drop ALL the tables from project A into project B's diagram (meaning there is nothing left in the schema that could be the missing 'parent'.)
    Local Exception Stack:
    Exception [TOPLINK-98] (Oracle9iAS TopLink - Release 2 (9.0.4.0) (Build 030612)): oracle.toplink.exceptions.DescriptorException
    Exception Description: The underlying descriptor callback method [postBuild], with parameter (DescriptorEvent), triggered an exception.
    Internal Exception: java.lang.reflect.InvocationTargetException
    Target Invocation Exception: java.lang.IllegalStateException: This object is missing a parent: MWTable[C14] (AVEGA.DATAMART)
    Descriptor: XMLDescriptor(oracle.toplink.workbench.model.MWProject --> [DatabaseTable(project)])
         at oracle.toplink.exceptions.DescriptorException.<init>(DescriptorException.java:207)
         at oracle.toplink.exceptions.DescriptorException.<init>(DescriptorException.java:212)
         at oracle.toplink.exceptions.DescriptorException.targetInvocationWhileEventExecution(DescriptorException.java:1364)
         at oracle.toplink.publicinterface.DescriptorEventManager.executeEvent(DescriptorEventManager.java:133)
         at oracle.toplink.internal.descriptors.ObjectBuilder.buildAttributesIntoObject(ObjectBuilder.java:179)
         at oracle.toplink.internal.descriptors.ObjectBuilder.buildObject(ObjectBuilder.java:331)
         at oracle.toplink.queryframework.ObjectLevelReadQuery.buildObject(ObjectLevelReadQuery.java:227)
         at oracle.toplink.queryframework.ReadObjectQuery.execute(ReadObjectQuery.java:344)
         at oracle.toplink.queryframework.DatabaseQuery.execute(DatabaseQuery.java:498)
         at oracle.toplink.queryframework.ReadQuery.execute(ReadQuery.java:111)
         at oracle.toplink.publicinterface.Session.internalExecuteQuery(Session.java:1968)
         at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1096)
         at oracle.toplink.publicinterface.Session.executeQuery(Session.java:1048)
         at oracle.toplink.publicinterface.Session.readObject(Session.java:2502)
         at oracle.toplink.workbench.ui.WorkbenchSession.getMWProjectNamed(WorkbenchSession.java:270)
         at oracle.toplink.addin.persistence.MWJDeveloperPersistence.open(MWJDeveloperPersistence.java:176)
         at oracle.toplink.tsceditor.persistence.PersistenceManager.open(PersistenceManager.java:942)
         at oracle.toplink.addin.manager.MWJDeveloperMediator.openMWProject(MWJDeveloperMediator.java:164)
         at oracle.toplink.addin.manager.MWJDeveloperMediator.locateAndOpenProjectImp(MWJDeveloperMediator.java:626)
         at oracle.toplink.addin.manager.MWJDeveloperMediator.getEditableObjectFor(MWJDeveloperMediator.java:430)
         at oracle.toplink.addin.ui.view.explorer.MWExplorer.updateExplorer(MWExplorer.java:586)
         at oracle.toplink.addin.ui.view.explorer.MWExplorer.setContext(MWExplorer.java:458)
         at oracle.ideimpl.explorer.ExplorerManagerImpl.getExplorerForHost(ExplorerManagerImpl.java:1048)
         at oracle.ideimpl.explorer.ExplorerWindowImpl.viewSelectionChanged(ExplorerWindowImpl.java:544)
         at oracle.ide.addin.AbstractPinnable.viewSelectionChanged(AbstractPinnable.java:232)
         at oracle.ideimpl.explorer.ExplorerWindowImpl.viewSelectionChanged(ExplorerWindowImpl.java:376)
    ... etc.

    If you wish to split your project up into two projects and have some relationships between some of those objects in the projects, you could map all of the objects for each project, but do not map the relationships. For those classes with relationships to other classes in other project you can define an amendment method. An amendment method is a callback into Java code that will be called when the descriptor is loaded. In this method you can then create the mapping to the class in the other project through the descriptor and mapping code API. (see oracle.toplink.mappings, oracle.toplink.publicinterface.Descriptor)
    You can also make use of descriptor deactivation to define relationships between projects. For this you would import the related classes into the project and deactivate them. This will allow you to define relationships to them, but will not export their mapping information when deploying.
    In general it is probably easier to keep everything in one project and use your content/code management system and merge tools to manage the project.

  • Getting Error of SqlBuildTask fail while building the database project

    Hi Experts,
      I am getting error while building the database project in following manner please help on this.
    Error 803 04018: The "SqlBuildTask" task failed unexpectedly.
    System.NullReferenceException: Object reference not set to an instance of an object.
       at Microsoft.Data.Tools.Schema.UserInteractionServices.GetElementName(IModelElement element, ElementNameDetails details)
       at Microsoft.Data.Tools.Schema.Sql.SqlUserInteractionServices.GetElementName(IModelElement element, ElementNameDetails details)
       at Microsoft.Data.Tools.Schema.Sql.Sql110UserInteractionServices.GetElementName(IModelElement element, ElementNameDetails details)
       at Microsoft.Data.Tools.Schema.Sql.Validation.MismatchedNameRule.Analyze(SqlSchemaModel sqlSchemaModel, ISqlModelElement sqlElement, SqlRuleSetting ruleSetting, SqlRuleExecutionContext context)
       at Microsoft.Data.Tools.Schema.Sql.Validation.SqlValidationRuleProxy.Analyze(SqlSchemaModel sqlSchemaModel, ISqlModelElement sqlModelElement, SqlRuleSetting ruleSetting, SqlRuleExecutionContext context)
       at Microsoft.Data.Tools.Schema.Sql.Validation.SqlValidationRule.Analyze(SqlRuleSetting ruleSetting, SqlRuleExecutionContext context)
       at Microsoft.Data.Tools.Schema.Sql.RuleEngine.SqlRuleEngine.ExecuteRuleImpl(SqlRuleSetting ruleSetting, SqlRuleExecutionContext context, Predicate`1 suppressProblem, IEnumerable`1& errors)
       at Microsoft.Data.Tools.Schema.Sql.RuleEngine.SqlRuleEngine.ExecuteRules(SqlSchemaModel dataSchemaModel, IEnumerable`1 ruleSettings, IEnumerable`1& errors, Predicate`1 suppressProblem, Func`1 executeCanceled)
       at Microsoft.Data.Tools.Schema.Sql.RuleEngine.SqlRuleEngine.ExecuteRules(SqlSchemaModel dataSchemaModel, IEnumerable`1 rules, IEnumerable`1& errors, Predicate`1 suppressProblem, Func`1 executeCanceled)
       at Microsoft.Data.Tools.Schema.Sql.Build.SqlTaskHost.RunBuildValidation(SqlSchemaModel model, ErrorManager errorContainer, Func`1 buildCanceledQuery, HashSet`1 includedRuleIDs, HashSet`1 excludedRuleIDs)
       at Microsoft.Data.Tools.Schema.Sql.Build.SqlTaskHost.OnRunBuildValidations(ErrorManager errorManager, HashSet`1 includedRuleIds)
       at Microsoft.Data.Tools.Schema.Sql.Build.SqlTaskHost.RunBuildValidations(ErrorManager errorManager, HashSet`1 includedRuleIDs)
       at Microsoft.Data.Tools.Schema.Tasks.Sql.TaskHostLoader.LoadImpl(ITaskHost providedHost, TaskLoggingHelper providedLogger, Boolean runAllBuildTimeValidationRules)
       at Microsoft.Data.Tools.Schema.Tasks.Sql.TaskHostLoader.Load(ITaskHost providedHost, TaskLoggingHelper providedLogger, Boolean runAllBuildTimeValidationRules)
       at Microsoft.Data.Tools.Schema.Tasks.Sql.SqlBuildTask.ExecuteLoadTaskHostStep()
       at Microsoft.Data.Tools.Schema.Tasks.Sql.SqlBuildTask.ExecuteStep(Func`1 step)
       at Microsoft.Data.Tools.Schema.Tasks.Sql.SqlBuildTask.Execute()
       at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
       at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__20.MoveNext() C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\SSDT\Microsoft.Data.Tools.Schema.SqlTasks.targets 547 5 ABC_DB
    Niraj Sevalkar

    Hi Niraj, does this happen for all projects or for one specific project? I'd love to understand if this is a specific bug or if it might be a setup issue. 
    If this issues is reproduceable on the latest SSDT bits, I'd suggest capturing the event log for what is going wrong and then opening a connect
    bug for this issue at https://connect.microsoft.com/SQLServer/feedback/CreateFeedback.aspx and
    use the category "Developer Tools(SSDT, BIDS, etc.)". We're trying to track all bugs through connect so that you can tell when we have fixed the issue and we can request
    more information. Please include the event log (instructions on this below) plus any other useful information you can provide, such as an example of exact steps to reproduce the problem.
    Gathering an Event Log for SSDT
    For diagnostic purposes we would like you to gather an event log for the issue that you are experiencing in SSDT. In order to gather a log and send it to a member of
    the team, please follow the steps below.
    Open a new command prompt as Administrator.
    Run the following command
    logman create trace -n DacFxDebug -p "Microsoft-SQLServerDataTools" 0x800 -o "%LOCALAPPDATA%\DacFxDebug.etl" -ets
    logman create trace -n SSDTDebug -p "Microsoft-SQLServerDataToolsVS" 0x800 -o "%LOCALAPPDATA%\SSDTDebug.etl" -ets
    Run whatever the target/issue scenario is in SSDT.
    Go back to the command prompt and run the following commands
    logman stop DacFxDebug -ets
    logman stop SSDTDebug -ets
    The resulting ETL files will be located at %LOCALAPPDATA%\SSDTDebug.etl & %LOCALAPPDATA%\DacFxDebug.etl and can be navigated to using Windows Explorer.
    Please attach this file when creating the connect bug
    NOTE - These logs will only be used by Microsoft product team members in order to better diagnose the problem you are experiencing
    with SSDT and will not be shared elsewhere. If you want to make sure that there is no private information in your ETL file, the SSDTDebug.etl file can be opened and analyzed using the Windows Event Viewer.
    To do this, open the Windows Event Viewer application. In the right-hand panel, select Open Saved Log. Navigate to the location where you saved the log, open, and review
    the contents of the trace.
    Thanks,
    Kevin

  • Why the socket is closing

    Hi ,
    I would like to send the MimeMessage object via socket connection. To do do that i have written the following code fragment
    Socket s = new Socket("localhost",3200);
    OutputStream os = s.getOutputStream();
    MimeMessage mimemessage
    //some code to create MimeMessage
    mimemessage.writeTo(os);
    os.close() // this is important step
    In this code fragment if i didnt close the output stream the message is not being delivered to the server side. But when i close the output stream it is closing the socket connection with the stream connection.
    What i neeed is i will be sending mimemessage objects via socke asynchronously. For that purpose i would like to keep the outputstream of the socket keep opent always. But how can i send the mimemessage object via socket without closing the stream.
    I tried os.flush() also. but no result.
    Please help me.
    thanks in advance,
    Sridhar reddy .R

    I am not using any server n server is simple java server socket.
    here is the code for server
    public class MyServer extends Thread
    public static void main(String[] a)
    ServerSocket sss= newServerSocket(3200);
    while(true)
    Socket s = ss.accept();
    new MyServer(s).start();
    public MyServer(Socket socket)
    this.socket = socket;
    is = socket.getInputStream();
    public void run()
    while(true)
    Properties prop = System.getProperties();
    Session session = Session.getInstance(prop, null);
    MimeMessage mimemessage = new MimeMessage(session,objectStream);
    // do some operations on this message

  • How copy the same project with its database schema & deploy it on same PC?

    Hi,
    Firstly, sorry about my forum handle. For some odd reason all the handles that I am trying to create are already in use.
    Right, I am a new Application Express Developer and am managing my own Oracle Database Instance as well. I have managed to create a complete project and I have another client who requires the same project. What is the logic and steps that I can use in making a complete copy of the existing project and use it for my second client. The databse objects would be the same.
    My initial thoughts are to create another database schema as a copy of the current database schema and then do an import/export of the existing project so that the new copy will work with the new schema? I am just talking on top of my head here. I am not a DBA and being new to Application Express administration does not help much either as well.
    Thanks for reading my message.
    Shahzad
    Edited by: user10818643 on 05-Aug-2009 08:49

    Virtual private database basically works by modifying your existing query.
    So you have a table with your clients and a code for each client
    So when client A logs in, he uses an application_context to set his code.
    You have to write the procedure to set the context.
    Now , what you need to do, is to modify your tables so that you can join to your client_code table based on client_code.
    So when client A runs his code, he only sees his own data. When Client B runs he only sees his Data.
    But you , if you run as sysdba can see both sets of data.
    Check out http://asktom.oracle.com and the oracle docs. Oracle expert one on one has a good section on this two (by tom kyte too)
    You really want to satisfy yourself that this is the solution you want. Do the queries run slower. Well, it depends on how well you implement fgac. If implemented well, it will be marginally slower but you will have far less maintenance than an alternative implementation. The big advantage is adding additional clients has virtually no extra workload for you.
    I think you may need to use database account authentication for this to work with Apex. I'm really not sure.
    I suggest you read up on this, and maybe try and set up a 3 table demo app with it. That way you can see whether or not its for you.

  • I create a birthday calendar in iCal and then click on it in iphoto at the begining of the calendar project each year.  Some how the birthday did not populate the photo calendar.  Is there a way to add the birthday iCal calendar into the calendar project?

    I created a birthday calendar to use in iphoto for calendar.  When a new calendar project is started each year, I click on it in.  Some how the birthday did not populate the photo calendar this year.  The photo calendar is almost complete.  Is there a way to add the birthday iCal calendar into the calendar project? I would prefer not to start over.

    Hi,
    If you first select the calendar on the left, so that its background is highlighted blue/grey, when you make a new events they should be added to that calendar.
    Best wishes
    John M

  • I'm using ver. 3.4.5. After having a problem importing  some photo's I now have all my library showing up in the one project. I'm worried about just deleting this project in total. Any help would be appreciated

    After importing a small group of photo's I noticed that aperture didn't create a project for them as usual. The only place I could see them was in last imported. While last importwas open I selected the photo's and told aperture to creat a new project using the selected one's. I named the project with the date using all cap's so I would know which one it was.  What I have now is my whole library showing up in this one project.  If I import more pictures It does two things. A new project is created as it normally does. These new thumbnails also show up in the problem project. I tested to see what would happen if I deleted one old picture while the problem project was open. It went to the trash. It was also removed from its original project.  If I ignore this what seems to happen when importing at this time is that a new project is created that you can open, it acts normal. The file only contains the correct amount pictures.  If I then go to the problem project the thrumbnails show here also.
    About 6 mos ago I switch to Aperture from iphoto. I never combined the two libraries.  I have around twelve thousand photo's. December 1st I backed up my imac with Time Machine. I don't want to back up again until I get this problem in check.
    Thanks for any help, Dale

    Hi Andy,
    I'm using Mac OSX 10.7.5 
    No the one with the caps seems to be working normally.This project with the caps now has four files. Originally I created it with about fifteen. I deleted eleven of them and edited the remaining four. The four files each have one version and its original. It wasn't until after I completed this work that I noticed the privious project when opened and scrolled had the entire library in it.
    The test I did went like this. With the problem opened I deleted one file that I new existed prior to this problem.      I than opened that project that I new it was from to see if it got deleted and found it gone and moved to trash. I think that tells me that if I delete all the files in the problem project I'll be in trouble. I also have inported to projects each with one file that I edited. They are working fine. I took a look in the problem project and this last
    two imports show the thumdnails in it.
    Currently on my Hard Drive I have 275 GB free space.  My photo's take up 138 GB. As I said on Dec. 1st I backed up the system using time machine. So all of Dec. and part of Jan. inports won't be on it. I could work around the problem project and move those file to a safe place. I think it best not to back up the system with Time Machine until I'm confident the Aperture is runing properly. I'm happy that I control these system backups manually.
    I'll need to find out how to copy the Aperture library to another place. I'm sure I can poke around and fined out the process.
    Thanks Andy for the come back!

  • The new project couldn't be created.

    A box appears saying "The disk maybe locked, maybe full, try saving to different location. The new project titled appers as an empty folder. This happens when I wish to create a personal title for the project, but doesnt happen when I title the project "My great movie". I have cleared to disk space, and this problems persists.

    Hi
    How many hard disks Do You have ?
    and free space on each of them ?
    and in iMovie You set it in the Project window to show up as individual hard disks and the new Project addressed to one with enough space ?
    Yours Bengt W

  • HT2792 Just purchased from an airport store the MagSafe Airline Adapter so I could use my MacBook Air on a long haul flight. But, the airline adapter plug doesn't fit the socket. Am I missing something?

    I purchased at the airport last week before a long haul flight the MagSafe Airline Adappter so I couod keep working on the MacBook Air without fear of the battery running out before I had completed the necessary work. The shop assistant assured me the kit worked on all planes but......the socket on the flight, both outbound and inbound, was the normal female 2 pin/3 pin socket that I used to use for my old thinkPad. What am I doing wrong? Am I missing something obvious here
    Thanks for any help you can offer.
    Geoff

    Hi CaptFred,
    Thanks for taking the time to respond. I understand your point and have indeed separated them. Since sending the message I have visited the Apple Store to check the picture of the accessory in case I was missing something and I wonder if I am missing the 20mm adapter but, over and above that, I just dont see the right size/shape empower port socket in the plane seat, only the traditional 3 pin/2 pin sockets. I wonder if the salesman was selling me a pig in the poke because the Apple Store also says that it fits some commercial airlines whereas the salesman told me it worked in all flights. I suspect I will need to go to the airline companies direct to see which planes have this particualr Empower port. In the meantime I am tempted to ask for my money back. Geoff

  • I am trying to determine the new project preset for multi-camera video shot as follows:  3 Canon camcorders, main shot is DV (tape) (720x480), b-roll is DVD (mini-disk) (720x480), additional b-roll is AVCHD (1920x1080).  Film is from a wedding, DV contain

    I am trying to determine the new project preset for a multi-camera video shot as follows:  3 Canon camcorders,
    Main shot is DV (tape) (720x480, 29fps) - ceremony and reception
    b-roll is DVD (mini-disk) (720x480, 29fps) - bride preparations
    additional b-roll is AVCHD (1920x1080, 29fps) - groom preparations and misc all day ceremony and reception. 
    Film is from a wedding, DV contains main footage so I assume it will need to be the base.  I am planning to use the preset for DV-Widescreen.  Is there a better option?  I'm concerned about playback as the three appear to have different PAR.  I'm using Premiere Elements 10 on W8.
    Ultimately this will be burned for two formats - one for a DVD that can be watched on a widescreen TV, second for a short clip trailer to go on vimeo.
    (And no I won't be doing this again for a wedding that I shoot.)

    VDRAVES
    Please review since I am not sure how you obtained Video 3 tall when you scaled Video 3 with Constrain Proportions in effect.
    Before
    After
    It becomes a zoomed in effect to get rid of the black borders. But, there is no tall and thin involved anywhere.
    And, after the Scale increase, you can always click on the screen and move the image around a bit
    (without overdoing it to get black borders again).
    After and an adjust
    Please let us know if you are OK with the information above.
    Thank you.
    ATR

  • Why won't my vi run outside of the LV2011 project explorer?

    I've created a LV2011 project. The vi's within this project open executables to perform measurement functions. When I open the vi's from within the project explorer window the executables open with no issues. However, with the LV project closed and opening the vi's from "windows explorer" the executables won't launch. It seems like I need to have the LV project explorer window open. However that does not work very well in a manufacturing environment. What is the dependency relationship of running vi's in or out of the LV project? How can I remove this dependence?

    crossrulz,
    Good point.  Nice to run executables and I agree.  In a perfecct world thats what would happen.  Do you know what the constraints are for vis in a LV project?  Here is the error:
    Error 1172 occurred at Error calling method Class.Initialize, (System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation.
        Inner Exception: System.Runtime.InteropServices.COM Exception:  An error has occurred in the vi. More information may be available in the Windows Event log.
    Creating vi)
    Possible reason(s):
    LabVIEW:  A .NET exception occurred in an external assembly. For information about correcting this error, copy the following exception (in bold), and search the Microsoft Developer Network (MSDN) Web site or the Web for a possible explanation.
    System.Runtime.InteropServices.COM Exception in Open apps.vi->Example.vi
    Attachments:
    Open Apps.JPG ‏45 KB

  • How to create the Custom project System as Web Project

    Hi,
    I have created a custom project system using this walkthrough. But
    this walk through is targeting Visual C# project system. I need to create the Custom project system as Web project and set the start up page as index.html file. How can I achieve this?
    Note: 
    I have got the Custom project system sample from VS2013 SDK samples(https://mpfproj12.codeplex.com/).
    But it demonstrate the Custom console applications only.
    - Abbas K

    Hi,
    So you didn't even follow this walkthrough yet? If you did, how did you do it?
    I failed to create such a web project system because I finally messed up my VS experimental instance. But it's possible to create a custom web project system, by following this walkthrough. Someone else has successfully made it, check this
    link.
    The difference is that you have to use web project type instead of the console application project type. You could copy a web project's .csproj file into the VSPackage project and rename it to xxx.myproj. There's an error in the walkthrough that the AssemblyInfo.cs
    file should be put into Properties folder and set the "Build Action" property to Content, "Include in VSIX" to true.
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

Maybe you are looking for