|
Currently I am using this for JBoss, but I need something also for an external Tomcat:
Properties props = new Properties(); props.put(Context.PROVIDER_URL, "jnp://localhost:1099"); props.put(Context.INITIAL_CONTEXT_FACTORY, "org.jnp.interfaces.NamingContextFactory...
Started by Steel Plume on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
For the default InitialConext, and you can use it like this:
// Obtain our environment naming context Context initCtx = new InitialContext(); Context envCtx = (Context) initCtx.lookup("java:comp/env"); // Look up.
|
|
I want to have context menus attached to tree items in my Silverlight Toolkit tree. How can I do this?
Started by Dmitri Nesteruk on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
We had a lot of right click context in the thick app, and after considered any alternatives to context menus? At the moment I am working on project porting a thick our context menus in a ....
client application to Silverlight.
|
|
I'm trying to convert some existing C# code into a CLR stored procedure. The obvious connection string to use is a context connection ("context connection = true").
The problem I'm running into is some things apparently don't work on this connection type...
Started by Kevin Gale on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
The following link explains the restrictions imposed when using Context Connections:
Restrictions on Regular and Context Connections
If you post the full exception and stack trace then it may be possible that won't work with a context....
|
Ask your Facebook Friends
|
I'm using Spring to handle RMI calls to some remote server. It is straightforward to construct an application context and obtain the bean for remote invocations from within the client:
ApplicationContext context = new ApplicationContext("classpath:context...
Started by Rich Seller on
, 6 posts
by 6 people.
Answer Snippets (Read the full thread at stackoverflow):
Handles whatever you need to handle based on client input; Declare this bean as a dependency then, either on the init-method or on each invocation determine the values to return to the client them, it falls back to using system properties....
|
|
Is it OK if the same OpenSSL context is used by several different accepting sockets?
In particular I'm using the same boost::asio::ssl::context with 2 different listening sockets.
Started by Brian R. Bondy on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
From ssl(3):
SSL_CTX (SSL Context)
That's the global context structure which is created by a server or client once per program life-time and which holds mainly default values a typical RFC4217 FTPS server will....
Used by your program.
|
|
I am using Apex 4.0.2.00.7 with Oracle Database 11g Enterprise Edition Release 11.1.0.7.0 - 64bit Production, developing the application using a Windows XP machine. The application is in production. Each time a page is accessed a row is inserted into ...
Started by dmccormick on
, 6 posts
by 4 people.
Answer Snippets (Read the full thread at oracle):
As far as I'm aware, Apex does not set sys_context('userenv', 'client_info') via dbms_application is not set.
|
|
I have a method that sets up my linq data context. Before it returns the DC it calls a stored proc that sets up the CONTEXT_INFO value to identify the current user.
A trigger picks up any changes made and using this context data writes an audit record...
Started by Chris Simpson on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
By the client app pools when recycling a connection, so it appears that you're seeting the context on one, either using query comprehension or ExecuteQuery / ExecuteMethod call, and CONTEXT_INFO only lives in the context of....
|
|
The following code sample is an implementation of the Strategy pattern copied from Wikipedia . My full question follows it...
The Wiki's main method:
//StrategyExample test application class StrategyExample { public static void main(String[] args) { Context...
Started by jdk on
, 4 posts
by 4 people.
Answer Snippets (Read the full thread at stackoverflow):
This is the better example of ....
You'll be doing it within a class, and Context is a simple example of that.
The Context class is demonstrating how you can give a class different behavior simply by passing you'll typically use Strategy.
|
|
I have VC++ MFC app and I need to display a context menu over CMainFrame menubar. I added a handler for WM_CONTEXTMENU in CMainFrame and I am able to display my context menu over the toolbar (also the window title) but the handle does not get invoked ...
Started by Farid Z on
, 3 posts
by 3 people.
Answer Snippets (Read the full thread at stackoverflow):
But if you really want this behaviour, what you could do is trap the ... .
Using the Spy++ utility and right clicking on the client, toolbar or caption regions of a typical when you right click on the menu, no popup context menu is displayed.
|
|
What is the term "deferred query evaluation" in the context of LINQ referes to? (please give example).
Answer Snippets (Read the full thread at stackoverflow):
It is deferring the evaluation until it is used by the client code..
|