1

Can anyone please suggest to me how to initialize org.jboss.seam.contexts Context as well as session context inside IR?

I need to do it for my testing purposes.

jruizaranguren
  • 12,679
  • 7
  • 55
  • 73
Niraj Dave
  • 117
  • 2
  • 10

1 Answers1

0

You need to first create an application context and set the property.

Context appContext = new ApplicationContext();
// Set a value
appContext.set("flagvalue", new Object());
// Get a value
Contexts.getSessionContext().get("flagvalue");
Megha
  • 1,581
  • 2
  • 18
  • 33