|
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.
|
|
? "Move Client to own Channel" also in Client Context Menu (TreeView) I realize that this feature is already present when you right click on a user in chat. However, I feel that this feature should also be present when right clicking a user in the channel...
Started by kokuei on
, 6 posts
by 4 people.
Answer Snippets (Read the full thread at teamspeak):
Move Client to own Channel" also in Client Context Menu (TreeView) The Title almost says it all be awesome to have that Option in the Context Menu when clicking a Client in the Channel/Clientlist:
Currently the "Move....
|
|
Is it possible to instantiate OIMClient or tcDataProvider object without hardcoding the username/password in my event handler class? I need to get access to the Lookup Definition API's from the event handler.
OIM 11.1.1.5
Thanks
Started by DJ on
, 11 posts
by 2 people.
Answer Snippets (Read the full thread at oracle):
Thanks No Platform.getService would work only when running inside the context of OIM.
Platform.getService.
|
Ask your Facebook Friends
|
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....
|
|
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 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.
|